{"$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":"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":"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":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","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-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01: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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"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":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"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":"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":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"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":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"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":"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":"App.Shell (cyclomatic 312): App.Shell has cyclomatic complexity 312 (threshold 15). Of this number, 86 points are the body\u0027s own statements and 226 belong to 92 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":"webui/src/App.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e9ce0bf4a581faf49c5d08240ede49b6dc8658385747503e7357ad9fce726e"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadViewport.ThreadViewport (cyclomatic 301): ThreadViewport.ThreadViewport has cyclomatic complexity 301 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 227 belong to 52 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbdf3d398e5ae44d9b8141b49fb30e7494bf6dff2598a39131fba4969d55cec"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadTranscript.accept (cyclomatic 285): ThreadTranscript.accept has cyclomatic complexity 285 (threshold 15). Of this number, 263 points are the body\u0027s own statements and 22 belong to 9 function literals inside it that branch. 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f570d111b0cf1e49912a89446aa2c7b8cf12bf35ef68cc8a03d48ca7b93512d"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceControls.WorkspaceProjectPicker (cyclomatic 274): WorkspaceControls.WorkspaceProjectPicker has cyclomatic complexity 274 (threshold 15). Of this number, 82 points are the body\u0027s own statements and 192 belong to 57 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b49f8e004ad3a914ffdea7787c78fcd06ff43d5dc4255c48f1c3c96ffcda695"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatList.ChatList (cyclomatic 175): ChatList.ChatList has cyclomatic complexity 175 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 152 belong to 45 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4374b2028c9fa7156698bd2a98c059c18a3309fef61cf7aa3f300e87755157b6"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.ThreadComposer (cyclomatic 166): ThreadComposer.ThreadComposer has cyclomatic complexity 166 (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 (ThreadComposer.ThreadComposer::onKeyDown) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"4360d7cf53e7c33c7b0be2ddbfb79c8a74f59ea8734ef2cbd00c0b60a1cb4cf5"}},{"ruleId":"D1","level":"warning","message":{"text":"useNanobotStream.useNanobotStream (cyclomatic 153): useNanobotStream.useNanobotStream has cyclomatic complexity 153 (threshold 15). Most of this is not in the body itself: 6 of the 153 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 672, 558, 635, \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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a9d4b38075b965efaa951daa069d667b4a39f1872c13ad06668fcb798aa3f5"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.reduceThreadEvent (cyclomatic 150): thread-event-projection.reduceThreadEvent has cyclomatic complexity 150 (threshold 15). Of this number, 147 points are the body\u0027s own statements and 3 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47f4583193b3aa9e53b7051ab814591271d7372f706c74ab053d7104e3b8d39"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.handleKey (cyclomatic 130): NanobotTui.handleKey has cyclomatic complexity 130 (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":"tui/src/app/app.ts"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95eee53e45d158e0678de00f08121f0c2b49e7500ec03196a1c792261ed5000"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateFlowProvider.UpdateFlowProvider (cyclomatic 128): UpdateFlowProvider.UpdateFlowProvider has cyclomatic complexity 128 (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 (UpdateFlowProvider.UpdateFlowProvider::confirm) 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e026abd601511bbd0384d695e48302464799df8f6e47a12e774ca7509c04535"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextGraphScene.ContextGraphScene (cyclomatic 125): ContextGraphScene.ContextGraphScene has cyclomatic complexity 125 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 96 belong to 28 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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3078bc2950583d4d058548067e434914778e0f88918d36ffde7010eaa86df8eb"}},{"ruleId":"D1","level":"warning","message":{"text":"PaneWorkbench.PaneWorkbench (cyclomatic 117): PaneWorkbench.PaneWorkbench has cyclomatic complexity 117 (threshold 15). Most of this is not in the body itself: 14 of the 117 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 706, 298, 586, \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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b9f462f819791d49343f1ec4bb47ad54ba9afcd5bc377e0a38f953789d68ec"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteConnectionsPage.RemoteConnectionsPage (cyclomatic 115): RemoteConnectionsPage.RemoteConnectionsPage has cyclomatic complexity 115 (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 (RemoteConnectionsPage.RemoteConnectionsPage::connect) 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3960872319efcc1966384f4031558d71a76b59c88a67cb405387e27013ae91"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.accept (cyclomatic 107): NanobotTui.accept has cyclomatic complexity 107 (threshold 15). Of this number, 105 points are the body\u0027s own statements and 2 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":"tui/src/app/app.ts"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea3f946a185267e9e5f1093b499c02f4752862a4415f223c5853ce67201b657"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInstances.RemoteInstances (cyclomatic 107): RemoteInstances.RemoteInstances has cyclomatic complexity 107 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 37 belong to 18 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":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b1b7ecc7ab4c88867e5d9defca15dc995cbf8c9f5804b25fd6ac86f28f36ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelControls.ModelIdPicker (cyclomatic 104): ModelControls.ModelIdPicker has cyclomatic complexity 104 (threshold 15). Of this number, 75 points are the body\u0027s own statements and 29 belong to 12 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"682b034501dd2bfe351a49a51134af6c4c5df5ad22b9cf82027a3cb52fda6e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"api.parseThreadProjectionEvent (cyclomatic 104): api.parseThreadProjectionEvent has cyclomatic complexity 104 (threshold 15). Of this number, 93 points are the body\u0027s own statements and 11 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":"webui/src/lib/api.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2883b5ad277651c91a3f95a577f8806c0f2befea362385d14897bedc7f672555"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickPairSetupView.QuickPairSetupView (cyclomatic 96): QuickPairSetupView.QuickPairSetupView has cyclomatic complexity 96 (threshold 15). Of this number, 89 points are the body\u0027s own statements and 7 belong to 4 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":"webui/src/components/remote/QuickPairSetupView.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"76aab115ccf3360687aeeeb544c14da092abfcf7739e33747ab563c3c4cc22dd"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.consume_responses_events (cyclomatic 95): parsing.consume_responses_events has cyclomatic complexity 95 (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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7eb9a5e2aa2e8d7d52b2e89740d3a2895b70a26fea9c0aca9906426c12a86b"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInstances.action (cyclomatic 91): RemoteInstances.action has cyclomatic complexity 91 (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":"nanobot/webui/remote_instances.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1c78bc5d332ca535d05c3aeb44c8bbd1b72fc865865f0dcba0d43c0500b6cc"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter._dispatch_message_once (cyclomatic 88): WebUICommandRouter._dispatch_message_once 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/inbound_commands.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"135dd4725c1be08274bccdedd9d7bd8cea68f39dfd09214da30207cea4df71ee"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearPanelView.LinearPanelView (cyclomatic 86): LinearPanelView.LinearPanelView has cyclomatic complexity 86 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 37 belong to 12 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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3b26506e04ba414ff2726c38e50b0d2a07715c74c92f4e7a625b757c20f53c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPresetBadge.ModelPresetBadge (cyclomatic 86): ModelPresetBadge.ModelPresetBadge has cyclomatic complexity 86 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 47 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fffff68288a974b648c263ea1145de8442ae89d27b971e99ebfbd184fc32efa"}},{"ruleId":"D1","level":"warning","message":{"text":"validation.decodeInboundEvent (cyclomatic 84): validation.decodeInboundEvent has cyclomatic complexity 84 (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":"tui/src/client/validation.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bcb4834d8691ffa036a7ee73e77fdf5e8a3ea45ffc8f1ad8fceb0665ff8a53"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.ThreadShell (cyclomatic 83): ThreadShell.ThreadShell has cyclomatic complexity 83 (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 (ThreadShell.ThreadShell::composer) 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b042e24de491035aeae36b2ce7a8a091066a0c141219b0032f7d1c60953dc44e"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._client_projection_event (cyclomatic 79): transcript._client_projection_event has cyclomatic complexity 79 (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":"nanobot/webui/transcript.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c029cd28900d13d3091c4102d4ce59ea1c970bd8aaef9cd49bae45d07c2e679"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentTasks.SubagentTasksProvider (cyclomatic 79): SubagentTasks.SubagentTasksProvider has cyclomatic complexity 79 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 54 belong to 15 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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bcf0fae7ecc51b7d4809371f85c0372368aacd1493023b9de40f34272920b1"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.McpAppsCatalogRow (cyclomatic 77): AppsSettings.McpAppsCatalogRow has cyclomatic complexity 77 (threshold 15). Of this number, 67 points are the body\u0027s own statements and 10 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf31e495591edaddacf25376cc94fea0158f166c9e944282109f94646ebeb99"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.handleMessage (cyclomatic 77): NanobotClient.handleMessage has cyclomatic complexity 77 (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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26cc9ae5303c71d6d677586aa3323147fa0db36c0c0e7a8b8c7ab186c40178d"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadTranscript.project (cyclomatic 75): ThreadTranscript.project has cyclomatic complexity 75 (threshold 15). Of this number, 69 points are the body\u0027s own statements and 6 belong to 5 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a327a10de6c1bfed10d2d8a26b09f66f23df8c7f9036cb6a270e0c9ffa69d88"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeConfigSettings.RuntimeConfigSettings (cyclomatic 72): RuntimeConfigSettings.RuntimeConfigSettings has cyclomatic complexity 72 (threshold 15). Most of this is not in the body itself: 6 of the 72 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 227, 201, 217, \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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eaa1fa4b05fe6e64293788f2b5c7599c0230677c8b0c1240e676bf38f88c11"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentTaskDock.TaskDock (cyclomatic 70): SubagentTaskDock.TaskDock has cyclomatic complexity 70 (threshold 15). Most of this is not in the body itself: 15 of the 70 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 122, a function literal at line 131, a function literal at line 171, \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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5224e044f744c7bd2ac75137fd63d8e5dd4c5edd353522a8f54925d1aa13ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.ThreadMessages (cyclomatic 66): ThreadMessages.ThreadMessages 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 10 function items inside it that branch (a function literal at line 200, a function literal at line 117, renderPrelude, \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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5933a78adff30d5cfda6a7e878f1540f4849402792b3b46234906867ea164ebb"}},{"ruleId":"D1","level":"warning","message":{"text":"svg-image.diagramImageTemplate (cyclomatic 63): svg-image.diagramImageTemplate has cyclomatic complexity 63 (threshold 15). Most of this is not in the body itself: 9 of the 63 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 275, text, a function literal at line 336). 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4a0f675ee8441412aabbc9cae3a9ab90287f8c1b5e9f7e47368840bbbe153e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings::renderProviderForm (cyclomatic 63): ProviderSettings.ProvidersSettings::renderProviderForm has cyclomatic complexity 63 (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 (ProviderSettings.ProvidersSettings) 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df09b6f6564a47f7633d26851d0a6d2dcbb3dc277cd808d25ad9fefcb96247e"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationChatBindingView.AutomationChatBindingView (cyclomatic 63): AutomationChatBindingView.AutomationChatBindingView has cyclomatic complexity 63 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 27 belong to 10 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":"webui/src/components/settings/system/AutomationChatBindingView.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2afe347952cdfdb46a5d8e35512c0b3e1b2ae08589668a999bed8b011110b1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRunner._run_core (cyclomatic 62): AgentRunner._run_core has cyclomatic complexity 62 (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":"nanobot/agent/runner.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b288cc7fcff82ac346150a8d800857617e1a64270f86597c5c63fbc062b025"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._build_kwargs (cyclomatic 60): OpenAICompatProvider._build_kwargs 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb6166159a41ab51aefdc2d31c6fbe2acbd91af8f5a92475f0788e433aa80c7"}},{"ruleId":"D1","level":"warning","message":{"text":"GrepTool._execute_sync (cyclomatic 57): GrepTool._execute_sync has cyclomatic complexity 57 (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":"nanobot/agent/tools/search.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fb4077505f883fdb288fec423cb47792696fffe51fc21986354b8658a402c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientRunLedger.applyObservation (cyclomatic 57): ClientRunLedger.applyObservation has cyclomatic complexity 57 (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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"377bfb2842b5e66b135cc6288574e407e55596df9c4e4bf0050f18746b05dc2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelSetupPanel.ChannelSetupSurface (cyclomatic 53): ChannelSetupPanel.ChannelSetupSurface has cyclomatic complexity 53 (threshold 15). Most of this is not in the body itself: 12 of the 53 points are its own statements and the rest belongs to 19 function items inside it that branch (saveChannelDraft, saveCredentialSettings, checkCurrentSettings, \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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7492cadf30fbc5cad3418c5aa07c68ecf100db06999e5e0d1688584cf21c370"}},{"ruleId":"D1","level":"warning","message":{"text":"dialog.DialogContent (cyclomatic 53): dialog.DialogContent has cyclomatic complexity 53 (threshold 15). Most of this is not in the body itself: 6 of the 53 points are its own statements and the rest belongs to 13 function items inside it that branch (finishDrag, a function literal at line 226, a function literal at line 152, \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":"webui/src/components/ui/dialog.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d116f725a631093c5e5f60e103ca9cb4084821c2be18653d991998f689a99b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._run_agent_loop (cyclomatic 50): AgentLoop._run_agent_loop has cyclomatic complexity 50 (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":"nanobot/agent/loop.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab1419b0f338b76adb425a9f41553761e51901a74e471e7ef29b2986007f1c9"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.AutomationsSettings (cyclomatic 50): AutomationsSettings.AutomationsSettings has cyclomatic complexity 50 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 19 belong to 7 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5751ff022e5beef0f24e272431c3d299b8fe1712c402bf7777031eea5cd0d78"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxSettings.SandboxSettings (cyclomatic 50): SandboxSettings.SandboxSettings has cyclomatic complexity 50 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 14 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":"webui/src/components/settings/system/SandboxSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5303b66c10b1f06532f21da1166bc7d9fc9ced0252ea1cfdd78b0f52e2403fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"EditFileTool.execute (cyclomatic 49): EditFileTool.execute has cyclomatic complexity 49 (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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"853726b5621413075700253ce2e9dcfbcef984933ee2069e6d1a60fbf227f1f8"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.AutomationDetailPanel (cyclomatic 49): AutomationsSettings.AutomationDetailPanel has cyclomatic complexity 49 (threshold 15). Of this number, 47 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cf377d270562af69e434c6114f906699f8a0f08688861ff7f3136814b4a9ad"}},{"ruleId":"D1","level":"warning","message":{"text":"FallbackProvider._try_candidates (cyclomatic 48): FallbackProvider._try_candidates 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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaea5af11655c4d47adf6ca8159ffe65a27e13a5dee696d02cf6cd4a092e66fe"}},{"ruleId":"D1","level":"warning","message":{"text":"useSidebarHostBridge.useSidebarHostBridge (cyclomatic 48): useSidebarHostBridge.useSidebarHostBridge has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 4 of the 48 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 37, 96, 99, \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":"webui/src/components/remote/useSidebarHostBridge.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b48f8c994c384fbf1c33779001cd8d5f5dccbe7855500413360b8f35ce773e8"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.saveModelSettings (cyclomatic 48): useModelSettingsActions.useModelSettingsActions.saveModelSettings has cyclomatic complexity 48 (threshold 15). Of this number, 46 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63e642bfae57061aee91a5ff80f79664df3c90f18a7126f0d5c39e164f6d169"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.build_webui_thread_response (cyclomatic 47): transcript.build_webui_thread_response 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":"nanobot/webui/transcript.py"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd7b5931db6b19c2e82c08f46c98d5c99fd2d0e48cbf14f544b1cbb21200afb"}},{"ruleId":"D1","level":"warning","message":{"text":"Config._match_provider (cyclomatic 45): Config._match_provider 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":"nanobot/config/schema.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1625aec3b7eb4b3ce37b5c6aa2f198d444cbd3c7e26fc6e757233e6e30ebefd"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelQrConnectFlowView.ChannelQrConnectFlowView (cyclomatic 45): ChannelQrConnectFlowView.ChannelQrConnectFlowView has cyclomatic complexity 45 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 5 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":"webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfeff7d973e0e302da800117ebb25166b86314e944fbc7b201508bd8fd94d700"}},{"ruleId":"D1","level":"warning","message":{"text":"useSystemSettingsEffects.useSystemSettingsEffects (cyclomatic 45): useSystemSettingsEffects.useSystemSettingsEffects has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 17 function literals inside it that branch (lines 98, 189, 135, \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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6501b6b2cf33393aac8f71dc6c0c29b57b5b0589dc47682afdbd6b624cf4a5f7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentActivityCluster.FoldedAgentActivity (cyclomatic 45): AgentActivityCluster.FoldedAgentActivity has cyclomatic complexity 45 (threshold 15). Of this number, 32 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ad4cd88125feb10f467efc13fbc6cbcbae476e49e48f10578d19420564a6f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplyPatchTool.execute (cyclomatic 44): ApplyPatchTool.execute 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":"nanobot/agent/tools/apply_patch.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cad83f8b6a974b25f4d8db3dbcbd1a68fc79046f0e08959c36a0efe5f4c391"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.webui (cyclomatic 44): webui.webui 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":"nanobot/cli/webui.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6659c9ba6587c296173091a07250083a3f1d364f1dafa2d76d613ab09727a5b7"}},{"ruleId":"D1","level":"warning","message":{"text":"UsagePanel.render (cyclomatic 44): UsagePanel.render has cyclomatic complexity 44 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 11 belong to 3 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":"tui/src/views/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cd2423914b24c7b84d7aeebd45adb61e99f80d5d5ed66bf716257e44664e74"}},{"ruleId":"D1","level":"warning","message":{"text":"VersionCheckRowView.VersionCheckRowView (cyclomatic 44): VersionCheckRowView.VersionCheckRowView has cyclomatic complexity 44 (threshold 15). Of this number, 43 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":"webui/src/components/settings/overview/VersionCheckRowView.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bc961dbec060ebb316e709d66911c3a62459340ba6268d89ec9a61491d6c82"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.AppsCatalogSettings (cyclomatic 44): AppsSettings.AppsCatalogSettings has cyclomatic complexity 44 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 10 belong to 4 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c56c0dd776e6a0a44272da205b126cfde19ed26b3cf43d90dc404b97d22e9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"McpManagementDialog.McpManagementDialog (cyclomatic 44): McpManagementDialog.McpManagementDialog has cyclomatic complexity 44 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 15 belong to 4 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ddb13377311b720755f4f9a4a5c1cacbfdd576536e3d41cec0df1dc5e685ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.ThreadDisplayUnit (cyclomatic 44): ThreadMessages.ThreadDisplayUnit has cyclomatic complexity 44 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 13 belong to 8 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d01470da7cc7fe7be2332b5d5bf070c2c0641968b3ae528d540d94826aaf8a"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesWebSocketSession.request (cyclomatic 43): ResponsesWebSocketSession.request 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":"nanobot/providers/openai_responses/websocket.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56bf0a1cbbc3192d1a43d7fbc847e4f241ff30307f9ef87b43eff9227bf9ff0"}},{"ruleId":"D1","level":"warning","message":{"text":"text.outlineDiagramText (cyclomatic 43): text.outlineDiagramText has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 14 of the 43 points are its own statements and the rest belongs to 9 function items inside it that branch (collect, style, declaration, \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":"tui/src/rendering/mermaid/text.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42041cb18af60bc3797e6123c6a04954152da0fbe18f7e327751935bfc74cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsMarketplace.SkillsMarketplace (cyclomatic 43): SkillsMarketplace.SkillsMarketplace has cyclomatic complexity 43 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 22 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3fe46929b64e31e3853433c2ca3bf2244486fd4e6a01471f179327ef91bf77"}},{"ruleId":"D1","level":"warning","message":{"text":"subagent-tasks.isSubagentTask (cyclomatic 43): subagent-tasks.isSubagentTask has cyclomatic complexity 43 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 3 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":"webui/src/lib/subagent-tasks.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c5d37c69298c8350e22cf3fdfa4351aeabfce16b9ee92b08c31044bae0ddfc"}},{"ruleId":"D1","level":"warning","message":{"text":"Session.get_history (cyclomatic 42): Session.get_history has cyclomatic complexity 42 (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":"nanobot/session/manager.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e0b3308dd0d09ed1cb8850167bc912ab878e7951280f5723576f0065561422"}},{"ruleId":"D1","level":"warning","message":{"text":"ComposerUsagePopover.ComposerUsagePopover (cyclomatic 42): ComposerUsagePopover.ComposerUsagePopover has cyclomatic complexity 42 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 19 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecfa0392f9bafd6367aafd93ac0bd31ad8e385bdb054537b8858665c5d167e1"}},{"ruleId":"D1","level":"warning","message":{"text":"api.parseWebuiThreadPayload (cyclomatic 42): api.parseWebuiThreadPayload has cyclomatic complexity 42 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 14 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":"webui/src/lib/api.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbecaead9ed3beb1f27b93d7696c9c73e21bcd635779e78f0149b544c640fe5"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadTranscript.describe (cyclomatic 42): ThreadTranscript.describe has cyclomatic complexity 42 (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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"039c211387ffd76485139e41a61337bcb98d65d7924099c6cee1ad2644a7dc57"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICodexProvider._call_codex (cyclomatic 41): OpenAICodexProvider._call_codex 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9788305583cf9db9393022c4f7f1f39323adf9dd2e47a0c88a8c5ca9dbe52ae2"}},{"ruleId":"D1","level":"warning","message":{"text":"segmented-control.SegmentedControl (cyclomatic 41): segmented-control.SegmentedControl has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 8 of the 41 points are its own statements and the rest belongs to 6 function items inside it that branch (handleKeyDown, a function literal at line 165, a function literal at line 85, \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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b71628aae3749026a0a507ce27ef697fc91c850edd654b0b8e96c32d6231fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"Gallery.Gallery (cyclomatic 41): Gallery.Gallery has cyclomatic complexity 41 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 18 belong to 11 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":"webui/src/dev/gallery/Gallery.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"267bdde4d9338d610c79e8de3486825a694f5a032cf1cd280d5d5142104f8680"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.submit (cyclomatic 40): NanobotTui.submit has cyclomatic complexity 40 (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":"tui/src/app/app.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fad95635db95005f2b23b1db9d4088fd5362b9dc7e9cd83b3c23c760bdd24b0"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptNavigator.PromptNavigator (cyclomatic 40): PromptNavigator.PromptNavigator has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 3 of the 40 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 45, 143, 128, \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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48446642ad4e42028b1fc3af6299638b0e3a6b428e7855908466a82f4ddf15d"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._configure_pydantic_model (cyclomatic 39): onboard._configure_pydantic_model 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":"nanobot/cli/onboard.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6f5b7f492b1b92be0f9f6159fb28f19e6603fbb35e2bcdf9e7d656a623be9f"}},{"ruleId":"D1","level":"warning","message":{"text":"update_worker.run_job (cyclomatic 39): update_worker.run_job 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":"nanobot/update_worker.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9a72ef949b9c3fee68c3718721273ca9d6a2ef79bb55eecf72565ddcc43ec1"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_runtime.update_runtime_config (cyclomatic 39): settings_runtime.update_runtime_config 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":"nanobot/webui/settings_runtime.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5aac2561ddfad8c6d2348017bbe154caf6ff1278dffa67a59913013b9ec4d"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._build_prompt_view (cyclomatic 39): transcript._build_prompt_view 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":"nanobot/webui/transcript.py"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0831b3d253254befc9e0d363fcd2e5c72ca014bbdf07b289b4d9bd344960c4c3"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReferenceChip.FileReferenceChip (cyclomatic 39): FileReferenceChip.FileReferenceChip has cyclomatic complexity 39 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 4 belong to 3 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. This is NOT this file\u0027s highest cyclomatic complexity: FileReferenceChip.fileKindForPath (cyclomatic 55) 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 method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9c287dbb75955393efe941f8befe97033a1fa7e9f10ae6a93f8309e035553d"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTextRenderer.MarkdownTextRenderer (cyclomatic 39): MarkdownTextRenderer.MarkdownTextRenderer has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 6 of the 39 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 550, 537, 546, \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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d51f69139088ff0d5a6f3a4ed6a02dc7ad09c0739bbc85f92d19d63a8433b9"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageBlockMenuActions (cyclomatic 39): MessageBubble.MessageBlockMenuActions 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1ec88f4b840fd15271e30c9276e3430e1671e827add3144e2c311a6119350f"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.ThreadComposer::onKeyDown (cyclomatic 39): ThreadComposer.ThreadComposer::onKeyDown 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. This shape REPEATS in the file: one other method here (ThreadComposer.ThreadComposer) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"199f305c189a0dbb1bae705746787d442976403133e8b3d23551e83987e50c57"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_action (cyclomatic 38): GatewayHTTPHandler._handle_webui_automation_action 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc29423fc136d614d145f5f5faf602820184d39978c6416f06d329d23cb56dba"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearPanel.LinearPanel (cyclomatic 38): LinearPanel.LinearPanel has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 6 of the 38 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 160, saveSecret, disconnectWorkspace, \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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ac225389886ffdb190c016d60e157254827df764266dcb7929fc233be9d1c5"}},{"ruleId":"D1","level":"warning","message":{"text":"api.fetchHistory (cyclomatic 38): api.fetchHistory 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":"tui/src/client/api.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38d6643542fbd30237f31770b012a625e20e75068dc5631a2389709c67db427"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSearchDialog.SessionSearchDialog (cyclomatic 38): SessionSearchDialog.SessionSearchDialog has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 10 of the 38 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 215, handleKeyDown, a function literal at line 109, \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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e956171954aaf7e1f3d707d4ba5f4eea805f287b1aafb01ea4aa3f2c59c29a74"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickPairSetup.QuickPairSetup (cyclomatic 38): QuickPairSetup.QuickPairSetup has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 7 of the 38 points are its own statements and the rest belongs to 10 function items inside it that branch (run, a function literal at line 79, a function literal at line 94, \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":"webui/src/components/remote/QuickPairSetup.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bd066593b1e518d53b904e67df2f829ff772b142ff023f4c33a76abbbff8fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelSetupSurfaceView.ChannelSetupSurfaceView (cyclomatic 38): ChannelSetupSurfaceView.ChannelSetupSurfaceView has cyclomatic complexity 38 (threshold 15). Of this number, 36 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":"webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead20d6c505b06f0783abcc71e5859c1fc88a525f2f32b70c14c5295b1b973c"}},{"ruleId":"D1","level":"warning","message":{"text":"history.collect_legacy_history (cyclomatic 37): history.collect_legacy_history has cyclomatic complexity 37 (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":"nanobot/webui/history.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b110e9f86cdf5a7c88cc1cd0d6e09dad22bf7c4103cabe07db780fda64265755"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUIOutboundDelivery.send (cyclomatic 37): WebUIOutboundDelivery.send has cyclomatic complexity 37 (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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d855f8f3241b81a5948cad17f491dda236458db727f760601e00f4572171d949"}},{"ruleId":"D1","level":"warning","message":{"text":"svg.resolveDiagramSvg (cyclomatic 37): svg.resolveDiagramSvg has cyclomatic complexity 37 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 18 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":"tui/src/rendering/mermaid/svg.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"393e168b9b06def9014456cc2a29555a36a7a7d33953f2b6740bc387524fcadc"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptRail.PromptRail (cyclomatic 37): PromptRail.PromptRail has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 8 of the 37 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 150, a function literal at line 117, a function literal at line 41, \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":"webui/src/components/thread/PromptRail.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5c9347457bb6979f468b4f31dd7832eac450135a3184dc3c78784f01e12231"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._dispatch_one (cyclomatic 36): AgentLoop._dispatch_one 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":"nanobot/agent/loop.py"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"791f6693fe58a6d545a06842d9dac997f5642cd51a3e2db19f42382588ebfe40"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageTool.execute (cyclomatic 36): MessageTool.execute has cyclomatic complexity 36 (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":"nanobot/agent/tools/message.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d49f2a106f72cb10c0d36fdd87323daf468d704ceb533402d03f997452e907"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider.chat_stream (cyclomatic 36): OpenAICompatProvider.chat_stream 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"b605ed53e5a8d6a975ca9b45ed89601ad239876b13a21422724e521037a2a9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"useHostSessions.useHostSessions (cyclomatic 36): useHostSessions.useHostSessions has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 2 of the 36 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 311, 295, 304, \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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf5fa5ada9686e8a27ced0b7885321b0a027ca0e06d21b4b4b7c3d0941b2c07"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.SettingsPage::renderSettingsSection (cyclomatic 36): SettingsPage.SettingsPage::renderSettingsSection 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. This shape REPEATS in the file: one other method here (SettingsPage.SettingsPage) 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e39f910b6c3e8a094b578245ed0dc169c930fdad033b9da0810e4acc54f9004"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsCatalogSettings.SkillDetailSheet (cyclomatic 36): SkillsCatalogSettings.SkillDetailSheet has cyclomatic complexity 36 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 11 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8616f844988c7be1e25db3aa141b404b8813d77fda899ca4cafa80bc68cc2909"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserNotificationSettings.BrowserNotificationSettings (cyclomatic 36): BrowserNotificationSettings.BrowserNotificationSettings has cyclomatic complexity 36 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 7 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":"webui/src/components/settings/notifications/BrowserNotificationSettings.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602ae951c39b52a15d5330ac1724897d7914348eab23522c88d42aa117805bd"}},{"ruleId":"D1","level":"warning","message":{"text":"inventory-plugin.componentInventory (cyclomatic 36): inventory-plugin.componentInventory has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 2 of the 36 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 76, visit, recordImport, \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":"webui/src/dev/gallery/inventory-plugin.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"507a3f855b76171f4963436106844392a1ac9bdb89580dddacf71ecfc84ef651"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.attachProjectedReasoning (cyclomatic 36): thread-event-projection.attachProjectedReasoning has cyclomatic complexity 36 (threshold 15). Of this number, 35 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"626f3181b640f95ccf245807b6abc541efb0d4af86385c970a395858bd0b06b8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._save_turn (cyclomatic 35): AgentLoop._save_turn 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":"nanobot/agent/loop.py"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6201933b2c3dd535c6cc8d070a012ed58f9ecaaba4de30ecb3df35a885b7c6"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSearchTool._effective_provider (cyclomatic 35): WebSearchTool._effective_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":"nanobot/agent/tools/web.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f08b7c9c63f76023631c441c85e0ea7fde5a3e61d00dc4459fb8461f08021f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_system.coerce_channel_value (cyclomatic 35): settings_system.coerce_channel_value 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":"nanobot/webui/settings_system.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cd5e7579ebef1c8caa0360e87d67a62dab9c914f38a4c6f7d50785ff0f6a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.SettingsPage (cyclomatic 35): SettingsPage.SettingsPage 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. This shape REPEATS in the file: one other method here (SettingsPage.SettingsPage::renderSettingsSection) 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae3f8a7e7bc3e6117ecfe60ad48da5367cd294f99b35cf8d109358378ba5ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"update_worker.main (cyclomatic 34): update_worker.main has cyclomatic complexity 34 (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":"nanobot/update_worker.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94b56289955ac0a66354fd735fdb1ce5a2e5553a99995ee49df683b5d007be4"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_capabilities.update_image_generation_settings (cyclomatic 34): settings_capabilities.update_image_generation_settings 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d5c6c7ef256a9e20d5a89e4f9878cae4479b0d78cbe0763ca9083ad10ce5d3"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_model_configuration (cyclomatic 34): settings_models.update_model_configuration has cyclomatic complexity 34 (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":"nanobot/webui/settings_models.py"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"1023a7ec156c1d9f1d823993f46a3546ec84bb5ca5e0ec27bc5b7e76544d4d8c"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._select_transcript_page (cyclomatic 34): transcript._select_transcript_page 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":"nanobot/webui/transcript.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd33053d8b1e786a36cf537714b9e67e75c7df48ee91b7835a5dcfe6dc50c0c"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteConnectionsPage.RemoteConnectionsPage::connect (cyclomatic 34): RemoteConnectionsPage.RemoteConnectionsPage::connect 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. This shape REPEATS in the file: one other method here (RemoteConnectionsPage.RemoteConnectionsPage) 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6dca0fb052bea200d3fe72ab245f6076c5a8f3902dd7d193e8529bcd7f3207"}},{"ruleId":"D1","level":"warning","message":{"text":"useHostSessions.useHostSessions.readDirectory (cyclomatic 34): useHostSessions.useHostSessions.readDirectory has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 9 of the 34 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 123, a function literal at line 142, finish). 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcfcbe9cb96fff2a7d0c732d2e9418482b83838fb50f6ded07034a6ab80e306"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelInstancesPanelView.ChannelInstancesPanelView (cyclomatic 34): ChannelInstancesPanelView.ChannelInstancesPanelView has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 3 of the 34 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 137, saveSelectedInstanceSettings, toggleInstance, \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":"webui/src/components/settings/channels/ChannelInstancesPanelView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8402c2358ac22ac25f92a2c945ff39321794a15be26e67410473f76ee4b5c7"}},{"ruleId":"D1","level":"warning","message":{"text":"image-viewport.ImageViewport (cyclomatic 34): image-viewport.ImageViewport has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 3 of the 34 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 129, a function literal at line 75, onPointerMove, \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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b788bdc3f0b1aedeb024d8d6aae86cc41d74d7678b70845751192228a5e883"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._parse (cyclomatic 33): OpenAICompatProvider._parse 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0809ecb4a5c81dca3a4bec60428d29b96ed468edf75388765ab47490c462df6"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.command (cyclomatic 33): LatexParser.command 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":"tui/src/rendering/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7304a5ee50258b968a473eaf2fccd6e181c2cc361e371977cbde8345d7d520f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatList.ActivePaneRows (cyclomatic 33): ChatList.ActivePaneRows 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 3 function literals inside it that branch (lines 1490, 1540, 1548). 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc948cecb2913901dd92599af2c67db8297acae47880c808668fefec4bda110f"}},{"ruleId":"D1","level":"warning","message":{"text":"HostSwitcherView.HostMenuItems (cyclomatic 33): HostSwitcherView.HostMenuItems has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 12 of the 33 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 50, a function literal at line 40, a function literal at line 82, \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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"658ce89c9ec62bec8ea7ed7fafb3e7e16b0c58090356bf1fc6652fb4bd07798a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSettings.WebSettings (cyclomatic 33): WebSettings.WebSettings 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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd53d57029ba6a03576a5e63baf4735b4d32f4cdd19afdb5e745329bbc2397c"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialForm.CredentialForm (cyclomatic 33): CredentialForm.CredentialForm 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 2 function literals inside it that branch (lines 100, 169). 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":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"83dc1fba74348313584f05da5774314a9003d082a0a8c12dfd9c5626dabb213a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsSettings.ModelsSettings::renderPresetEditor (cyclomatic 33): ModelsSettings.ModelsSettings::renderPresetEditor 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. This shape REPEATS in the file: one other method here (ModelsSettings.ModelsSettings) 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"312f2dc274518138cf437402cbb79179f17c592b2eca771c5730546fa0296f89"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsSettings.ModelsSettings (cyclomatic 33): ModelsSettings.ModelsSettings 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. This shape REPEATS in the file: one other method here (ModelsSettings.ModelsSettings::renderPresetEditor) 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfffb6a5a0613f794f849594e8382fd4572b38eedd15774b83f637dcafe2d081"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelsSettings.ChannelsSettings (cyclomatic 33): ChannelsSettings.ChannelsSettings has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 15 of the 33 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 133, 59, 64, \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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d4ad232a3e16f62b848f84f1dc7b5d79d6286dfb5625c0b5b7cf053afdb52"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-display-projection.projectWebuiThreadMessages (cyclomatic 33): thread-display-projection.projectWebuiThreadMessages 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":"webui/src/lib/thread-display-projection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab0377c84ca7e81fd303d6bf22ad1590d5a40124f3326654067f4a9e93991ef"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._build_turn (cyclomatic 32): AgentLoop._build_turn 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":"nanobot/agent/loop.py"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea0bd5fb2067d7688533b8016dd78aa0c06546751a3a86f8855f6d15ed0de1b"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._configure_quick_start_provider (cyclomatic 32): onboard._configure_quick_start_provider 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":"nanobot/cli/onboard.py"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03386338f67e5bf49b05490ee07fe1e8ac3bc20fd3048acd1ada89bd6822281"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUISettingsRouter.dispatch (cyclomatic 32): WebUISettingsRouter.dispatch 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":"nanobot/webui/settings_routes.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdf629fcfb20377c25e69c717cab685312c80ea6421c924291e5d4ec189e144"}},{"ruleId":"D1","level":"warning","message":{"text":"App.readShellRoute (cyclomatic 32): App.readShellRoute has cyclomatic complexity 32 (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":"webui/src/App.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d96ea9fbbe102196d54d85a28b5d4b7ff51b1cbc1dbd738162d0a66e6fab69"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeBlock.CodeBlock (cyclomatic 32): CodeBlock.CodeBlock has cyclomatic complexity 32 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 14 belong to 7 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d702bc28f1d7991a4e7b567590c2ff1d631460eb22d7571b412be86fd60a00d6"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.Sidebar (cyclomatic 32): Sidebar.Sidebar has cyclomatic complexity 32 (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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1352abdb61aebf96a3e54030d463713387bbbe6b31ccf3b60f03d01ad4f47b6"}},{"ruleId":"D1","level":"warning","message":{"text":"useHostSessions.useHostSessions.connect (cyclomatic 32): useHostSessions.useHostSessions.connect has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2162210962dd888db15dbd9bf756654275e74562ed55b9756ce613677ed26743"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelQrConnectFlow.ChannelQrConnectFlow (cyclomatic 32): ChannelQrConnectFlow.ChannelQrConnectFlow has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 90, a function literal at line 81, a function literal at line 156, \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":"webui/src/components/settings/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"65810bc2ece42c1457b088f0f3f9f8e692bf8d1a9706e0557d32267f51eb6b97"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationRunAtPicker.AutomationRunAtPicker (cyclomatic 32): AutomationRunAtPicker.AutomationRunAtPicker has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 5 function items inside it that branch (onDayKeyDown, a function literal at line 157, navigate, \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":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e514f91f351fb0b3b18991af3c33ee03489fccbf67951a6b6d4b123d9f3125fc"}},{"ruleId":"D1","level":"warning","message":{"text":"recovery.restore_runtime_checkpoint (cyclomatic 31): recovery.restore_runtime_checkpoint 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":"nanobot/session/recovery.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cbe819ab38d97c14c5ff8c33ec0bf87b95101d96890f6250e11a52806a4099"}},{"ruleId":"D1","level":"warning","message":{"text":"update_uv.prepare_uv (cyclomatic 31): update_uv.prepare_uv has cyclomatic complexity 31 (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":"nanobot/update_uv.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2c5c1a39140870d4201eac5de0eeb0598d072425b3b9bd2f8009e9c00f0c17"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearMemberAccessView.LinearMemberAccessView (cyclomatic 31): LinearMemberAccessView.LinearMemberAccessView has cyclomatic complexity 31 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 12 belong to 3 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":"nanobot/channels/linear/webui/LinearMemberAccessView.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d816e41f01b8d7e8a3072fa5610b79bf1733d6754db391d76c021e3528f24b5c"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearSecretField.LinearSecretField (cyclomatic 31): LinearSecretField.LinearSecretField has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 15 of the 31 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 33, save, a function literal at line 98, \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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3df7a5d6ee1fc1bb2150bf0abb735618479fd65aafff5e8dbd4efa9b6903fc"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageBubble (cyclomatic 31): MessageBubble.MessageBubble 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"705687e6a696926d266d5a299a79b1b221c66e76f0a91d8de20e681112319df0"}},{"ruleId":"D1","level":"warning","message":{"text":"HostSwitcherView.HostSwitcherView (cyclomatic 31): HostSwitcherView.HostSwitcherView has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"752cf29ac202c5eccd4811eb27563786e25b86e49db5a6bc4a729794946084ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelCatalogRow.ChannelCatalogRow (cyclomatic 31): ChannelCatalogRow.ChannelCatalogRow has cyclomatic complexity 31 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 5 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":"webui/src/components/settings/channels/ChannelCatalogRow.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af741ff12aaadcbf835247da0146898c38fe0f4c4589d67e6caddda39ec4188"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeSettings.RuntimeSettings (cyclomatic 31): RuntimeSettings.RuntimeSettings has cyclomatic complexity 31 (threshold 15). Of this number, 28 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":"webui/src/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"80480478d9044a7a020436508528dc6793a14f9e79095fa71202faefd29797bd"}},{"ruleId":"D1","level":"warning","message":{"text":"generic-tool-model.activityLabel (cyclomatic 31): generic-tool-model.activityLabel 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8843038509c10d6014230deeb62fa3e5faad426b093d70f6666c8c1851919d5"}},{"ruleId":"D1","level":"warning","message":{"text":"ssh-address.parseSSHAddress (cyclomatic 31): ssh-address.parseSSHAddress 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":"webui/src/lib/ssh-address.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"68039de3e3281bb8396e6eacfb6c4485034ddb343efa6acccccd61ae65daaf4e"}},{"ruleId":"D1","level":"warning","message":{"text":"imageEncode.worker.sniffImageMime (cyclomatic 31): imageEncode.worker.sniffImageMime has cyclomatic complexity 31 (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":"webui/src/workers/imageEncode.worker.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ca5daa085d5687a1e0de467e06d041a89898c36a8828df2a35ca927da6ad09"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSearchTool._search_volcengine (cyclomatic 30): WebSearchTool._search_volcengine 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/web.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f7311d8b57e89e1f15d0b44c55343a5d07887f6c35483ea3f1e0fb57a486d7"}},{"ruleId":"D1","level":"warning","message":{"text":"data_access.data_access (cyclomatic 30): data_access.data_access 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/data_access.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c722a06796a637e3c2b4c7b447ffaf4680a3ef5cd42cf8604ce41cef8ab5f90"}},{"ruleId":"D1","level":"warning","message":{"text":"routing.resolve_provider_route (cyclomatic 30): routing.resolve_provider_route has cyclomatic complexity 30 (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":"nanobot/providers/routing.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"238aaeff9ac0377da791da35f86d0061f7b51a30015160265819ab3b522b71e7"}},{"ruleId":"D1","level":"warning","message":{"text":"update_stop.stop_reviewed_gateways (cyclomatic 30): update_stop.stop_reviewed_gateways 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/update_stop.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aba836838366c9d24738f46c6a4dbfca9463c1fd27ec9c20a61e8702a4a3f7"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter.start_webui_request (cyclomatic 30): WebUICommandRouter.start_webui_request 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/inbound_commands.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a311040c3fda2e142aa1bda46575232837a7c0c6b4ceb24487bf88463e52619"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInstances._connect (cyclomatic 30): RemoteInstances._connect has cyclomatic complexity 30 (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":"nanobot/webui/remote_instances.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dc5250836a4c4452864fa05e7b39f90e5e9517e705af2059c9ca7eebe97dec"}},{"ruleId":"D1","level":"warning","message":{"text":"api.fetchSessions (cyclomatic 30): api.fetchSessions has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 11 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 415). 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":"tui/src/client/api.ts"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf267bffeb892948a545f69784831a6cdc19c2c099f40ece59771503888abfb"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.constructor (cyclomatic 30): NanobotTui.constructor has cyclomatic complexity 30 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 13 belong to 8 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":"tui/src/app/app.ts"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccee9ffe58a7dccc714b2fb270d35c8f92af0b4d00f466d2b0bce2aeb238595"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsControls.RestartSettingsFooter (cyclomatic 30): SettingsControls.RestartSettingsFooter has cyclomatic complexity 30 (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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3265ab4a723f48cd61eccf62519c384471e23b1915bb4875628cf76997927443"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeConfigSettings.useRuntimeConfigSettings.save (cyclomatic 30): RuntimeConfigSettings.useRuntimeConfigSettings.save has cyclomatic complexity 30 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8df93b0f65b391e9e5a3d6b977720501f1c7ba5ec778696c526afcfee117469"}},{"ruleId":"D1","level":"warning","message":{"text":"channels.ChannelFormPreview (cyclomatic 30): channels.ChannelFormPreview 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 11 function items inside it that branch (a function literal at line 46, validate, a function literal at line 102, \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":"webui/src/dev/gallery/channels.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3eb72cb84fef948d237535bf5864ee496a0b8d7a5f5836ea8ca1b05e1376e23"}},{"ruleId":"D1","level":"warning","message":{"text":"api.hasValidProjectionMetadata (cyclomatic 30): api.hasValidProjectionMetadata has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 5 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":"webui/src/lib/api.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fbf58ad63781a270fd4bd4b840bdf0adff6105ec02efe0148f77574d4e83ef"}},{"ruleId":"D1","level":"warning","message":{"text":"nanobot-client.runObservation (cyclomatic 30): nanobot-client.runObservation 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eab16a60dc78579b77ae75c1e7859195a797462081497e39708cafd45a256dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFileTool.execute (cyclomatic 29): ReadFileTool.execute 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"070e2ae6d5a2755b10507595d38fb6a23884e7d6fb9274b84eeb22443639aa17"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFileTool._read_text (cyclomatic 29): ReadFileTool._read_text 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec121aca8804a7ef17b98c21beed3791ec1b71c4c10988f61223d9e75b467a29"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProvider._run_with_retry (cyclomatic 29): LLMProvider._run_with_retry 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":"nanobot/providers/base.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"65df24780e5f0eaff87d964ec77890eaef85f143bff3771b2b441d8cee677571"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockProvider._parse_stream_event (cyclomatic 29): BedrockProvider._parse_stream_event 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ca4bf913b598bcfad4bf254fe2852abd0a01c85c093e6f0b5feb2bda1e7e91"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._build_responses_body (cyclomatic 29): OpenAICompatProvider._build_responses_body 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"06605b355e34b0f0bbffea1cc99c3413132f010704e0fbeade68dc98d20911bd"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter.dispatch (cyclomatic 29): WebUICommandRouter.dispatch 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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"552a1f55b1d1f532443929c9901b17fc73783a24d98c8ab57156277a7eeebbc1"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemSettingsHandler.handle (cyclomatic 29): SystemSettingsHandler.handle 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":"nanobot/webui/settings_system.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc1f63d264b869abbd8b54f350f3c29153ec139933498f5c19ef0d206442c29"}},{"ruleId":"D1","level":"warning","message":{"text":"MermaidBlock.MermaidBlock (cyclomatic 29): MermaidBlock.MermaidBlock has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 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":"webui/src/components/markdown-diagrams/MermaidBlock.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b461cd1fa727d818edb4cdf2234d39ee3f50bbf67b2ffe80d69009ae9203a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMotionCoordinator.flushGeometry (cyclomatic 29): ThreadMotionCoordinator.flushGeometry 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ed0e8d69fc994b21389a8f4ec1a751edee0d8497e9dfe8dae5cab8a0f5a8ac"}},{"ruleId":"D1","level":"warning","message":{"text":"useQueuedPrompt.normalizeQueuedPrompt (cyclomatic 29): useQueuedPrompt.normalizeQueuedPrompt has cyclomatic complexity 29 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 11 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":"webui/src/components/thread/useQueuedPrompt.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10edbb6d2dbcbb1772da054c1f3baa2e434a5e1b62e3fbfa542b8e73b08d9eb"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-page-fragments.joinThreadFragments (cyclomatic 29): thread-page-fragments.joinThreadFragments has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 34, same, a function literal at line 17, \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":"webui/src/lib/thread-page-fragments.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca923457da444ea3d63e881d42c56830ce405f3beae3a56741d38f004b07c02f"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._prepare_command (cyclomatic 28): ExecTool._prepare_command 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f39c3a9ca80bcebe56c268d071c75135565fcf2059c4b5cb664578abd3059d"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._guard_command (cyclomatic 28): ExecTool._guard_command 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"853997de2047caddeae266f132b4767e1e0fdaffb2a4599b834252355710d94a"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMUsageStore.usage_payload (cyclomatic 28): LLMUsageStore.usage_payload 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":"nanobot/llm_usage/store.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9ff9299e72cf09c487782a320f706fb811c8829da55c2bdae9e9f473c34ba6"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider.chat_stream (cyclomatic 28): AnthropicProvider.chat_stream 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"067ab1fc5b5ca002641910687ff81096eaf72904d19748fd2c8aa4cbf53739f2"}},{"ruleId":"D1","level":"warning","message":{"text":"factory._make_provider_core (cyclomatic 28): factory._make_provider_core 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":"nanobot/providers/factory.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc6e44e005c0f653943984f07b2535afef6defc72cc8cfc967a1e30a27b41a5"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing._hosted_web_search_event (cyclomatic 28): parsing._hosted_web_search_event 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"14025a78a8b87ea26a232f8652e7129b2307cba688e02597143475b23818056e"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api._mcp_server_config (cyclomatic 28): mcp_presets_api._mcp_server_config has cyclomatic complexity 28 (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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"937adf7d3de2913977265088c53cb013ffe224464bc79a2e4e8f331c26bde496"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentTile.AttachmentTile (cyclomatic 28): AttachmentTile.AttachmentTile 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":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb4ab5d647655ec6f9ad8b3614c77ce5f30f5999847425e3dda6a686e63e915"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGallery.ImageGallery (cyclomatic 28): ImageGallery.ImageGallery has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 68, 57, 23, \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":"webui/src/components/ImageGallery.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"701efd2694be0bd4c0ab56009b77a7727ef156449482ea104895cb7a023bffd7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextInspector.ContextInspector::content (cyclomatic 28): ContextInspector.ContextInspector::content has cyclomatic complexity 28 (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":"webui/src/components/thread/ContextInspector.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41f54359957966c982b7c00f5376983126cda49bda20937ca171a268064af02"}},{"ruleId":"D1","level":"warning","message":{"text":"useAttachedImages.useAttachedImages.enqueue (cyclomatic 28): useAttachedImages.useAttachedImages.enqueue has cyclomatic complexity 28 (threshold 15). Of this number, 20 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5f7ec5d9c0db3704472e73811357cf373c0249754958763b3acfaa0452e024"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._extract_posix_paths_from_token (cyclomatic 27): ExecTool._extract_posix_paths_from_token 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"711077e265298a9c9022939a6b9fdb6b3f5ef11c8f1e73d2bbc3d8f20e07a058"}},{"ruleId":"D1","level":"warning","message":{"text":"XAIGrokProvider._call_xai (cyclomatic 27): XAIGrokProvider._call_xai 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a7329caab14af9d1950a088c2276f034d4b0818b4b3fd8a1599cb7ec88cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_capabilities.update_web_search_settings (cyclomatic 27): settings_capabilities.update_web_search_settings 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"309cee95abcf9704b3bbdff92223fd914896cc72edf0acc6282e91f53bf9dc61"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.provider_models_payload (cyclomatic 27): settings_models.provider_models_payload 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":"nanobot/webui/settings_models.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"187fa651afbe263b0d3a9ce8c2f80d94c0d9a62034525e2d035e9b784d9fa712"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.build_session_thread_response (cyclomatic 27): transcript.build_session_thread_response 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":"nanobot/webui/transcript.py"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccfd231833693ccbb68b17ac0f681a78b0364f9f36f5b11df18110e0f3872a5"}},{"ruleId":"D1","level":"warning","message":{"text":"api.fetchMentionCandidates (cyclomatic 27): api.fetchMentionCandidates has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 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":"tui/src/client/api.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8ebfa04234734bd0a308d7b9d9f4f2cc5f920cf3c4c18a6fb358218fbdae6d"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 27): App.App has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 652, handleNativeEngineRestart, a function literal at line 615, \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":"webui/src/App.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbfbefaacaa5abdee1e3cf55f6ef14caa9380f2b0a38b68aba7f79243fc0ae0"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.McpCustomServerPanel (cyclomatic 27): AppsSettings.McpCustomServerPanel has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ecfd5d8d2cd8a1a35f1e3b197b3cd76416084eb518208c9320b0015dc2ac7"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.formatCronScheduleSummary (cyclomatic 27): AutomationsSettings.formatCronScheduleSummary has cyclomatic complexity 27 (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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"da29c86aa4f18a9c7dfede77c457aa31db93fb5fa7817d7e9f2f009c4a389214"}},{"ruleId":"D1","level":"warning","message":{"text":"usePromptHistory.usePromptHistory (cyclomatic 27): usePromptHistory.usePromptHistory has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 9 of the 27 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 232, 94, 97, \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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feb7bc88949bf0b89392920720b8622ad14c92be163da927247aaed4ab2bad9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._process_message (cyclomatic 26): AgentLoop._process_message 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":"nanobot/agent/loop.py"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989c84661b69bcb66c30ad2ce61d96ee3d3259c8adc581ffb05c694b2fe3152"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryArchiver.archive (cyclomatic 26): MemoryArchiver.archive 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":"nanobot/agent/memory.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace339015ad0eeb9bf7f462e6515134229d479598a0c574bb5c639ddabb2a81"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSearchTool._search_deepseek (cyclomatic 26): WebSearchTool._search_deepseek 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":"nanobot/agent/tools/web.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"da039d17f6f7f693d378f85dc16918edbd3c7aa6b44a0dbcd6fa911b1c1726ae"}},{"ruleId":"D1","level":"warning","message":{"text":"converters.convert_tool_output (cyclomatic 26): converters.convert_tool_output 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":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d50f788b5e57679ac5434b3dda3117c1613cbeed74b308412787e0a38a3c2b1"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_capabilities.update_transcription_settings (cyclomatic 26): settings_capabilities.update_transcription_settings 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8672ce39f448644083b73d136440f819d361a4c5160b42b8af738e9efa8b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_provider_settings (cyclomatic 26): settings_models.update_provider_settings 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"8017bf2456bb5427352ad76de398c7c54c6c0474137acb8e082fb9d10e75018f"}},{"ruleId":"D1","level":"warning","message":{"text":"QQConnectFlowView.QQConnectFlowView (cyclomatic 26): QQConnectFlowView.QQConnectFlowView has cyclomatic complexity 26 (threshold 15). Of this number, 20 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":"nanobot/channels/qq/webui/QQConnectFlowView.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ad4727c42e86af7ddf4998652750da724f4f9eab6fc8eb7d0aaea1c171ba9b"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffViewer.render (cyclomatic 26): DiffViewer.render has cyclomatic complexity 26 (threshold 15). Of this number, 24 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":"tui/src/views/diff-viewer.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3427bd44acfaad108853886dd00c92910c03c95f2cb3ffd071e451767a8cdc7e"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagramViewer.paint (cyclomatic 26): DiagramViewer.paint has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 11 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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab96a7aeb850d167d9eccd841bda2c3c2bac272fcf12706c4a4357f215d37b"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationSettings.ImageGenerationSettings (cyclomatic 26): ImageGenerationSettings.ImageGenerationSettings has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc7f6c6c6ddb6500bffedeb78fe2ea5018033145d55432d3e536a65a58a2e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelPresetDrag.useModelPresetDrag (cyclomatic 26): useModelPresetDrag.useModelPresetDrag has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 51, 121, 86, \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":"webui/src/components/settings/models/useModelPresetDrag.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"101a4aa334937ed282bba467d8fb54d1f3df866228e2d1efce34bef27609591c"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.ThreadShell::composer (cyclomatic 26): ThreadShell.ThreadShell::composer 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. This shape REPEATS in the file: one other method here (ThreadShell.ThreadShell) 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac26c61db8db682684ac3748ec59ca1c3da73036fb340d6c09bd3c3e6abc107"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceControls.WorkspaceAccessMenu (cyclomatic 26): WorkspaceControls.WorkspaceAccessMenu has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 775, 721, 719, \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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"a323b4ff858e54dcd93735f48623ee2ec4a242856d74a83531b2e9062d6336b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ThinkingReasoningShell.ThinkingReasoningShell (cyclomatic 26): ThinkingReasoningShell.ThinkingReasoningShell 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":"webui/src/components/thread/activity/ThinkingReasoningShell.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a397d10ccc4a7760359914aeb723c3c5903e18a7016e3f13ad82a0b0c4ea9ce5"}},{"ruleId":"D1","level":"warning","message":{"text":"exec-session-model.describeExecSession (cyclomatic 26): exec-session-model.describeExecSession 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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"266dda03db0946c6215dcdd28b7bcff2c19350dcb3aae8b42e92677cdcb8c3b8"}},{"ruleId":"D1","level":"warning","message":{"text":"useNanobotStream.useNanobotStream.send (cyclomatic 26): useNanobotStream.useNanobotStream.send has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 11 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8f4a7a6151e0ff1d5d2c4df57eff54a0bcf21803471137dd5cb99d21a61242"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientRunLedger.applyCommand (cyclomatic 26): ClientRunLedger.applyCommand has cyclomatic complexity 26 (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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0cb03f4079a528e01ec32b13c5740a3672bf886d6f49eea30b256ded1a844e"}},{"ruleId":"D1","level":"warning","message":{"text":"network.migrate_legacy_proxy_config (cyclomatic 25): network.migrate_legacy_proxy_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":"nanobot/config/network.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea37aef964bd7074150cd15c2bd76b6521e30373e030f41e072b121f2d7eec5"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._history_prompt_summaries (cyclomatic 25): transcript._history_prompt_summaries 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":"nanobot/webui/transcript.py"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"d235e8097f85fc11576848c82eb8d710a8aa816bc385a5f61a43f88fb659e0bd"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.handleMessage (cyclomatic 25): NanobotClient.handleMessage 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"050ceb343e07d3f8c48e1b848cd8d3bb405313498553fce0d10f0c50dba89c34"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagramViewer.handleKey (cyclomatic 25): DiagramViewer.handleKey has cyclomatic complexity 25 (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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a379f6a2cb83c86fa3592bba1381dc55645e7c3fe7e0bad60cabca48ebf6be3"}},{"ruleId":"D1","level":"warning","message":{"text":"FileActions.FileActions (cyclomatic 25): FileActions.FileActions has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 59, a function literal at line 53, copy, \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":"webui/src/components/FileActions.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4daed7db58130382f11c8dbe66798dde334b9d9ba5ef4b3edf45642e702f25"}},{"ruleId":"D1","level":"warning","message":{"text":"svg-image.style (cyclomatic 25): svg-image.style 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae16b0565f3722cc8a6361570ec058f7b1291d799e0803dde4e15ddcfe0589a"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsageCard.TokenUsageCard (cyclomatic 25): TokenUsageCard.TokenUsageCard has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 140, 160, 153, \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":"webui/src/components/settings/TokenUsageCard.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"769fb748cd82be4a1fabfd6efe056227c8546dd2e1494c3c390742062ada8edb"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsageModelTrend.TokenUsageModelTrend (cyclomatic 25): TokenUsageModelTrend.TokenUsageModelTrend has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 60, a function literal at line 134, spoken, \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":"webui/src/components/settings/TokenUsageModelTrend.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd1d351f43f24747e0c986464978c26cff5b1fcf560f07c3c4f1d42d4ff4f2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelValidationProgress.ChannelValidationProgress (cyclomatic 25): ChannelValidationProgress.ChannelValidationProgress has cyclomatic complexity 25 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 11 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":"webui/src/components/settings/channels/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9d5bca94c2f67f7ae3e2a105922f5ee16cccb4d5b1c9e19a0e9dfa571c64f6"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.saveProvider (cyclomatic 25): useModelSettingsActions.useModelSettingsActions.saveProvider 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f41306d0960e852b9df3c111a149742f7614a1acd87b4c93353141b49e08d9f"}},{"ruleId":"D1","level":"warning","message":{"text":"McpManagementDialog.ConnectionPanel (cyclomatic 25): McpManagementDialog.ConnectionPanel has cyclomatic complexity 25 (threshold 15). Of this number, 22 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ecd7e6b4f72af44e338c413952dbdcc0e5505994f9900a48c106553cb5fe7"}},{"ruleId":"D1","level":"warning","message":{"text":"useSettingsController.useSettingsController (cyclomatic 25): useSettingsController.useSettingsController has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 185, 208, 179, \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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc950415364f230c3eb288058e243690caf318251cd68713510416cae12d2df"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantSelectionAction.AssistantSelectionAction (cyclomatic 25): AssistantSelectionAction.AssistantSelectionAction has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 81, 53, 79, \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":"webui/src/components/thread/AssistantSelectionAction.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a43314dc6aae274d2a80c6dfa559253b8e672cf161d0cd1235666b025c8da01"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionInfoPopoverView.SessionInfoPopoverView (cyclomatic 25): SessionInfoPopoverView.SessionInfoPopoverView has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 12 belong to 8 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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5858c2e399c7c1054187ca8321665a95740727221ddcdfb515d18100420c1d"}},{"ruleId":"D1","level":"warning","message":{"text":"api.fetchPromptIndex (cyclomatic 25): api.fetchPromptIndex has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 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":"webui/src/lib/api.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"414901730672da5526af449728e7380d80ff5cab52f2e5ad1938715ffbd00f07"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._restore_turn (cyclomatic 24): AgentLoop._restore_turn 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":"nanobot/agent/loop.py"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede07268f2a13188f4ea607a3e909eaf33a4c42269e40b7b9987656b44d585b1"}},{"ruleId":"D1","level":"warning","message":{"text":"_MCPWrapperBase._request_with_recovery (cyclomatic 24): _MCPWrapperBase._request_with_recovery 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a045052ea37391f0320e34a49976d1a6fb73bb82c72fe6cd9c3b41026f21e5f"}},{"ruleId":"D1","level":"warning","message":{"text":"jsonl_migration.read_jsonl (cyclomatic 24): jsonl_migration.read_jsonl 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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a8aec591448650fe66b72287787bc0d5e6f1801f5f867748a2652ca8aae3bd"}},{"ruleId":"D1","level":"warning","message":{"text":"update_fallback.supervise (cyclomatic 24): update_fallback.supervise 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":"nanobot/update_fallback.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caa53c9507d4f9779ddae0c3683437aff14dadf26b95404163f960ebabe4f68"}},{"ruleId":"D1","level":"warning","message":{"text":"update_manager.read_manager_policy (cyclomatic 24): update_manager.read_manager_policy 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":"nanobot/update_manager.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"295c78768724344d475c645a7c15f61c708101b21ad9c20ebc3556ed7f0694de"}},{"ruleId":"D1","level":"warning","message":{"text":"pty_smoke.smoke (cyclomatic 24): pty_smoke.smoke 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":"tui/scripts/pty_smoke.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f5db05aca26af40bb2b62decd2d6bc5639abbd09ea38bef78f637f04eb33d3"}},{"ruleId":"D1","level":"warning","message":{"text":"MermaidBlock.sync (cyclomatic 24): MermaidBlock.sync has cyclomatic complexity 24 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 11 belong to 3 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":"tui/src/rendering/mermaid/block.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ea7a28c5c82efb4bf28803c9b08044a327fe517b4c99aacd306537c53ac8ef"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppMentionText.splitCapabilityMentionSegments (cyclomatic 24): CliAppMentionText.splitCapabilityMentionSegments 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, 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e120a99be6b15229feff7571bd2a7f7de73ed79793d09f1a053e15e029cdad3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderSettings.ProviderOAuthLoginDialog (cyclomatic 24): ProviderSettings.ProviderOAuthLoginDialog has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7e87e6464aea5650adac17a8d83e0f8d064ee18b73773b7b1f8ad311388533"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings (cyclomatic 24): ProviderSettings.ProvidersSettings 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. This shape REPEATS in the file: one other method here (ProviderSettings.ProvidersSettings::renderProviderForm) 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d891230556759cf71ad6728ad08f1e5a7b3cab30b49ba17cdcc9dfb356282dc6"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadingSettings.ReadingSettings (cyclomatic 24): ReadingSettings.ReadingSettings has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (commitDraft, a function literal at line 94, a function literal at line 106, \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":"webui/src/components/settings/overview/ReadingSettings.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"901601e5e38da221a4f737b7ab2bcf2ebecb3f42809d545ed15c4fa2d3c4750a"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.MessageBlockMenu (cyclomatic 24): ThreadMessages.MessageBlockMenu has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 443, 542, 554, \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. This is NOT this file\u0027s highest cyclomatic complexity: ThreadMessages.threadDisplayUnitPropsEqual (cyclomatic 33) 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 method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e67a0d21774cbdb64ab2516aa96ef349445ad53b3e64f13eb15cf99d0a238fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.completedMessageBlocks (cyclomatic 24): ThreadMessages.completedMessageBlocks has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (flushGroup, a function literal at line 1065, a function literal at line 1083, \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. This is NOT this file\u0027s highest cyclomatic complexity: ThreadMessages.threadDisplayUnitPropsEqual (cyclomatic 33) 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 method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"b868e97e86bdc41652d307bd5a364910262cb1e58484fa6865d53234ccc4f235"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityStep.ActivityStep (cyclomatic 24): ActivityStep.ActivityStep has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 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":"webui/src/components/thread/activity/ActivityStep.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9962721f4dfb4f57e010899f4df4264e2f720b1c2361a875a4973ef9fe3a530"}},{"ruleId":"D1","level":"warning","message":{"text":"diff-selection.selectedDiffRows (cyclomatic 24): diff-selection.selectedDiffRows 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":"webui/src/components/thread/activity/diff-selection.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"343b38c5fd98fd8df483641c8f371891f2c1b2a9a6472653f8315fd5ff8155ef"}},{"ruleId":"D1","level":"warning","message":{"text":"web-url.isPrivateHostname (cyclomatic 24): web-url.isPrivateHostname 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":"webui/src/components/thread/activity/web-url.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b807be253a19f99caaf254fa1a149cd7ef5ccb2c4522af04c8518def57a7ede3"}},{"ruleId":"D1","level":"warning","message":{"text":"model-preset.toModelBadgeInfo (cyclomatic 24): model-preset.toModelBadgeInfo 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":"webui/src/components/thread/model-preset.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eae6e338fc4df28d93db316c5a59e92fed47fd09ec498a49a120b04938e8738"}},{"ruleId":"D1","level":"warning","message":{"text":"ansi.applySgrParams (cyclomatic 24): ansi.applySgrParams 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":"webui/src/lib/ansi.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5461a844369e0ab0ba765f03ea84dd9e3e6033df5c7bb9b9c7d389202c9679df"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnDelivery._publish_event (cyclomatic 23): TurnDelivery._publish_event 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":"nanobot/agent/turn_delivery.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c0ec1a79a35e982dda314c46c7c1629d2a30776b6f6b671bf7e84d7ac25d28"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._sanitize_messages (cyclomatic 23): OpenAICompatProvider._sanitize_messages 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd0b7534aabdd8fbcfc1d6180a1e80007b60ed5282afe13509dca5fc8a45230"}},{"ruleId":"D1","level":"warning","message":{"text":"quick_validate.validate_skill (cyclomatic 23): quick_validate.validate_skill 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":"nanobot/skills/skill-creator/scripts/quick_validate.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5266d3afb72b2d4632cf62b2fae023f5d593f8cbc65562521557e633b29d96"}},{"ruleId":"D1","level":"warning","message":{"text":"update_guidance.update_guide (cyclomatic 23): update_guidance.update_guide 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":"nanobot/update_guidance.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c788307b56f04aa9ebf6d27f6ecf7cf8e9e39cae8602c6f071d733b2dafe2738"}},{"ruleId":"D1","level":"warning","message":{"text":"update_restart.run_restarts (cyclomatic 23): update_restart.run_restarts 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":"nanobot/update_restart.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"432e6494d0b12931e73c6538280f95f3460b2a18ed077d95b1504d8434a4b9cd"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerSpec.read (cyclomatic 23): WorkerSpec.read 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":"nanobot/update_worker.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b556e5ecfc14e8e889682b6b724db6144d5ac3d926dd25bf753560f31bccdfbb"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.split_message (cyclomatic 23): helpers.split_message 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":"nanobot/utils/helpers.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"3206a5eb89f3ddf043d783c1b85897dcdbec6ad89bd2917cbfe53fe08b26e535"}},{"ruleId":"D1","level":"warning","message":{"text":"history.fact_from_record (cyclomatic 23): history.fact_from_record 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":"nanobot/webui/history.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"47831aaa542f1ce4b2479200a4250aab6a0d86032f30b852911d904f14237fdc"}},{"ruleId":"D1","level":"warning","message":{"text":"RecoveryCoordinator._recover_session (cyclomatic 23): RecoveryCoordinator._recover_session 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":"nanobot/webui/recovery.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1876447166388b44790f9ba6843615455604be6a84ec2262a26001bf0b060cc"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.open (cyclomatic 23): NanobotClient.open has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 10 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7a86b0dc653422898661187a03df6ce603f73cb14c882ce03f39c2239f4f76"}},{"ruleId":"D1","level":"warning","message":{"text":"latex.mathSpanAt (cyclomatic 23): latex.mathSpanAt 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":"tui/src/rendering/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f947d47a1ed97979a3e1966eff2ace41b3951db73f9c925483da86cc1945e"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagramJobs.observe (cyclomatic 23): DiagramJobs.observe has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 126). 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f68177a9869484b41735199c68556a458f23bea46cff8c7b2cd4d9e99523dde"}},{"ruleId":"D1","level":"warning","message":{"text":"FilePreviewPanelView.FilePreviewPanelView (cyclomatic 23): FilePreviewPanelView.FilePreviewPanelView has cyclomatic complexity 23 (threshold 15). Of this number, 22 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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ffa51a2deba7ff39dfe0bc4c5c97faba796d1c27886c53d06edeb100a0478c"}},{"ruleId":"D1","level":"warning","message":{"text":"PairingCodePopup.PairingCodePopup (cyclomatic 23): PairingCodePopup.PairingCodePopup has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 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":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccd2ba4fc583075f150784fbe010c2bdb0b621a3897096228a0eade0bd8f45a"}},{"ruleId":"D1","level":"warning","message":{"text":"SSHHostPickerView.SSHHostPickerView (cyclomatic 23): SSHHostPickerView.SSHHostPickerView has cyclomatic complexity 23 (threshold 15). Of this number, 17 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":"webui/src/components/remote/SSHHostPickerView.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0188baf3965aa1b70022a5f92c5191ce1988e91ffe8176c348de2a9bc43a6388"}},{"ruleId":"D1","level":"warning","message":{"text":"SSHHostPicker.SSHHostPicker (cyclomatic 23): SSHHostPicker.SSHHostPicker has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 21, 46, 27, \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":"webui/src/components/remote/SSHHostPicker.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d45cb074169cbcaf2aa306b616695d24a6f489c9af10f1205a151ae3717c301"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationCalendar.AutomationCalendar (cyclomatic 23): AutomationCalendar.AutomationCalendar has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 9 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 287, a function literal at line 265, a function literal at line 378, \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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5a6d4fac49ede73ea6695acf27b42bd387a48e74a6593deab86cd69f6d4316"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalIsland.GoalIsland (cyclomatic 23): GoalIsland.GoalIsland has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 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":"webui/src/components/thread/GoalIsland.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5542a4d73ec35cf694d55680cdbd7008cdbe2a83db2ded9def239175fc55afd"}},{"ruleId":"D1","level":"warning","message":{"text":"trace-activity-model.describeTraceLine (cyclomatic 23): trace-activity-model.describeTraceLine 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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ffd36a427f22d6ceb16a070e08886b252468c8cd284ae67c8f8552f0d1b880"}},{"ruleId":"D1","level":"warning","message":{"text":"combobox.useComboboxNavigation (cyclomatic 23): combobox.useComboboxNavigation has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 10 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":"webui/src/components/ui/combobox.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbcc1cf1513b62ea4f59e92e98d914ab31c4989736734a44bd66d7e51b50b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-transcript.matchUnits (cyclomatic 23): thread-transcript.matchUnits 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c4024f3ab52ced141866d6aad3b77e133fd88536523c2fae5aee198ac4a756"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._resolve_shell (cyclomatic 22): ExecTool._resolve_shell 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"b471d5207624420bf79b9cbab284dcd203f650c8062b6cf6c31c7d3a136490e4"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._validate_field_constraint (cyclomatic 22): onboard._validate_field_constraint 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":"nanobot/cli/onboard.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0c91e8eb636a9fd6e27593c3a5390dede3f70fa52f70a3d9c86caa6e3d5ce8"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._configure_model_presets (cyclomatic 22): onboard._configure_model_presets 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":"nanobot/cli/onboard.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce8d901e326c5807c41f400e87d951eb407e8f5bd25f8825b9d4e3b31b920ef"}},{"ruleId":"D1","level":"warning","message":{"text":"optional_features.with_channel_runtime_status (cyclomatic 22): optional_features.with_channel_runtime_status 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":"nanobot/optional_features.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc1a2c013e19d3a619a51686cb14864f93f36d8fe485614440db954c7a68aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"github_copilot_provider.login_github_copilot (cyclomatic 22): github_copilot_provider.login_github_copilot 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d825a4096d6cad4d197a5b04cc97142522f69f7172aa90569e2b8870b750cd"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.parse_response_output (cyclomatic 22): parsing.parse_response_output 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d3ab5ab9cc7b26a497efdfb4306f3d1ea0476fa3fa48c3c7bedfc872ae3518"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionState._apply_turn (cyclomatic 22): SessionState._apply_turn 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":"nanobot/session/state.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"57889f8ecbff2e1c70b25b72dab5e14db23eb756a4fb26292aaad25b7ab6d866"}},{"ruleId":"D1","level":"warning","message":{"text":"update_worker._verification_child (cyclomatic 22): update_worker._verification_child 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":"nanobot/update_worker.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a276aedccae976c0363cae9c01192d875160eb5f7d28db32d93c7753e580ffd"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers._estimate_prompt_tokens_with_source (cyclomatic 22): helpers._estimate_prompt_tokens_with_source 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":"nanobot/utils/helpers.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"840413a2434312de69439124cedba7ab1a226d83c73ad0a5a63f2d2f2e508f0b"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_settings_action (cyclomatic 22): mcp_presets_api.mcp_presets_settings_action 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be00d31195c485875aabbdcab567aa8d963eaeca1f8982b89b85226fdf60aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models._model_metadata_payload (cyclomatic 22): settings_models._model_metadata_payload 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":"nanobot/webui/settings_models.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15236c02c982dbc84fc7a1c3b0c54c5556e46e5a52099c41c0674248053b2aa"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_result (cyclomatic 22): GatewayHTTPHandler._handle_webui_automation_result 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"328cbe03578d41b9e025542a7856d2ae465e35383b12a6022c52e6eb2af80de6"}},{"ruleId":"D1","level":"warning","message":{"text":"connection.sanitizeConnectionFailure (cyclomatic 22): connection.sanitizeConnectionFailure 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 one function item inside it that branches (collect). 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":"tui/src/client/connection.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a698d79b36bb556d0026249938f2ec76b0da07aee8f5e61a221320bfee65267d"}},{"ruleId":"D1","level":"warning","message":{"text":"svg-image.typography (cyclomatic 22): svg-image.typography 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc158d9d5d4f439e38f2212e1b07a96bcda5f01ea78f3537f9790f35f27dc2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelAPIControl.ModelAPIControl (cyclomatic 22): ModelAPIControl.ModelAPIControl has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 belong to 3 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":"webui/src/components/settings/models/ModelAPIControl.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c08bc50d6039a574513420ffc9ffb906680d6996bb0f25ee3e9cb4d38e33d79"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationRunDialogView.AutomationRunDialogView (cyclomatic 22): AutomationRunDialogView.AutomationRunDialogView 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":"webui/src/components/settings/system/AutomationRunDialogView.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2693af1b01e71330176421173649031280fd11ac66285abc2c9f4a93fe1aa9f"}},{"ruleId":"D1","level":"warning","message":{"text":"generic-tool-model.activityDetail (cyclomatic 22): generic-tool-model.activityDetail has cyclomatic complexity 22 (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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c5196eb1e18cb05c8ba8e8f8d839029624438e609ac50ea77209b727c78330"}},{"ruleId":"D1","level":"warning","message":{"text":"useSandboxNotice.useSandboxNotice (cyclomatic 22): useSandboxNotice.useSandboxNotice has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 29, 45, 26). 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":"webui/src/components/thread/useSandboxNotice.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d4144a2252b0d6fdfa0bdcecbded869a32ef4d4855a8f28c0d8e57ae61bb86"}},{"ruleId":"D1","level":"warning","message":{"text":"usePromptHistory.usePromptHistory.read (cyclomatic 22): usePromptHistory.usePromptHistory.read has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b78779392e31b3ffd5c7d03c3e09a824dbf1c0e7da7b1dc6abb2aeafce268e9"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.sendMessage (cyclomatic 22): NanobotClient.sendMessage 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a0350e72da0c40407766f6f8c1f5970d97e56223a237d8067b779b2840b857"}},{"ruleId":"D1","level":"warning","message":{"text":"FindFilesTool._execute_sync (cyclomatic 21): FindFilesTool._execute_sync 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":"nanobot/agent/tools/search.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d745ec7e52da76613f7013ae6026e56fab146fdc9442653fbec129e95ac621c"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._split_shell_segments (cyclomatic 21): ExecTool._split_shell_segments 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"950f0b54c3d93d2adc6f152aaeec65e0f37e94453243793554d65c75dd5ec8d6"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellOutputFilter.feed (cyclomatic 21): ShellOutputFilter.feed 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":"nanobot/agent/tools/shell_output.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18396fa13361bc4a2193952fdfa948ea29db2bf76b9889dc59d1b9f2cb31c32"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnDelivery.complete (cyclomatic 21): TurnDelivery.complete 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":"nanobot/agent/turn_delivery.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3099a4f1591e052149cc45fd60280a9b9cba7b5575544b7ae952d0cd9ba6cbe"}},{"ruleId":"D1","level":"warning","message":{"text":"update.update (cyclomatic 21): update.update 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":"nanobot/cli/update.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"454b11104d5a63976b676af861a115e276d8be60e8bf84c37795415633dab641"}},{"ruleId":"D1","level":"warning","message":{"text":"optional_features.optional_features_payload (cyclomatic 21): optional_features.optional_features_payload 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":"nanobot/optional_features.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c65d96d11a7295cb8905349109172629df72d5da8a4382e0a5db65be4f3184"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider._build_kwargs (cyclomatic 21): AnthropicProvider._build_kwargs 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"92843a2a37980a2ec15aa95192e137379c83e4439075b3ba64faf2e59995bf81"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProvider._sanitize_empty_content (cyclomatic 21): LLMProvider._sanitize_empty_content 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":"nanobot/providers/base.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1b9f176d02f33034b72098b74231fc2e98bc26685ea703e4f02732aed9a91"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProvider._enforce_role_alternation (cyclomatic 21): LLMProvider._enforce_role_alternation 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":"nanobot/providers/base.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b552d74fefb2ff8ce38556a7aa421834ba1d34cd32d6e1691a118ef18315ac"}},{"ruleId":"D1","level":"warning","message":{"text":"FallbackProvider._should_fallback (cyclomatic 21): FallbackProvider._should_fallback 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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"420879566fba08508c0744cc56481d4741820ceca0307a1507fd85a0cf9cee1d"}},{"ruleId":"D1","level":"warning","message":{"text":"context_observer._restore (cyclomatic 21): context_observer._restore 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":"nanobot/webui/context_observer.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9406ef82605be3f0cd16480862ee05e8bf552041d58ce8ebad574bd29d016c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSettingsHandler.handle (cyclomatic 21): ModelSettingsHandler.handle 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1170e3abe960dc8b47deb381b5dd213666ec8ec6cdf4c89f3dfd416ce135b7"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.oauth_provider_status (cyclomatic 21): settings_models.oauth_provider_status 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":"nanobot/webui/settings_models.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1b991b28333c6ca857f95ea8a062d072669aeee9eba913ada4052e6d92a5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"skills_marketplace._skillhub_skill (cyclomatic 21): skills_marketplace._skillhub_skill 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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31b3780bff635a3deb39b487f5a62094b7a5261abd526b0012c307db366b9d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ssh_process.ssh_error (cyclomatic 21): ssh_process.ssh_error 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":"nanobot/webui/ssh_process.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2227b58785e125f9c4c81370b2977b289bda9785317e8ddd8bb38f726940a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_misc_routes (cyclomatic 21): GatewayHTTPHandler._dispatch_misc_routes 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa61bd3df41dece4e7b90b66f936f0498a93ec77976449bae3460a9a282b976b"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.handlePaste (cyclomatic 21): NanobotTui.handlePaste has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1997, 2012, 2008). 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":"tui/src/app/app.ts"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c34868803d71c3cfd7d97414e9b1b4b5ecd3e545cc5b2923815bd2bea908df2"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsMarketplace.MarketplaceSkillRow (cyclomatic 21): SkillsMarketplace.MarketplaceSkillRow 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa78798cdb3e14c559e8cec89584460371dd798e20125888d65c1bc2868bad6f"}},{"ruleId":"D1","level":"warning","message":{"text":"ReasoningEffortPicker.ReasoningEffortPicker (cyclomatic 21): ReasoningEffortPicker.ReasoningEffortPicker has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 59, 84, 97, \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":"webui/src/components/settings/models/ReasoningEffortPicker.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc90b97fd771a0bf05905f5e4335582a25c5021f2c59c601f568176eaf173e93"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellRuntimeControl.ShellRuntimeControl (cyclomatic 21): ShellRuntimeControl.ShellRuntimeControl has cyclomatic complexity 21 (threshold 15). Of this number, 13 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":"webui/src/components/settings/system/ShellRuntimeControl.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c147afd5331c068fdfe7a061628b356d6c1f58b5c04a072cd6c4ef7767c77076"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.findStreamingAssistantIndex (cyclomatic 21): thread-event-projection.findStreamingAssistantIndex has cyclomatic complexity 21 (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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"099f82ff16c707427af669de7b8c8b04a871ac129c117441f37fb08dc6a1a280"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.answerStreamIndex (cyclomatic 21): thread-event-projection.answerStreamIndex 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb887139b8e8400763067bf6ccc9263ccf56cb2d7ffc76a4683b418bf6b2244"}},{"ruleId":"D1","level":"warning","message":{"text":"model-request.composerUsageSnapshots (cyclomatic 21): model-request.composerUsageSnapshots has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 40, 33, 48). 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":"webui/src/lib/model-request.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce01f10c90a54c61019c565537b935c86868381c6a84825b3e7390b07f3e9b91"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._prepare_injected_input (cyclomatic 20): AgentLoop._prepare_injected_input 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":"nanobot/agent/loop.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3abe17b6b1964a7b9f4108c7b785717136b6658eaa624916df4d4b311765ef"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop.process_direct (cyclomatic 20): AgentLoop.process_direct 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/loop.py"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0f203ec832bb798acc9e4214d1c1ebd78ba66157c51ff7985c0b0285988345"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProvider.reload (cyclomatic 20): MCPProvider.reload 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/mcp.py"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c82ca912a920e6c32cd4c6bea6231b7822860e227cd8ff8fda8ba6b033bb9a1"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._handle_fallback_models_field (cyclomatic 20): onboard._handle_fallback_models_field 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":"nanobot/cli/onboard.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da03173c2acf02f76dbaa2cfbb0f5dd7abd286c85d2d4786198e94a01d96752"}},{"ruleId":"D1","level":"warning","message":{"text":"remote.pair (cyclomatic 20): remote.pair 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":"nanobot/cli/remote.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a1d30902f9f049f636301df610977e29631d7837c21a9cd61593b4c38c527f"}},{"ruleId":"D1","level":"warning","message":{"text":"AssemblyAITranscriptionProvider.transcribe (cyclomatic 20): AssemblyAITranscriptionProvider.transcribe 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":"nanobot/providers/transcription.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"342c8c69390f62eea5a6faed7e455b5779ae4b16eeafe7ce5ee7bbfdfb7a560c"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_provider._parse_xai_grok_models (cyclomatic 20): xai_grok_provider._parse_xai_grok_models 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f86247d2f14bd72ee158791f135b48d46bcdc3fb7f58e055aaa4c45ec58babe"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteSessionStore.append_history (cyclomatic 20): SqliteSessionStore.append_history 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"421d8dffac1813f143fe77d0ccab1fcbe074b6a3a79f16f17c971d0e8b88c630"}},{"ruleId":"D1","level":"warning","message":{"text":"GitStore.summarize_working_tree (cyclomatic 20): GitStore.summarize_working_tree 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":"nanobot/utils/gitstore.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c85955521b27873512ad94780eeb8e22a05a2c30255ea007feacd004daa5c6"}},{"ruleId":"D1","level":"warning","message":{"text":"automation_results.cron_run_response (cyclomatic 20): automation_results.cron_run_response 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":"nanobot/webui/automation_results.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3791b63f32897106a54ad85aebe0e4b6834855d8ec11117763c76f9738dbe549"}},{"ruleId":"D1","level":"warning","message":{"text":"McpOAuthManager._payload (cyclomatic 20): McpOAuthManager._payload 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/mcp_oauth_api.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"964172423cf3e3abad4984f9fc06d4a975aeeb47f1967bb5dee06872a5ac2aac"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_agent_model_settings (cyclomatic 20): settings_models.update_agent_model_settings 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"181db89dc899d9b1825cbd6f97547201f3c3fb479836c65d4835822f20130af0"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._session_user_event (cyclomatic 20): transcript._session_user_event 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/transcript.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c3a942918fb8473ea6e1bd272f18c71e44d900d4978b7132a114a5286aa8d7"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_thread_get (cyclomatic 20): GatewayHTTPHandler._handle_webui_thread_get 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/ws_http.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6497f70e9c041412e1d4ee351acc3da4f093698bd3a8bed5c1c336c8f63f3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderIcon.ProviderIcon (cyclomatic 20): ProviderIcon.ProviderIcon 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":"webui/src/components/settings/shared/ProviderIcon.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fddca4da4656710b42ee300e4d913d6ad021325872a1cc27c6c43802358e22"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.AutomationEditDialog (cyclomatic 20): AutomationsSettings.AutomationEditDialog has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to 3 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e1e30f01e6e81bc9d4c7e29db3f72af324587b0daf8992b8a50c14010634e1"}},{"ruleId":"D1","level":"warning","message":{"text":"graph-presentation.createGraphPresentation.advance (cyclomatic 20): graph-presentation.createGraphPresentation.advance has cyclomatic complexity 20 (threshold 15). Of this number, 19 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":"webui/src/components/thread/graph-presentation.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"810c71098d559f9548a7324da0ec6665d5e8d419584f605e57d9602c7a6ce785"}},{"ruleId":"D1","level":"warning","message":{"text":"useNanobotStream.useNanobotStream.applyPendingStreamEvents (cyclomatic 20): useNanobotStream.useNanobotStream.applyPendingStreamEvents 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"969c10da1e0e3884626f7bc7984e9234aa5d0414eceff457dc9e9eae8971c9fc"}},{"ruleId":"D1","level":"warning","message":{"text":"useReconnectRuns.useReconnectRuns (cyclomatic 20): useReconnectRuns.useReconnectRuns has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 27, 54, 14). 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":"webui/src/hooks/useReconnectRuns.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2aa0d3b6d06ae2863511ad61cd25bd19086139ffcacd4c2b121bf5fdf3876f"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.projectToolActivity (cyclomatic 20): thread-event-projection.projectToolActivity 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"392233c737ca65cf298485bd2af56b65e0674bd5ec966b7ed802ec34de97e5a2"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateFlowProvider.UpdateFlowProvider::confirm (cyclomatic 20): UpdateFlowProvider.UpdateFlowProvider::confirm 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. This shape REPEATS in the file: one other method here (UpdateFlowProvider.UpdateFlowProvider) 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"047ee60c245a811fbb4689b45bc6b8c90ff5bbf2c73710682fd2dd00c4304365"}},{"ruleId":"D1","level":"warning","message":{"text":"execution._execute_tool_call_inner (cyclomatic 19): execution._execute_tool_call_inner 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":"nanobot/agent/tools/execution.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5fd77bd6adb3c8a70476cb1d61c781d9c3ba54f41798e723d39d18e142a59c"}},{"ruleId":"D1","level":"warning","message":{"text":"ListDirTool.execute (cyclomatic 19): ListDirTool.execute 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad879146ed6856058faadc2b11b2165a5bc386361866267a2a396e67ed4c18"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppManager.uninstall (cyclomatic 19): CliAppManager.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":"nanobot/apps/cli/service.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35cf9f93350adb933ddfabc844665c1ebbcbf323af4dd0ba5bde83c8e67c670"}},{"ruleId":"D1","level":"warning","message":{"text":"terminal._maybe_print_interactive_progress (cyclomatic 19): terminal._maybe_print_interactive_progress 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":"nanobot/cli/terminal.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a712d4c489ea1df44a1d760256f6ef09ffd75992dfbaadc952e88e1fe22a0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateGoalTool.execute (cyclomatic 19): UpdateGoalTool.execute 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":"nanobot/goal/tools.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2247099b06c54e22cd871e77dec8abed5ac9fe590ba8d72e9998f4fd039c7e31"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider._handle_error (cyclomatic 19): AnthropicProvider._handle_error 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eb8f8e3ceb1baf79b1a99b7bbfd1e31848558218ca37fdf07df9ed9cab894f"}},{"ruleId":"D1","level":"warning","message":{"text":"update_backup.ensure_backup (cyclomatic 19): update_backup.ensure_backup 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":"nanobot/update_backup.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"63342ce9f1690bf2e90453c6df02ff4e9ad9db78f755cc602fefce24a6bcfece"}},{"ruleId":"D1","level":"warning","message":{"text":"update_profiles._observe (cyclomatic 19): update_profiles._observe 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":"nanobot/update_profiles.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f421441f2b1c00a06044d276cfc267ad2e18cba1536068c7dbea58f938ddd0"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.estimate_message_tokens (cyclomatic 19): helpers.estimate_message_tokens 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":"nanobot/utils/helpers.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"db031ea644e135715784e151734ed65bb6d08a7b444168ee350ba1a5adfe84ec"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_test_action (cyclomatic 19): mcp_presets_api.mcp_presets_test_action 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"971e769cc4cfefd081451b832f295c36dd57495363c9032dcebcf5587ddccc25"}},{"ruleId":"D1","level":"warning","message":{"text":"api.fetchSessionUsage (cyclomatic 19): api.fetchSessionUsage 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":"tui/src/client/api.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"281da22c21c2dee250bff10eee7648db61d2765551e64899a21e92d09511460e"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.handleComposerContentChange (cyclomatic 19): NanobotTui.handleComposerContentChange 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":"tui/src/app/app.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"98350346273d83613c3186d2a11c0b53ad34235189c3bd5cec0c640854d14a95"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTextRenderer.inlineLinkPreviewFromListItem (cyclomatic 19): MarkdownTextRenderer.inlineLinkPreviewFromListItem 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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f10b760de195a194a24f2c528e338c3c532dd13b4b7738e51232ea6413d239"}},{"ruleId":"D1","level":"warning","message":{"text":"StartupSkeleton.readStartupLayout (cyclomatic 19): StartupSkeleton.readStartupLayout 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":"webui/src/components/StartupSkeleton.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ae301cf5d8b05a5beb31b2b8856d8aebbbfa5c357388a734b1d236a485495c"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.decode (cyclomatic 19): Task.decode 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, 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":"webui/src/components/markdown-diagrams/runtime.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5c58af53fb48b79bf3ee42f06dc6888746b1f680ddc009492682e0f379040d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelPairing.ChannelPairing (cyclomatic 19): ChannelPairing.ChannelPairing 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 11 function literals inside it that branch (lines 35, 78, 43, \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":"webui/src/components/pairing/ChannelPairing.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb19a8d1b2ae323ebcf7a9473b40e38eca9ece4e6281e2b56cb383ca5a7c5c6"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSidebar.SettingsSidebar (cyclomatic 19): SettingsSidebar.SettingsSidebar has cyclomatic complexity 19 (threshold 15). Of this number, 16 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec11b9d56e43a0269162703f07dae506fc896c5ac4388e16650374df06d5e3cb"}},{"ruleId":"D1","level":"warning","message":{"text":"useCapabilitySettingsActions.useCapabilitySettingsActions.saveWebSearch (cyclomatic 19): useCapabilitySettingsActions.useCapabilitySettingsActions.saveWebSearch has cyclomatic complexity 19 (threshold 15). 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, 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":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4107b902a13a83b5ed388f40f947f7fd9bd6be8a2edf727c5c08688611dc8d"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogSkeleton.CatalogSkeleton (cyclomatic 19): CatalogSkeleton.CatalogSkeleton has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 28). 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":"webui/src/components/settings/shared/CatalogSkeleton.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1cde5c33f2006c91ea8b96dccbb26d42bf467b860b17e7804f3700e748a312"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationCalendar.CalendarEntryRow (cyclomatic 19): AutomationCalendar.CalendarEntryRow 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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c6278a640dccbdbda4c9213df4550b93a0f04cfbf70718a82d621e8c6ceb28"}},{"ruleId":"D1","level":"warning","message":{"text":"RecoveryNotice.RecoveryNotice (cyclomatic 19): RecoveryNotice.RecoveryNotice has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 3 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":"webui/src/components/thread/RecoveryNotice.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b9aadd0e7def7f811f2ef44a524467e9ae40fcf1f1906a276d1d915e3e4bae"}},{"ruleId":"D1","level":"warning","message":{"text":"activity-timeline.projectOrderedTurn (cyclomatic 19): activity-timeline.projectOrderedTurn has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 3 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":"webui/src/lib/activity-timeline.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"260b84ed8799874a08227c0aedb60cef5c73baed0a37280c15b2f4fd9229f651"}},{"ruleId":"D1","level":"warning","message":{"text":"context-graph.isContextGraph (cyclomatic 19): context-graph.isContextGraph 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 2 function literals inside it that branch (lines 7, 15). 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":"webui/src/lib/context-graph.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"0814a68ca2402fe4a22d3a9c6fea1988908a60e921448453df68ced632830518"}},{"ruleId":"D1","level":"warning","message":{"text":"remark-tex-math.tokenizeMathFlow (cyclomatic 19): remark-tex-math.tokenizeMathFlow 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 7 function items inside it that branch (content, contentStart, afterOpen, \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd56ac7142eb56692bf47261321fa8dad8f5d0632842d6c339d6b811db522a2"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextGovernor._merge_adjacent_user_messages_for_model (cyclomatic 18): ContextGovernor._merge_adjacent_user_messages_for_model 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":"nanobot/agent/context_governance.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b0cb22f2d92503168830a182958c30e44fb8936dbfc15ce1391826883541e6"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_oauth._stored_server (cyclomatic 18): mcp_oauth._stored_server 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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6324db6d0f6161fd4b68703eb8fba2bd12de33aea685838697be0833396e6f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSearchTool._search_olostep (cyclomatic 18): WebSearchTool._search_olostep 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":"nanobot/agent/tools/web.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6674da55b2a2d71faee0b45ee97a813ad29c65fd3975d129c9ec87417099898"}},{"ruleId":"D1","level":"warning","message":{"text":"loader._resolve_in_place (cyclomatic 18): loader._resolve_in_place 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":"nanobot/config/loader.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1ab9f91e326faf43430b557f0865ad26a89ae4292bb3803e25c50eab309dd0"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockProvider._content_blocks (cyclomatic 18): BedrockProvider._content_blocks 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7f7c9475e3a47c13b7bc4cea439b6182a3778e03ba841ced45210568b1a522"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenRouterImageGenerationClient.generate (cyclomatic 18): OpenRouterImageGenerationClient.generate 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":"nanobot/providers/image_generation.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4efbe2ca96f717459dd9b67d32efb8bb16fa96b77d38d7bfab4ac523e92e1c"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_codex_provider._codex_error_response (cyclomatic 18): openai_codex_provider._codex_error_response 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b1c1efe1241ba69aa49718b49780ab91b490422d0e6b16d9c1549fee647df5"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatStreamAccumulator.add (cyclomatic 18): _ChatStreamAccumulator.add 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfdb455b441a5efc3139dc71b13506ad13159cff0c09309b59bbbeaca4bd86f"}},{"ruleId":"D1","level":"warning","message":{"text":"xai_grok_provider._xai_hosted_tool_event (cyclomatic 18): xai_grok_provider._xai_hosted_tool_event 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5d6c9d2ab5c22261c10993b7e20112a87979f51ed5faa02ce5568f986e30ca"}},{"ruleId":"D1","level":"warning","message":{"text":"ReleaseFeed.stable (cyclomatic 18): ReleaseFeed.stable 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":"nanobot/release_feed.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9ccaabbcc0fbd5969cdf099cc4e6bf8f8a5aef3e5402134a4c87704812f832"}},{"ruleId":"D1","level":"warning","message":{"text":"network.resolve_url_target (cyclomatic 18): network.resolve_url_target 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":"nanobot/security/network.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"55268d5472380a80b74b8abb1689d3b0b9f1dc713497d522dee964d66c5c1179"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteSessionStore.save (cyclomatic 18): SqliteSessionStore.save 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"198fcef431e4618284bc3aaa094a9d9a62da5b0b1dcd361f065ea0abb1d4ff05"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_action (cyclomatic 18): mcp_presets_api.mcp_presets_action 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"80098bed2509dca6fc5fb8c26d7816536cd86b4e6097b27d822801fa5ad45da4"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInstances._check (cyclomatic 18): RemoteInstances._check 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":"nanobot/webui/remote_instances.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f5d393e5d35447690e2549f6fc442fe73f0828a9fae7b6fc7427909d40ae22"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.create_model_configuration (cyclomatic 18): settings_models.create_model_configuration 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e612062a837d118d80210e06a639f3025b1ce86963be2deb41966fb4ab5640"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_remote_instances (cyclomatic 18): GatewayHTTPHandler._dispatch_remote_instances 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":"nanobot/webui/ws_http.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"1469ff093420fbc0a5db469efba1debc9f3408e3bc80551f3ae7b66f1407309d"}},{"ruleId":"D1","level":"warning","message":{"text":"conpty_smoke.smoke (cyclomatic 18): conpty_smoke.smoke 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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7267c280f1a43f2593d85aee934aab78b917b05cc4d48d2548eec628580961f9"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearAvatar.LinearAvatar (cyclomatic 18): LinearAvatar.LinearAvatar 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":"nanobot/channels/linear/webui/LinearAvatar.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8515bc86f8dee1485fb7fd6bf5c21cc1c3672982081a1c0b1f328c379bb1e80"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-renderers.toolLabel (cyclomatic 18): tool-renderers.toolLabel 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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"347508362153e9902ee8e6430761937215891c50218052d802f42fd1e7d8318d"}},{"ruleId":"D1","level":"warning","message":{"text":"footer-hints.hintsFor (cyclomatic 18): footer-hints.hintsFor 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":"tui/src/views/footer-hints.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8426b2e11664f3e017ee3cf8164ae91dcc660341868b88ef2b9d7a5517ac50ff"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageLightbox.ImageLightbox (cyclomatic 18): ImageLightbox.ImageLightbox 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 7 function literals inside it that branch (lines 53, 43, 72, \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":"webui/src/components/ImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f951a781bdde86d4ca212a7b011b2460341e27b4364baee0aee81ca4039a76"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.mergeMcpMentionPresets (cyclomatic 18): MessageBubble.mergeMcpMentionPresets 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd5b56892e5c50c26bceb362420578f2609792167340aaa0de71e221ee50e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentActivityCluster.ActivityTraceTimeline (cyclomatic 18): AgentActivityCluster.ActivityTraceTimeline has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 810, flushNormalLines). 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf544ab7f5e9c77a79d60494d0d7f9384f4b8547556237374185c639ee0cfc98"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentActivityCluster.ActivityTraceRow (cyclomatic 18): AgentActivityCluster.ActivityTraceRow 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"5704606dd0e4d8acf029762b569fc7351c22bc29a29aa9466935753a7c9fac59"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentTaskDock.TaskTree (cyclomatic 18): SubagentTaskDock.TaskTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 224, 225, 246). 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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5b79149e1803f05e477aba19c36cd2692794b0871bdc36d5091839a4ce5348"}},{"ruleId":"D1","level":"warning","message":{"text":"FileEditRow.FileUnifiedDiff (cyclomatic 18): FileEditRow.FileUnifiedDiff has cyclomatic complexity 18 (threshold 15). Of this number, 11 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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7566cf884dffb89add2a8f589f72e1d823912abad656bd5491390542016a63c"}},{"ruleId":"D1","level":"warning","message":{"text":"workbench-layout.bspGeometry (cyclomatic 18): workbench-layout.bspGeometry 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 4 function literals inside it that branch (lines 305, 311, 320, \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":"webui/src/components/workbench/workbench-layout.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5d00de8748b9fbd338f718fd848877ea3533c2c81540f9933e0c14b6a56001"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrap.deriveWsUrl (cyclomatic 18): bootstrap.deriveWsUrl 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":"webui/src/lib/bootstrap.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8fe5da235c5dfa1e2c5a72947046f3b5488686425b1e850c8f6689f32afd44"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.applyRunEffects (cyclomatic 18): NanobotClient.applyRunEffects has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e30adc021f3b11ec76167a6ca44532ea2e2a5523ccf5247322d4401b75d69"}},{"ruleId":"D1","level":"warning","message":{"text":"latest-thread-request.fetchLatestWebuiThread (cyclomatic 18): latest-thread-request.fetchLatestWebuiThread 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 8 function items inside it that branch (a function literal at line 81, a function literal at line 57, finish, \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":"webui/src/lib/latest-thread-request.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54df2c8076bb83a81a0c1e26f7b9044bd8cbef468eeed1fb660054b3b5cf492"}},{"ruleId":"D1","level":"warning","message":{"text":"model-request.reconcileModelRequest (cyclomatic 18): model-request.reconcileModelRequest 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":"webui/src/lib/model-request.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd35bcffa71da158eb480b7fc5ec03d228b8ad4ba9b2f7c9497b0f71d6a76e0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUIBuildHook.initialize (cyclomatic 17): WebUIBuildHook.initialize 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":"hatch_build.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0710836598463f8a3bef0c91f3dd85f2b342ec3d8fab8105e65cda8d6129b54"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop.__init__ (cyclomatic 17): AgentLoop.__init__ 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":"nanobot/agent/loop.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55f667a6e0c17e878df23bbae4af2cc29f45a72eec918431d2b6e1402b3faf7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentPage._append_match (cyclomatic 17): ContentPage._append_match 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":"nanobot/agent/tools/_search_content.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51aec0d1630562a52e64905649bc6113f768329aab8621891e3290a65c6111b"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationTool._provider_client (cyclomatic 17): ImageGenerationTool._provider_client 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":"nanobot/agent/tools/image_generation.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ad51854ae7a12ed381092ae476a004a50eb1b1e5c870b2f2f5f6ca72f83eac"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolLoader.load (cyclomatic 17): ToolLoader.load 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":"nanobot/agent/tools/loader.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede53488140d0d2256d6b7c07b9674ffb1225f6b683f0b0dd0bee1bdf1c49a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"MyTool._format_value (cyclomatic 17): MyTool._format_value 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":"nanobot/agent/tools/self.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a562f58e5e033510daec719df3d46d2b9c63159c1b06aa8d498f70511e46383f"}},{"ruleId":"D1","level":"warning","message":{"text":"desktop_tui._connection (cyclomatic 17): desktop_tui._connection 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":"nanobot/cli/desktop_tui.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dde0ff46312dfb3ae277434cb7878330594b3c8d72e4aabe1ac17ed4c11c56"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._format_value (cyclomatic 17): onboard._format_value 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":"nanobot/cli/onboard.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ad900b727f559a6fae88eaedc2e9d8e43721301fd0276b9d4398552ef3638b"}},{"ruleId":"D1","level":"warning","message":{"text":"context_graph.parse_context_graph (cyclomatic 17): context_graph.parse_context_graph 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":"nanobot/context_graph.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"63abf526de6b33efcb8bf8e8abed92ea1cfb69f4fd249c3eafb484b91553d0d3"}},{"ruleId":"D1","level":"warning","message":{"text":"processes.spawn_process_tree (cyclomatic 17): processes.spawn_process_tree 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":"nanobot/execution/processes.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8692be98d08b4e3518fbc9e331a5d5ef4cfb8ba135da5c2587a1f52e7773a6"}},{"ruleId":"D1","level":"warning","message":{"text":"store._handle_pairing_subcommand (cyclomatic 17): store._handle_pairing_subcommand 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":"nanobot/pairing/store.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"af393f0e2d033de25adb2469ad39354a8b1b973a213671a5b08407493a9c798c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider._assistant_blocks (cyclomatic 17): AnthropicProvider._assistant_blocks 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa2fe3a657def454370d7eb67c146fa37abcb04c91e662b4ded742ece18d977"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider._parse_response (cyclomatic 17): AnthropicProvider._parse_response 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eca4cadb3d3e21c29148b48cabbc1aa03a97757f85fef4dc8ea31c67a221758"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_codex_provider._parse_openai_codex_models (cyclomatic 17): openai_codex_provider._parse_openai_codex_models 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1d51c05be53cdd982577029279dfa5bc44432aa6824e1ab05d5e7657ecebe0"}},{"ruleId":"D1","level":"warning","message":{"text":"converters.convert_messages (cyclomatic 17): converters.convert_messages 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":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca09a16593a2118e391ec966973158827af1d062f8b45d60c2b996fe36aab71"}},{"ruleId":"D1","level":"warning","message":{"text":"jsonl_migration.finish_workspace_migration (cyclomatic 17): jsonl_migration.finish_workspace_migration 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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"64211921ff4eba04c999ad295430e10d21dcc909dd2ac5071434d265c03a49e1"}},{"ruleId":"D1","level":"warning","message":{"text":"update.update_installation (cyclomatic 17): update.update_installation 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":"nanobot/update.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f102e6a3f27a79c0cf1ba77a6c2598bff6e3a12706ccd55d76c1760772786e91"}},{"ruleId":"D1","level":"warning","message":{"text":"update_plan.inspect_installation (cyclomatic 17): update_plan.inspect_installation 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":"nanobot/update_plan.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0e6965ef52edc87279f1eac8b5581375c626b02f5b5b212588887f2b55ffb7"}},{"ruleId":"D1","level":"warning","message":{"text":"update_uv.cache_digest (cyclomatic 17): update_uv.cache_digest 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":"nanobot/update_uv.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b207e5b7437612da052acf8697c0ee5228ac064c1793ad8811aefa191fc3be16"}},{"ruleId":"D1","level":"warning","message":{"text":"automation_chats.automation_chats (cyclomatic 17): automation_chats.automation_chats 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":"nanobot/webui/automation_chats.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5386c8228e9d4779a6431a4ad50d375c9c7db078d4f9584357d5cbc7d5bc923"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.login_oauth_provider (cyclomatic 17): settings_models.login_oauth_provider has cyclomatic complexity 17 (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":"nanobot/webui/settings_models.py"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8729420ab67f55397724b8db438fb36c1ae9ce1a1c97ef911551d5ab47185c"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_resolved (cyclomatic 17): GatewayHTTPHandler._dispatch_resolved 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":"nanobot/webui/ws_http.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e651566b5263273030a0907f60ade43311c60d6e794015934d5ef966bd10b84"}},{"ruleId":"D1","level":"warning","message":{"text":"attachments.uploadAttachments (cyclomatic 17): attachments.uploadAttachments 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":"packages/client-events/attachments.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"800ae86873007d906c10d8d4b7f0acdb553ad676ba60374028dd1f0d8e9d4706"}},{"ruleId":"D1","level":"warning","message":{"text":"api.parseHistoryEvents (cyclomatic 17): api.parseHistoryEvents has cyclomatic complexity 17 (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":"tui/src/client/api.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f941000255ea1eba28f8e889ec133154560a0d0764d8fd6a50bd469400b952"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerMenu.render (cyclomatic 17): PickerMenu.render 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":"tui/src/menus/picker-menu.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"409ff1c61d1f4511eaf539c6b3e3aba15b71c671fcb85734d80fd68a72dd14fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Transcript.prependHistory (cyclomatic 17): Transcript.prependHistory has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a64351d964934212346f8eac9071967f28a59e57b4f522fa1964cc0ec3b7d1b"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageMedia (cyclomatic 17): MessageBubble.MessageMedia 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"277aa1412c1baa139e813e36ef877fe6f623eb32874d2539df8c0b6d5dd54a3c"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewPane.PreviewPane (cyclomatic 17): PreviewPane.PreviewPane has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 56, a function literal at line 65, a function literal at line 30, \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":"webui/src/components/PreviewPane.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"105f15228a15a944b147551c2a9a3a502140ee7730b20ae9d09cd1bfd4ee8950"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarTopicRename.SidebarTopicRename (cyclomatic 17): SidebarTopicRename.SidebarTopicRename has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 58, save). 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":"webui/src/components/SidebarTopicRename.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d02f8b7ae4a7b65cd00d65fe36613b6ba454d52988bc6a72d68d5a932de9e2"}},{"ruleId":"D1","level":"warning","message":{"text":"StarPrompt.StarPrompt (cyclomatic 17): StarPrompt.StarPrompt 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 6 function items inside it that branch (a function literal at line 47, a function literal at line 42, a function literal at line 39, \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":"webui/src/components/StarPrompt.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31f361dfc7bf3db88337fea135f9e637b53972abdcada76036273b652126d4f"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsCatalogSettings.SkillsCatalogSettings (cyclomatic 17): SkillsCatalogSettings.SkillsCatalogSettings has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 56, 144, 81, \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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a13fde2bb35bbff8e06e954872934929b8835f768a2e806eff37a5c27ead00"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedProxySetupDialog.SharedProxySetupDialog (cyclomatic 17): SharedProxySetupDialog.SharedProxySetupDialog has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (save, a function literal at line 21, a function literal at line 36, \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":"webui/src/components/settings/shared/SharedProxySetupDialog.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"907523667119eb10f782c31c84ae42e31ce4b176ab3a5c270b14deec6e656a48"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPresetBadge.PresetPill (cyclomatic 17): ModelPresetBadge.PresetPill has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b95c46a12ff6e5d21848247b7e29fb16a4792801e6bc623c7514e08a17ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.CliAppMentionPalette (cyclomatic 17): ThreadComposer.CliAppMentionPalette has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 2629, 2596). 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256d74e2cff36cf35863731457498c970fa65f1344196b81bc55cf065285b99"}},{"ruleId":"D1","level":"warning","message":{"text":"sidebar-panel.SidebarPanelContent (cyclomatic 17): sidebar-panel.SidebarPanelContent has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"webui/src/components/ui/sidebar-panel.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"46634034bedc213945a055c789087e65930760b8c2decc86b93cff740a451fdf"}},{"ruleId":"D1","level":"warning","message":{"text":"useNanobotStream.useNanobotStream.applyStreamError (cyclomatic 17): useNanobotStream.useNanobotStream.applyStreamError has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 259, 271). 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7bd7f133ba75c909aad91e1eacb591e7c0ca19e7136c4f37ad46de0afea076"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-groups.groupSessions (cyclomatic 17): chat-groups.groupSessions 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"035ca6ca1b04df41e1334b8c067a912c0158244068db9ee3436de70792fa7f90"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 6 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":"webui/public/sw.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b02511694a88301fbc6cab42bc0bebfe0fb7c4c84aae650f6f1471f5d50177"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextGovernor.backfill_missing_tool_results (cyclomatic 16): ContextGovernor.backfill_missing_tool_results 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":"nanobot/agent/context_governance.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ad8376d588608b4d1b5bc833910929adeb00eccc4596d1c407aacc1e2e0974"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._persist_user_message_early (cyclomatic 16): AgentLoop._persist_user_message_early 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":"nanobot/agent/loop.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c18bb7b6fd117164fcc1462ca4c85f2ee9023e4a599443c215007d0638e36a0"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentManager._create_task (cyclomatic 16): SubagentManager._create_task 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":"nanobot/agent/subagent.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"25863db515049e630a6ea159e8b2832c14457c1f6c98203bf44890b14b2055f6"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecSessionTool._wait (cyclomatic 16): ExecSessionTool._wait 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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f452b4a8d86393bb0b7ff642e30dced70cff9f199d514dccdae754fd9f8e5987"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFileTool._read_office_doc (cyclomatic 16): ReadFileTool._read_office_doc 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ae3158dadb13360edf1a2bcf309949cf05d3c70ab33ca0a373e2d5b5fada64"}},{"ruleId":"D1","level":"warning","message":{"text":"MyTool._inspect (cyclomatic 16): MyTool._inspect 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":"nanobot/agent/tools/self.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcaf88d0889b8ed49da611d8fe98d1bc4d2ebd1b0e2e87f8ed7e0ca7416a2f0"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppManager.catalog (cyclomatic 16): CliAppManager.catalog 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":"nanobot/apps/cli/service.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d27c163cf481163b475d8878b735ad007a6c155063f3d8955624e5e1ab3c78"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway_runtime._deliver_to_channel (cyclomatic 16): gateway_runtime._deliver_to_channel 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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e85c358683c280f68952c4a69fc7594de6c38853c1c986d9664aa3c11ca9359"}},{"ruleId":"D1","level":"warning","message":{"text":"onboard._input_text (cyclomatic 16): onboard._input_text 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":"nanobot/cli/onboard.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd9eeec97b9d9dd198464a4981931f4630e2196cebad895b68407571870d84"}},{"ruleId":"D1","level":"warning","message":{"text":"windows_browser.launch_browser (cyclomatic 16): windows_browser.launch_browser 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":"nanobot/cli/windows_browser.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc08a354f111a063155fa1d6aea0e3a96b0fba999b74e9fd6e5a0ba1f6304c7"}},{"ruleId":"D1","level":"warning","message":{"text":"CronService.update_job (cyclomatic 16): CronService.update_job 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":"nanobot/cron/service.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd83cf68eaa9fc86601c8d2c8e8aa188cb0149b0680fa807e75e604be5d5135c"}},{"ruleId":"D1","level":"warning","message":{"text":"data_access._reservation (cyclomatic 16): data_access._reservation 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":"nanobot/data_access.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1673974f48e8071c69bf291a5a4826ae850ade3f90157859ed9f136606a6754"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockProvider._handle_error (cyclomatic 16): BedrockProvider._handle_error 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38032e3633572f771478fccad8ec5251631cc01c2474902a364dc70248cc735"}},{"ruleId":"D1","level":"warning","message":{"text":"sandbox_launcher.resolve_sandbox_launcher (cyclomatic 16): sandbox_launcher.resolve_sandbox_launcher 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":"nanobot/security/sandbox_launcher.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"83547ad0deb7eae5e62bb597522ed8e6dc160ce0b871515d1fdbec7b6e82a423"}},{"ruleId":"D1","level":"warning","message":{"text":"recovery.runtime_checkpoint_is_well_formed (cyclomatic 16): recovery.runtime_checkpoint_is_well_formed 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":"nanobot/session/recovery.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9acaf52f51c11630b37de736b69c201d05165a1368106ae395e59e2572c00e0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebuiTurnRoutePolicy.__call__ (cyclomatic 16): WebuiTurnRoutePolicy.__call__ 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":"nanobot/session/webui_turns.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef2303e82ac723874a7cf4efc86159b574bfb43467cf74417daffd63790ddf0"}},{"ruleId":"D1","level":"warning","message":{"text":"quick_validate._parse_simple_frontmatter (cyclomatic 16): quick_validate._parse_simple_frontmatter 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":"nanobot/skills/skill-creator/scripts/quick_validate.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7700fdb1fa80c1663a5a29aebb9946f4d6546a3a24d1e15bba95cb1f3459d807"}},{"ruleId":"D1","level":"warning","message":{"text":"update_fallback.preserve_program (cyclomatic 16): update_fallback.preserve_program 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":"nanobot/update_fallback.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dffdc4e83d4035d5b12c80afe5b5eced0af6eb16617309ab56b642ee15b0a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"update_recovery.main (cyclomatic 16): update_recovery.main 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":"nanobot/update_recovery.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"845d862995c196cfc7ac578251a4fbf4083bde09a7fc57029e6832074f2508c4"}},{"ruleId":"D1","level":"warning","message":{"text":"McpOAuthManager.submit_callback_url (cyclomatic 16): McpOAuthManager.submit_callback_url 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":"nanobot/webui/mcp_oauth_api.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9657755b9284e3c00bef9643bbc7208d50b10e3733d34f31463937125ccaab9"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUIOutboundDelivery._message_payload (cyclomatic 16): WebUIOutboundDelivery._message_payload 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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37dbe6ff9630d76fe33e0ccf7d50e0a6a2d61e029f4dae43c02bdf66eae836d"}},{"ruleId":"D1","level":"warning","message":{"text":"Tunnel._stream (cyclomatic 16): Tunnel._stream 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":"nanobot/webui/remote_ssh.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e3385f8a2453efc5c966daa91888ef9142fd5cb459e9e52b1457e1d1c6aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.build_user_transcript_event (cyclomatic 16): transcript.build_user_transcript_event 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":"nanobot/webui/transcript.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d743e47db37ab904814aa0fff731a5150ebb4d9495391be58415d79be1440c4"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_session_delete (cyclomatic 16): GatewayHTTPHandler._handle_session_delete 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1ec02a8483fa16818b3b2b74d0accc746fc7c8182593105ec310165ccbc046"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._serve_static (cyclomatic 16): GatewayHTTPHandler._serve_static 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":"nanobot/webui/ws_http.py"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f138e2cc0863abead06ae692b9697dc3ee883cd7dee38a91d7688015957ff1b"}},{"ruleId":"D1","level":"warning","message":{"text":"WeixinPanel.WeixinPanel (cyclomatic 16): WeixinPanel.WeixinPanel has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 101, a function literal at line 131, a function literal at line 78, \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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7456d415b63182db26b668a3d3ef4775ba9239fbe8e5802c310ecf7c81649717"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagramJobs.start (cyclomatic 16): DiagramJobs.start 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, 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15ce26a2973c10b5065063e9ed34d89ebff952e530b1259433a544f73d7760d"}},{"ruleId":"D1","level":"warning","message":{"text":"desktop.desktopConnectionSource (cyclomatic 16): desktop.desktopConnectionSource 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":"tui/src/platform/desktop.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4307e981cd8599b758ce5ab267f83b4aaf1f431e05677493dfec1ebac36fcb7e"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSidebar.MobileSettingsNavigation (cyclomatic 16): SettingsSidebar.MobileSettingsNavigation has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa4478d23e1e0dd7872b41d918a76789cf8a750bc9c89f6901a911ee79a28ae"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.runProviderOAuth (cyclomatic 16): useModelSettingsActions.useModelSettingsActions.runProviderOAuth 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd0b917b29c85cbcdbb65a47754e84c0cc257f3db2b119678035c1c05b9c68c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelControls.ProviderPicker (cyclomatic 16): ModelControls.ProviderPicker has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3817349343ef5ca37b95e48725f0fdc2833f08534a3adf21d9e16fa82df68764"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFeature.SettingsFeature (cyclomatic 16): SettingsFeature.SettingsFeature has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 4 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":"webui/src/components/settings/shared/SettingsFeature.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc8b22ddd7bb34d8e3b4f5efd408d19d245734da1054e37ea9a2e027fb38ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.SlashCommandPalette (cyclomatic 16): ThreadComposer.SlashCommandPalette 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 one function literal inside it that branches (line 2775). 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"081c04d4363fca2cd229b7ed0c3dbba97aa606646cff5b0524b38e6d9f03e265"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.recentComposerRoundUsage (cyclomatic 16): ThreadShell.recentComposerRoundUsage 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3377727e513d3167f3020b0aba450b3137c1167bdaf4f667bccc8b4d09a1e8f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.useInstalledSettingItems (cyclomatic 16): ThreadShell.useInstalledSettingItems 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 5 function literals inside it that branch (lines 301, 324, 295, \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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcea8c7e1861efb48e89d92f8718952e30a1a4587ae0e00ad77bf22082f6be6"}},{"ruleId":"D1","level":"warning","message":{"text":"channels-linear.PanelComposition (cyclomatic 16): channels-linear.PanelComposition has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 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":"webui/src/dev/gallery/channels-linear.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4ab2f9fcb486ba736e4ccfbdc3f3e0f9f0aaf79f980842982c2c392d774e5a"}},{"ruleId":"D1","level":"warning","message":{"text":"usePromptHistory.usePromptHistory.prompts (cyclomatic 16): usePromptHistory.usePromptHistory.prompts has cyclomatic complexity 16 (threshold 15). Of this number, 9 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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6245272a6d56dfb84e5d88c96c76fce9477cddcd0323aef7ca42164e36a5d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.closeReasoningStream (cyclomatic 16): thread-event-projection.closeReasoningStream 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, 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa65c6f7d65bf02651143e37a7086a326da071d6c12ee615d0806accce72b15"}},{"ruleId":"D1","level":"warning","message":{"text":"markdown-streaming-blocks.parseMathAwareMarkdownBlocks (cyclomatic 16): markdown-streaming-blocks.parseMathAwareMarkdownBlocks 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":"webui/src/lib/markdown-streaming-blocks.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"304b1e32a80af2aaaa2ec8cecd98840db165f96cca87a77ef2075ba5ad07925c"}},{"ruleId":"D1","level":"warning","message":{"text":"remark-tex-math.tokenizeGuardedDollarMathText (cyclomatic 16): remark-tex-math.tokenizeGuardedDollarMathText 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 5 function items inside it that branch (data, close, escaped, \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3a0d670c79eaf0c7d358dcc08a7cd23bf4e3fb1c147eac9c7d26d85e3180f9"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Shell (cognitive 313): App.Shell has cognitive complexity 313 (threshold 15). Drivers by points: if/else 124 (140 pts), boolean chains 87, ternaries 59 (71 pts), error handling 10, loops 5 (nesting depth added 28). Of this number, 78 points are the body\u0027s own statements and 235 belong to 92 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, 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":"webui/src/App.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13051e4ad6c5532a8383ab39d7ae4b74fd66c55c7eeb392c128b079ae4e449f"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadTranscript.accept (cognitive 299): ThreadTranscript.accept has cognitive complexity 299 (threshold 15). Drivers by points: if/else 61 (116 pts), boolean chains 96, loops 42 (66 pts), ternaries 14 (21 pts) (nesting depth added 86). Of this number, 291 points are the body\u0027s own statements and 8 belong to 9 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"6799536bc72157364f95d48cd6b7a806076994013193e796231c77a4590d8943"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadViewport.ThreadViewport (cognitive 274): ThreadViewport.ThreadViewport has cognitive complexity 274 (threshold 15). Drivers by points: if/else 107 (123 pts), boolean chains 92, ternaries 42 (54 pts), loops 4 (5 pts) (nesting depth added 29). Of this number, 67 points are the body\u0027s own statements and 207 belong to 52 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, 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ee3bbfea8eb63d4c615d20efa18c5d3ba0f554109055c2c42d926b7affd8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatList.ChatList (cognitive 269): ChatList.ChatList has cognitive complexity 269 (threshold 15). Drivers by points: ternaries 57 (125 pts), if/else 54 (77 pts), boolean chains 51, loops 12 (16 pts) (nesting depth added 95). Of this number, 28 points are the body\u0027s own statements and 241 belong to 45 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32c18c8f06f1cfb4e0bd573e8ff4b65c3568af39f637c493873c28b17820c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceControls.WorkspaceProjectPicker (cognitive 242): WorkspaceControls.WorkspaceProjectPicker has cognitive complexity 242 (threshold 15). Drivers by points: boolean chains 105, if/else 76 (88 pts), ternaries 33 (45 pts), error handling 3, loops 1 (nesting depth added 24). Of this number, 74 points are the body\u0027s own statements and 168 belong to 57 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5ddae680fbb581101553f51207ff65ce5559f8d3c88eb43381dfe0d5e535cd"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.reduceThreadEvent (cognitive 216): thread-event-projection.reduceThreadEvent has cognitive complexity 216 (threshold 15). Drivers by points: if/else 54 (108 pts), ternaries 31 (65 pts), boolean chains 34, loops 3 (9 pts) (nesting depth added 94). Of this number, 215 points are the body\u0027s own statements and 1 belongs to 3 function literals 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f911c29c4cd346292be1d02cee580d4d8c69de21bc257373b59e905d4983f5"}},{"ruleId":"D2","level":"warning","message":{"text":"useNanobotStream.useNanobotStream (cognitive 192): useNanobotStream.useNanobotStream has cognitive complexity 192 (threshold 15). Drivers by points: if/else 77 (107 pts), ternaries 28 (53 pts), boolean chains 32 (nesting depth added 55). Most of this is not in the body itself: 3 of the 192 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 672, 558, 449, \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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b8fb623405c8110652a64691d51a50598fe2b1ccf7c019c1b3a00a6bca0249"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.consume_responses_events (cognitive 184): parsing.consume_responses_events has cognitive complexity 184 (threshold 15). Drivers by points: if/else 39 (132 pts), boolean chains 39, ternaries 3 (12 pts), loops 1 (nesting depth added 102). 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0cb94c025729c21a1c028c263ae136bdd0310c3c5a19558fe1ef44cce9e41d"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.handleKey (cognitive 170): NanobotTui.handleKey has cognitive complexity 170 (threshold 15). Drivers by points: if/else 60 (99 pts), boolean chains 37, ternaries 12 (31 pts), error handling 1 (3 pts) (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff3a7be1dc676ece5e827bd0da2973a935724dee09dda50136aca3593d79072"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelControls.ModelIdPicker (cognitive 168): ModelControls.ModelIdPicker has cognitive complexity 168 (threshold 15). Drivers by points: ternaries 37 (114 pts), boolean chains 42, if/else 12 (nesting depth added 77). Of this number, 128 points are the body\u0027s own statements and 40 belong to 12 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"543c3eee80d9644a4f9b5450345deffc35022fa929bb974af2fa186ab75eda14"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.ThreadComposer (cognitive 166): ThreadComposer.ThreadComposer has cognitive complexity 166 (threshold 15). Drivers by points: if/else 155 (186 pts), ternaries 116 (181 pts), boolean chains 131, loops 2 (nesting depth added 96). To reduce it, split the body into named stages: move each independent 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 (ThreadComposer.ThreadComposer::onKeyDown) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e95b3a66963b7cca81ff68dd8c67b64a65d6b5c15d2b999f38aa44222fe5b0"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInstances.action (cognitive 152): RemoteInstances.action has cognitive complexity 152 (threshold 15). Drivers by points: if/else 57 (109 pts), boolean chains 28, ternaries 3 (6 pts), loops 2 (5 pts), error handling 2 (4 pts) (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/remote_instances.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d214b9bc93e2ddcd1208676a95ab23ce26782a857cb0c684e242eb90b64d134"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._client_projection_event (cognitive 150): transcript._client_projection_event has cognitive complexity 150 (threshold 15). Drivers by points: if/else 52 (113 pts), boolean chains 17, ternaries 7 (16 pts), loops 2 (4 pts) (nesting depth added 72). 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":"nanobot/webui/transcript.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7c6a03a5ed5122263e21872c03446055d3f4812922a1b8a9caaffe2736f8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.accept (cognitive 136): NanobotTui.accept has cognitive complexity 136 (threshold 15). Drivers by points: if/else 47 (98 pts), boolean chains 23, ternaries 6 (14 pts), match/switch 1 (nesting depth added 59). Of this number, 132 points are the body\u0027s own statements and 4 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":"tui/src/app/app.ts"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e667e2caad535cff67675b03958f7d1601176b9c402d20578de69e85dc9a62"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneWorkbench.PaneWorkbench (cognitive 136): PaneWorkbench.PaneWorkbench has cognitive complexity 136 (threshold 15). Drivers by points: if/else 42 (65 pts), ternaries 31 (42 pts), boolean chains 22, loops 5 (6 pts), match/switch 1 (nesting depth added 35). Most of this is not in the body itself: 11 of the 136 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 298, 706, 586, \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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"384a9871188e8bec8fba1b5763ea3908f933913e8c7bfcf15d178ef611660bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.McpAppsCatalogRow (cognitive 129): AppsSettings.McpAppsCatalogRow has cognitive complexity 129 (threshold 15). Drivers by points: ternaries 31 (94 pts), boolean chains 23, if/else 5 (12 pts) (nesting depth added 70). Of this number, 113 points are the body\u0027s own statements and 16 belong to 4 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"1998272fc031c043710922612a5ad854240e78d395885ca82e79918c896c7fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateFlowProvider.UpdateFlowProvider (cognitive 119): UpdateFlowProvider.UpdateFlowProvider has cognitive complexity 119 (threshold 15). Drivers by points: ternaries 32 (87 pts), if/else 48 (75 pts), boolean chains 61, error handling 8 (12 pts) (nesting depth added 86). 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. This shape REPEATS in the file: 2 other methods here (UpdateFlowProvider.UpdateFlowProvider::inspect, UpdateFlowProvider.UpdateFlowProvider::confirm) 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7eb719f94cb385138a518d9623a2c28a4d5d9a18330bd9665abd120b793e60d"}},{"ruleId":"D2","level":"warning","message":{"text":"UsagePanel.render (cognitive 117): UsagePanel.render has cognitive complexity 117 (threshold 15). Drivers by points: ternaries 16 (65 pts), if/else 17 (39 pts), boolean chains 10, loops 1 (3 pts) (nesting depth added 73). Of this number, 88 points are the body\u0027s own statements and 29 belong to 3 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":"tui/src/views/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a37347af025b8f0ec2c62f0e68feebf9670c94ff240f0a2f51cefecc5d31e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadTranscript.project (cognitive 115): ThreadTranscript.project has cognitive complexity 115 (threshold 15). Drivers by points: if/else 25 (50 pts), ternaries 10 (23 pts), boolean chains 21, loops 11 (21 pts) (nesting depth added 48). Of this number, 100 points are the body\u0027s own statements and 15 belong to 5 function literals 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e62ffe91d80e0934c8ce0a454d818d8b21cd07bc926712402ec0536449d54a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._run_core (cognitive 113): AgentRunner._run_core has cognitive complexity 113 (threshold 15). Drivers by points: if/else 39 (88 pts), boolean chains 24, loops 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":"nanobot/agent/runner.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccabbb3ac066fc51ec60bb153fe4736e3974efef4de8763afdde18a3cc75c36"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickPairSetupView.QuickPairSetupView (cognitive 113): QuickPairSetupView.QuickPairSetupView has cognitive complexity 113 (threshold 15). Drivers by points: ternaries 33 (74 pts), boolean chains 35, if/else 4 (nesting depth added 41). Of this number, 108 points are the body\u0027s own statements and 5 belong to 4 function literals 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":"webui/src/components/remote/QuickPairSetupView.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"79171e7a0888b5efaedf7a39268b725eb4ec892229d89b19415fdcb1af48ee47"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.handleMessage (cognitive 110): NanobotClient.handleMessage has cognitive complexity 110 (threshold 15). Drivers by points: if/else 40 (59 pts), boolean chains 22, error handling 4 (11 pts), ternaries 5 (11 pts), loops 3 (7 pts) (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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"e813e3dd552bd7a79ca877d56e736977ae2ea46bafe89097aea5d70837bf461c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter._dispatch_message_once (cognitive 109): WebUICommandRouter._dispatch_message_once has cognitive complexity 109 (threshold 15). Drivers by points: if/else 47 (64 pts), boolean chains 23, ternaries 12 (16 pts), error handling 4, loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/inbound_commands.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"88618da1d9866b49fb78818cfd3b05b7f0013fd0cfb9dfa379cad18e8e0685f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGraphScene.ContextGraphScene (cognitive 108): ContextGraphScene.ContextGraphScene has cognitive complexity 108 (threshold 15). Drivers by points: if/else 43 (53 pts), boolean chains 40, ternaries 10 (12 pts), loops 3 (nesting depth added 12). Of this number, 25 points are the body\u0027s own statements and 83 belong to 28 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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"468feb7c0d8f963f2e5a89dd17a5a70a19ab948dcf3d7116094ea35b1e58e8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeConfigSettings.RuntimeConfigSettings (cognitive 107): RuntimeConfigSettings.RuntimeConfigSettings has cognitive complexity 107 (threshold 15). Drivers by points: ternaries 23 (69 pts), boolean chains 30, if/else 8 (nesting depth added 46). Most of this is not in the body itself: 5 of the 107 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 227, 201, 284, \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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"742118ca94708ee3b2a8c81ed66d57d7f10300287043deb2cb20e0b453dc1d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPresetBadge.ModelPresetBadge (cognitive 107): ModelPresetBadge.ModelPresetBadge has cognitive complexity 107 (threshold 15). Drivers by points: ternaries 26 (47 pts), if/else 27 (36 pts), boolean chains 24 (nesting depth added 30). Of this number, 50 points are the body\u0027s own statements and 57 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9c2323f8534ebcdc1bd682e2fe9ab80e10de3670abaf7b386f96b7911ae271"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteConnectionsPage.RemoteConnectionsPage (cognitive 103): RemoteConnectionsPage.RemoteConnectionsPage has cognitive complexity 103 (threshold 15). Drivers by points: boolean chains 103, if/else 64 (94 pts), ternaries 30 (45 pts), error handling 9 (11 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent 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 (RemoteConnectionsPage.RemoteConnectionsPage::connect) 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"af49328cc9312a13a14b510f9f0d6f7143ae14efcde96f24616a65bdb0f8c721"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesWebSocketSession.request (cognitive 98): ResponsesWebSocketSession.request has cognitive complexity 98 (threshold 15). Drivers by points: if/else 15 (37 pts), ternaries 12 (36 pts), error handling 6 (16 pts), boolean chains 8, loops 1 (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":"nanobot/providers/openai_responses/websocket.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca415a7b1477055df4d509ec8ad0f20b2347dce5b7b399d6dda6ed1c95163c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplyPatchTool.execute (cognitive 91): ApplyPatchTool.execute has cognitive complexity 91 (threshold 15). Drivers by points: if/else 26 (63 pts), error handling 6 (12 pts), loops 6 (7 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/apply_patch.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"953016fd59b1c01ae3d0742911e756ead9119c7d66685795f8864988de44efdc"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.AutomationsSettings (cognitive 91): AutomationsSettings.AutomationsSettings has cognitive complexity 91 (threshold 15). Drivers by points: ternaries 29 (73 pts), boolean chains 10, if/else 7 (8 pts) (nesting depth added 45). Of this number, 44 points are the body\u0027s own statements and 47 belong to 7 function literals 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a977fc8696de3e192e3ec7d24a8de8d64db8c03d393216b2ee9167b5d3f1ceea"}},{"ruleId":"D2","level":"warning","message":{"text":"GrepTool._execute_sync (cognitive 90): GrepTool._execute_sync has cognitive complexity 90 (threshold 15). Drivers by points: if/else 29 (53 pts), error handling 9 (13 pts), ternaries 8 (12 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/search.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f72d79f1531654abc378ef0784be19efd7d49c7cf7b8784c360e51b3d4bb1cb"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.build_webui_thread_response (cognitive 87): transcript.build_webui_thread_response has cognitive complexity 87 (threshold 15). Drivers by points: if/else 24 (61 pts), boolean chains 17, loops 2 (5 pts), ternaries 3 (4 pts) (nesting depth added 41). 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":"nanobot/webui/transcript.py"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac89a085b6cbe3e9ccdc1372f5bd0d75db4272430905fb57a94813573a1e22f3"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInstances.RemoteInstances (cognitive 86): RemoteInstances.RemoteInstances has cognitive complexity 86 (threshold 15). Drivers by points: boolean chains 42, if/else 23, ternaries 16 (19 pts), loops 2 (nesting depth added 3). Of this number, 48 points are the body\u0027s own statements and 38 belong to 18 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":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afc11d0c63ed4e1a8bbadaa145719c68fd7cbd5d1e9da65a6ae8d7aac64cf7d"}},{"ruleId":"D2","level":"warning","message":{"text":"api.parseThreadProjectionEvent (cognitive 84): api.parseThreadProjectionEvent has cognitive complexity 84 (threshold 15). Drivers by points: boolean chains 43, if/else 21 (40 pts), match/switch 1 (nesting depth added 19). Of this number, 82 points are the body\u0027s own statements and 2 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":"webui/src/lib/api.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dcb0bd8dbfc4468900fdcec636ff6879340b7d2c8f6b6f933439b71adcf0f7"}},{"ruleId":"D2","level":"warning","message":{"text":"FallbackProvider._try_candidates (cognitive 83): FallbackProvider._try_candidates has cognitive complexity 83 (threshold 15). Drivers by points: if/else 26 (50 pts), boolean chains 17, ternaries 5 (13 pts), error handling 1 (2 pts), loops 1 (nesting depth added 33). 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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a4e02583fd24ea3cf8295f36a1bcebc1bbcf5db88f798eb11d267caee44bee"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._build_kwargs (cognitive 81): OpenAICompatProvider._build_kwargs has cognitive complexity 81 (threshold 15). Drivers by points: if/else 30 (48 pts), boolean chains 25, loops 3 (6 pts), ternaries 1 (2 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af4808d9da040c0cdbbc869c3fb5eb2b6b0df1dc69817433676ea84b219caf2"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.get_history (cognitive 81): Session.get_history has cognitive complexity 81 (threshold 15). Drivers by points: if/else 25 (56 pts), boolean chains 12, loops 5 (9 pts), ternaries 1 (4 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":"nanobot/session/manager.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1606225f1168575c91c878ff73124b062b3bf1fb309d1e0b50154b5f219829"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings::renderProviderForm (cognitive 81): ProviderSettings.ProvidersSettings::renderProviderForm has cognitive complexity 81 (threshold 15). Drivers by points: ternaries 28 (62 pts), boolean chains 19 (nesting depth added 34). 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. This shape REPEATS in the file: one other method here (ProviderSettings.ProvidersSettings) 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"249cf4db8100229c9fb227db6f955a543faa618475ed5ef6dec65dc4ab3cd806"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider.chat_stream (cognitive 78): OpenAICompatProvider.chat_stream has cognitive complexity 78 (threshold 15). Drivers by points: if/else 15 (39 pts), ternaries 3 (15 pts), error handling 7 (11 pts), boolean chains 8, loops 2 (5 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29243159cab683864dc467e027ac4314d9eae0d171a4a45fbefbc73b52072bf"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearPanelView.LinearPanelView (cognitive 78): LinearPanelView.LinearPanelView has cognitive complexity 78 (threshold 15). Drivers by points: ternaries 24 (38 pts), boolean chains 31, if/else 8 (9 pts) (nesting depth added 15). Of this number, 41 points are the body\u0027s own statements and 37 belong to 12 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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b18c56e623dd7e72fa2afcb87a478cf6b73ab53d3b0ca968da8f6cb75c3bc9c"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._configure_pydantic_model (cognitive 77): onboard._configure_pydantic_model has cognitive complexity 77 (threshold 15). Drivers by points: if/else 27 (62 pts), boolean chains 8, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/onboard.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd853a9df3517e3f4d8d210e6674a9fddd799547953c2856831caf0a67f63a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"svg-image.diagramImageTemplate (cognitive 75): svg-image.diagramImageTemplate has cognitive complexity 75 (threshold 15). Drivers by points: if/else 37 (56 pts), boolean chains 17, loops 2 (nesting depth added 19). Most of this is not in the body itself: 8 of the 75 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 275, text, a function literal at line 336). 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"42859bfa3271091f5e4c16418dab0364b6d0347f9f175c4b881fd75225fbd32f"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentTasks.SubagentTasksProvider (cognitive 75): SubagentTasks.SubagentTasksProvider has cognitive complexity 75 (threshold 15). Drivers by points: ternaries 16 (25 pts), if/else 23 (24 pts), boolean chains 23, loops 1 (2 pts), error handling 1 (nesting depth added 11). Of this number, 29 points are the body\u0027s own statements and 46 belong to 15 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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4f5b632a7ac94cb2f2edd64c3ce6b419562d39e71d77bcd9c05444f0c4ae5d"}},{"ruleId":"D2","level":"warning","message":{"text":"Config._match_provider (cognitive 74): Config._match_provider has cognitive complexity 74 (threshold 15). Drivers by points: if/else 22 (49 pts), boolean chains 14, loops 5 (6 pts), ternaries 3 (5 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":"nanobot/config/schema.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b2a666445ea5c129a617e3fc5a869518f008e3471a9f7b71c8b2fcc27849ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadShell.ThreadShell (cognitive 74): ThreadShell.ThreadShell has cognitive complexity 74 (threshold 15). Drivers by points: ternaries 79 (99 pts), if/else 81 (95 pts), boolean chains 75, loops 3, error handling 2 (nesting depth added 34). 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 (ThreadShell.ThreadShell::composer) 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daec2670b912bffaaee52cdc2dc88c04455970d4dcae27fcf5753d6383493de"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientRunLedger.applyObservation (cognitive 72): ClientRunLedger.applyObservation has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 19, ternaries 1 (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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6582105ac010f161770d16df621a19395f7414bc0fa526df162c7ee797edfcf5"}},{"ruleId":"D2","level":"warning","message":{"text":"converters.convert_tool_output (cognitive 68): converters.convert_tool_output has cognitive complexity 68 (threshold 15). Drivers by points: if/else 16 (50 pts), ternaries 2 (8 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cd850bbae582f8f340709a0c19f86a926e9b37d21178b97c0c53b4d0ba7182"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._build_prompt_view (cognitive 68): transcript._build_prompt_view has cognitive complexity 68 (threshold 15). Drivers by points: if/else 18 (40 pts), loops 8 (12 pts), boolean chains 9, ternaries 3 (7 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":"nanobot/webui/transcript.py"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"459b19071b4ad4ae9b21ccffd026856a5a2d802cd407f157912e79e37fbc4837"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.AppsCatalogSettings (cognitive 67): AppsSettings.AppsCatalogSettings has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 27 (54 pts), boolean chains 13 (nesting depth added 27). Of this number, 53 points are the body\u0027s own statements and 14 belong to 4 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"803fe884a82bfe2d3ae6f3be746f23d9e87d3507e6672fff00b4dc76c8682ee2"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.decodeInboundEvent (cognitive 66): validation.decodeInboundEvent has cognitive complexity 66 (threshold 15). Drivers by points: boolean chains 39, if/else 21, ternaries 3 (6 pts) (nesting depth added 3). 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":"tui/src/client/validation.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"77309189de3a28d5489455cefd70b42f6ad4733c44a01f7b51e6a4287a8f3343"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentTaskDock.TaskDock (cognitive 66): SubagentTaskDock.TaskDock has cognitive complexity 66 (threshold 15). Drivers by points: if/else 29, boolean chains 23, ternaries 11 (14 pts) (nesting depth added 3). Most of this is not in the body itself: 14 of the 66 points are its own statements and the rest belongs to 18 function items inside it that branch (changeOpen, a function literal at line 131, a function literal at line 171, \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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11c76d5c2fdc2431f5e146b080300cc5ad1c536f3bfd1e2035824b6b8f975b"}},{"ruleId":"D2","level":"warning","message":{"text":"history.collect_legacy_history (cognitive 64): history.collect_legacy_history has cognitive complexity 64 (threshold 15). Drivers by points: if/else 19 (43 pts), loops 7 (11 pts), boolean chains 9, ternaries 1 (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":"nanobot/webui/history.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb1858a7cb5fc0027fff663789cbbdebe7a5e2af58ed93e18bfdfea76e85e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._configure_quick_start_provider (cognitive 62): onboard._configure_quick_start_provider has cognitive complexity 62 (threshold 15). Drivers by points: if/else 21 (51 pts), boolean chains 6, ternaries 2 (4 pts), loops 1 (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":"nanobot/cli/onboard.py"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c5f0c1c222783a554c906db61adba72e53d72b9345cdcd961c0a19c328278c"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadTranscript.describe (cognitive 62): ThreadTranscript.describe has cognitive complexity 62 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 15, loops 5 (15 pts), ternaries 7 (15 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e45032557962ae976856beaca91baa651c27cc48408e864f1007e3a9981949"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_runtime.update_runtime_config (cognitive 61): settings_runtime.update_runtime_config has cognitive complexity 61 (threshold 15). Drivers by points: if/else 19 (30 pts), error handling 7 (16 pts), loops 6 (9 pts), boolean chains 6 (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":"nanobot/webui/settings_runtime.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3554f5aa380157a25146ac9c0a3b5db544b161fb0b46a27fba45e979130eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._history_prompt_summaries (cognitive 61): transcript._history_prompt_summaries has cognitive complexity 61 (threshold 15). Drivers by points: if/else 11 (39 pts), loops 5 (12 pts), boolean chains 6, ternaries 2 (4 pts) (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":"nanobot/webui/transcript.py"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"852ff5190364720a2fded88392fa195796757f0a2cb3c9a64dfc9f353ce7fd68"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.AutomationDetailPanel (cognitive 61): AutomationsSettings.AutomationDetailPanel has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 27 (43 pts), boolean chains 15, if/else 1 (3 pts) (nesting depth added 18). Of this number, 56 points are the body\u0027s own statements and 5 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fbd4a8af71119bc2445283ab4409138606805fee1a549c77394e950364188f"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxSettings.SandboxSettings (cognitive 61): SandboxSettings.SandboxSettings has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 23 (36 pts), boolean chains 14, if/else 9 (10 pts), error handling 1 (nesting depth added 14). Of this number, 45 points are the body\u0027s own statements and 16 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":"webui/src/components/settings/system/SandboxSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f4fa508ace6bbb8309a30265a5e84e1f6a77464ce637b6129bf30f3ddfa4f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.ThreadDisplayUnit (cognitive 61): ThreadMessages.ThreadDisplayUnit has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 19 (41 pts), boolean chains 10, if/else 9 (10 pts) (nesting depth added 23). Of this number, 48 points are the body\u0027s own statements and 13 belong to 8 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"3401fb53b72dace4ee69652663616537819d107f53b932c66cde40595a4a7938"}},{"ruleId":"D2","level":"warning","message":{"text":"EditFileTool.execute (cognitive 60): EditFileTool.execute has cognitive complexity 60 (threshold 15). Drivers by points: if/else 30 (42 pts), boolean chains 12, error handling 3, ternaries 1 (2 pts), 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d2ff0bd7e09d2cc8965b6e99b8476a53ea305bd81a90780f19a2cbca534212"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationChatBindingView.AutomationChatBindingView (cognitive 60): AutomationChatBindingView.AutomationChatBindingView has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 20 (29 pts), boolean chains 23, if/else 6, error handling 1, loops 1 (nesting depth added 9). Of this number, 36 points are the body\u0027s own statements and 24 belong to 10 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":"webui/src/components/settings/system/AutomationChatBindingView.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8d163bb967d5856b86490781f2de5bc96e62707f84cbde57088c1f204dbfea"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_system.coerce_channel_value (cognitive 59): settings_system.coerce_channel_value has cognitive complexity 59 (threshold 15). Drivers by points: if/else 25 (43 pts), error handling 3 (6 pts), ternaries 3 (6 pts), boolean chains 4 (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":"nanobot/webui/settings_system.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d485925804c878e2d3756532c780fd86c2f275643ba4ff39dc60b387aeb2812a"}},{"ruleId":"D2","level":"warning","message":{"text":"api.fetchHistory (cognitive 59): api.fetchHistory has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (35 pts), ternaries 6 (13 pts), boolean chains 8, match/switch 1 (2 pts), loops 1 (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":"tui/src/client/api.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f983efb49737ab4a94f9c3afb2d45fd553aa9270ebd0bbe2fdf9bc8d98ed3b6"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteConnectionsPage.RemoteConnectionsPage::connect (cognitive 59): RemoteConnectionsPage.RemoteConnectionsPage::connect has cognitive complexity 59 (threshold 15). Drivers by points: if/else 21 (44 pts), boolean chains 8, error handling 2 (4 pts), ternaries 2 (3 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: one other method here (RemoteConnectionsPage.RemoteConnectionsPage) 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec0652de7167a8dbce79387e9fbd96c109b6193412d830a2047af18faa78944"}},{"ruleId":"D2","level":"warning","message":{"text":"update_stop.stop_reviewed_gateways (cognitive 58): update_stop.stop_reviewed_gateways has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (38 pts), boolean chains 8, error handling 2 (6 pts), loops 3 (6 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":"nanobot/update_stop.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5917d8b2f8d25dd20a44ade5b6983ffce033c2b1b1428f013f2e2e95e525e53"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._save_turn (cognitive 57): AgentLoop._save_turn has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (40 pts), boolean chains 11, ternaries 2 (5 pts), loops 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":"nanobot/agent/loop.py"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1a7db953f5bbf2a19ceab509a9d254b29190358caf54a62dbeec9b41e02afb"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIOutboundDelivery.send (cognitive 56): WebUIOutboundDelivery.send has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (36 pts), ternaries 7 (15 pts), boolean chains 5 (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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee7b5e2b326df29c407ae54bf6b7a9e73a4f294c299d58590a5be7c46d6aac0"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.updateMeta (cognitive 56): NanobotTui.updateMeta has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 10 (55 pts), if/else 1 (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":"tui/src/app/app.ts"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf7976b8a4d5a84b041e1708a6d149181a7d6e81ab659e35d555018821a36b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelQrConnectFlowView.ChannelQrConnectFlowView (cognitive 56): ChannelQrConnectFlowView.ChannelQrConnectFlowView has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 19 (37 pts), boolean chains 15, if/else 4 (nesting depth added 18). Of this number, 51 points are the body\u0027s own statements and 5 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":"webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfbf901c62298dc448ace93078fe1c9038c92ecc097d5142a04fa055cfe5932"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-transcript.matchUnits (cognitive 56): thread-transcript.matchUnits has cognitive complexity 56 (threshold 15). Drivers by points: loops 12 (26 pts), if/else 7 (22 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"876fb163e28b553a1e55ad887449dadf767826895b6af55404520d1aac8db18f"}},{"ruleId":"D2","level":"warning","message":{"text":"_MCPWrapperBase._request_with_recovery (cognitive 55): _MCPWrapperBase._request_with_recovery has cognitive complexity 55 (threshold 15). Drivers by points: if/else 8 (24 pts), ternaries 6 (19 pts), error handling 3 (6 pts), boolean chains 5, loops 1 (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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eddfcd4566a202ea1d01c1e6cf8ac45cc47a995a78d088fc7d8d43f933c1edd"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.webui (cognitive 55): webui.webui has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 15, error handling 4 (5 pts), ternaries 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":"nanobot/cli/webui.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4069ebf97f2ddc20fa162ae60992e4c7a6325c2380e3dd2d301e1a3a31693d46"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeSettings.RuntimeSettings (cognitive 55): RuntimeSettings.RuntimeSettings has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 27 (52 pts), boolean chains 1, error handling 1, if/else 1 (nesting depth added 25). Of this number, 50 points are the body\u0027s own statements and 5 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":"webui/src/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd93d14fc82e8106394e562f5cf5ee858d8dd6812d3527a3acc0d7b4c5a6ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"Gallery.Gallery (cognitive 55): Gallery.Gallery has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 24 (39 pts), boolean chains 9, if/else 6 (7 pts) (nesting depth added 16). Of this number, 36 points are the body\u0027s own statements and 19 belong to 11 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":"webui/src/dev/gallery/Gallery.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04ddcc0a7dff67c1c3a85d0e2a48218127ecc1a084de4580991132475716b45"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._run_agent_loop (cognitive 54): AgentLoop._run_agent_loop has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 19 (23 pts), boolean chains 21, if/else 8 (10 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/loop.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6a7224d5c502366dc82e38046f12871630ca251c2216fb3f2190dfdcca2f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._dispatch_one (cognitive 54): AgentLoop._dispatch_one has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 14, error handling 5 (8 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":"nanobot/agent/loop.py"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cec84fdee166e30ba30a9b6ef9dbe03a49a0083e57e8c9485e84a268941eccb"}},{"ruleId":"D2","level":"warning","message":{"text":"update_worker.run_job (cognitive 54): update_worker.run_job has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (34 pts), ternaries 6 (11 pts), boolean chains 7, error handling 2 (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":"nanobot/update_worker.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e4acca3307545fa715ba05b5353b8e06e03ecf75435c4d18426aef4ae10e19"}},{"ruleId":"D2","level":"warning","message":{"text":"svg.resolveDiagramSvg (cognitive 54): svg.resolveDiagramSvg has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 10, loops 3 (4 pts), ternaries 1 (nesting depth added 19). Of this number, 28 points are the body\u0027s own statements and 26 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":"tui/src/rendering/mermaid/svg.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c26fb01a943535876c16bb8c4288fdc6621ce1f3ec632e86b3f1ec9363d28b"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.ThreadMessages (cognitive 54): ThreadMessages.ThreadMessages has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 27 (29 pts), boolean chains 22, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 11 of the 54 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 200, a function literal at line 182, a function literal at line 117, \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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bc1e68524dacf00105793e4cd4f2c892ab520f4b189dffa04ec81d39f5f7f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor._merge_adjacent_user_messages_for_model (cognitive 53): ContextGovernor._merge_adjacent_user_messages_for_model has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 9 (29 pts), if/else 5 (15 pts), loops 2 (7 pts), boolean chains 2 (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":"nanobot/agent/context_governance.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7818edfb9db6d1f84c0a99758d009521be2513fae895b0899e2e7f4c273f857"}},{"ruleId":"D2","level":"warning","message":{"text":"useSidebarHostBridge.useSidebarHostBridge (cognitive 53): useSidebarHostBridge.useSidebarHostBridge has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 16, ternaries 5 (7 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 53 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 37, 99, 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":"webui/src/components/remote/useSidebarHostBridge.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"816c4b0e629e1ad40c78d07b48d0d2a26abb4c52f9e0e72e1199ed85e020a22b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsCatalogSettings.SkillDetailSheet (cognitive 53): SkillsCatalogSettings.SkillDetailSheet has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 17 (35 pts), boolean chains 10, if/else 6, error handling 2 (nesting depth added 18). Of this number, 39 points are the body\u0027s own statements and 14 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"892f749ef4576791b902b630f90abe86375a6f9f983fc67dfe90832f6e97b441"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelSetupPanel.ChannelSetupSurface (cognitive 53): ChannelSetupPanel.ChannelSetupSurface has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (24 pts), ternaries 12 (13 pts), boolean chains 11, error handling 4, loops 1 (nesting depth added 3). Most of this is not in the body itself: 11 of the 53 points are its own statements and the rest belongs to 19 function items inside it that branch (saveCredentialSettings, saveChannelDraft, checkCurrentSettings, \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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fbccac436888832765d30822def6985ce02c8d85edea726ee439fdb08ce3ba"}},{"ruleId":"D2","level":"warning","message":{"text":"inventory-plugin.componentInventory (cognitive 53): inventory-plugin.componentInventory has cognitive complexity 53 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 11, loops 4 (8 pts), ternaries 3 (7 pts) (nesting depth added 23). Most of this is not in the body itself: 1 of the 53 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 76, recordImport, visit, \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":"webui/src/dev/gallery/inventory-plugin.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2bbb275f8a642a3bcb642071bfeb146f237fed324dfd0b6c97fca654e1fda9"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities.update_image_generation_settings (cognitive 52): settings_capabilities.update_image_generation_settings has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (44 pts), boolean chains 5, error handling 1 (2 pts), loops 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb8465ddc7f729ac257d4765104001b7adb01a2fedbd34fd88ab67c41fc3540"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionCheckRowView.VersionCheckRowView (cognitive 51): VersionCheckRowView.VersionCheckRowView has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 11 (35 pts), boolean chains 16 (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":"webui/src/components/settings/overview/VersionCheckRowView.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b289665c3dc7605627b9a4eb27e9dd94922ce477cc9fa95288ec6e386edcad9"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._guard_command (cognitive 50): ExecTool._guard_command has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 7, error handling 2 (7 pts), loops 2 (4 pts), ternaries 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7ec8f1c42fc075057e37844dc948f6187fbcbdc6756a43577bd6e42e66e3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICodexProvider._call_codex (cognitive 50): OpenAICodexProvider._call_codex has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 14 (19 pts), if/else 13 (18 pts), boolean chains 11, error handling 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d51129565924541522f0b006911d7cab8a75283a8ad1409bc98703f42b6bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_action (cognitive 50): GatewayHTTPHandler._handle_webui_automation_action has cognitive complexity 50 (threshold 15). Drivers by points: if/else 24 (38 pts), error handling 3 (6 pts), boolean chains 5, ternaries 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"306253dc64470e90f5c0b7cb9f0ee6d7214744b27a278c5e8ec6cfdbe83be436"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSearchDialog.SessionSearchDialog (cognitive 50): SessionSearchDialog.SessionSearchDialog has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 14 (25 pts), if/else 15 (18 pts), boolean chains 7 (nesting depth added 14). Most of this is not in the body itself: 10 of the 50 points are its own statements and the rest belongs to 12 function items inside it that branch (handleKeyDown, a function literal at line 215, a function literal at line 109, \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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f78dee9a8ed9941a1571301609af2b1c8942a4131c6f7556efe07e2bd4b64"}},{"ruleId":"D2","level":"warning","message":{"text":"useAttachedImages.useAttachedImages.enqueue (cognitive 50): useAttachedImages.useAttachedImages.enqueue has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 8 (25 pts), if/else 10 (18 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 26). Of this number, 30 points are the body\u0027s own statements and 20 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d55920b7049da2cef8f021d71bf17f72d0125f4752b0ae75ca009adcab54cde"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._build_responses_body (cognitive 49): OpenAICompatProvider._build_responses_body has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 10, loops 1 (3 pts), ternaries 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dbef3a636eb69fe3c7ab08ebd7bc6853e5e6b7f58fd0fab87795eb56c4aa1d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatList.ActivePaneRows (cognitive 49): ChatList.ActivePaneRows has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 19 (36 pts), boolean chains 9, if/else 2 (4 pts) (nesting depth added 19). None of this is in the body itself: all 49 points belong to 3 function literals inside it that branch (lines 1490, 1540, 1548). 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef308b4477c801e375010fec7d5449221caa7380e7c686ad0eb1a6cd992442e4"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageBubble (cognitive 49): MessageBubble.MessageBubble has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 17 (37 pts), boolean chains 8, if/else 4 (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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"59748799de75f8119446e3461686d8ca90f545b8a9d61d0665dc4a70859681bf"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.FoldedAgentActivity (cognitive 49): AgentActivityCluster.FoldedAgentActivity has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 12 (26 pts), boolean chains 14, if/else 8, error handling 1 (nesting depth added 14). Of this number, 37 points are the body\u0027s own statements and 12 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaabdc220d67aea3eab02f564556705888505a21268fc226e2a801d31d497b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._extract_posix_paths_from_token (cognitive 48): ExecTool._extract_posix_paths_from_token has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 8, loops 3 (5 pts), ternaries 1 (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":"nanobot/agent/tools/shell.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"9246144c90d393c93d3e0fed41314dad2f7b85435a4c2985f821eea66bbd4b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._configure_model_presets (cognitive 48): onboard._configure_model_presets has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (40 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (2 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":"nanobot/cli/onboard.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b86e0e71b868636c9a79130f7e4017d30fd3a406f0e20f398e8a1e6cf1bc79a"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.submit (cognitive 48): NanobotTui.submit has cognitive complexity 48 (threshold 15). Drivers by points: if/else 34 (41 pts), boolean chains 5, ternaries 1 (2 pts) (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":"tui/src/app/app.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd57aea0afbd94b1676a63f95363ace9dde628c1023865bdb58a0c315b67311a"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsMarketplace.SkillsMarketplace (cognitive 48): SkillsMarketplace.SkillsMarketplace has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 18 (28 pts), if/else 11, boolean chains 8, error handling 1 (nesting depth added 10). Of this number, 25 points are the body\u0027s own statements and 23 belong to 17 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"835a1de7823d21d16577ad4e8cc1d06d769a0506b17e532f848139042b8257c1"}},{"ruleId":"D2","level":"warning","message":{"text":"segmented-control.SegmentedControl (cognitive 48): segmented-control.SegmentedControl has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 16 (22 pts), if/else 14 (16 pts), boolean chains 10 (nesting depth added 8). Most of this is not in the body itself: 11 of the 48 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 165, handleKeyDown, a function literal at line 85, \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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdedda2243bd72410cfa9f8a1798d736e83c54be93fa96062e771c94669e284a"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-display-projection.projectWebuiThreadMessages (cognitive 48): thread-display-projection.projectWebuiThreadMessages has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 8, ternaries 2 (7 pts), loops 2 (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":"webui/src/lib/thread-display-projection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c27dc9bf040b007469fabcf519faef1683bd3f25f8c9e623e79e43cfd55f66e"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-page-fragments.joinThreadFragments (cognitive 48): thread-page-fragments.joinThreadFragments has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 8, ternaries 4 (7 pts), loops 4 (6 pts) (nesting depth added 18). Most of this is not in the body itself: 10 of the 48 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 34, same, a function literal at line 17, \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":"webui/src/lib/thread-page-fragments.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fb28003876849d56e7e1bf0367f92a58e565e2c39f49dbdff8767634d68e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._prepare_command (cognitive 47): ExecTool._prepare_command has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 7, ternaries 4 (6 pts), error handling 2 (5 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52dd7ccfdce9be47f89fbbd1cb94163b965c675e8608f5cef88486cac029d9"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProvider._sanitize_empty_content (cognitive 47): LLMProvider._sanitize_empty_content has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (30 pts), ternaries 3 (8 pts), boolean chains 5, loops 2 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/base.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"305147fc97a82183cc5460d0d706f91d52113bb6211e5bf31f2ab73d6e66b606"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProvider._run_with_retry (cognitive 47): LLMProvider._run_with_retry has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 12, ternaries 4 (8 pts), 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":"nanobot/providers/base.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9e56b19463f0d660e6758aa90345248f6888c42a69e58648b201d229e8373"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockProvider._parse_stream_event (cognitive 47): BedrockProvider._parse_stream_event has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 10 (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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b5cd841a9185ea486984657897b2abc8648da231b4b871f1c62b05fa1b8adf"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelSetupSurfaceView.ChannelSetupSurfaceView (cognitive 47): ChannelSetupSurfaceView.ChannelSetupSurfaceView has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 20 (37 pts), boolean chains 8, if/else 2 (nesting depth added 17). Of this number, 44 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeb53da8def635c5537bb76b1946fe1441aa7e54251bd750298e5ede3ad2f96"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelsSettings.ChannelsSettings (cognitive 47): ChannelsSettings.ChannelsSettings has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 16 (32 pts), boolean chains 10, if/else 5 (nesting depth added 16). Of this number, 20 points are the body\u0027s own statements and 27 belong to 10 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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4aec20b9b724829dd930ff21096892279fb873faeaea08ce6eca8bec6ed7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.build_session_thread_response (cognitive 46): transcript.build_session_thread_response has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 4 (10 pts), boolean chains 8, error handling 1 (3 pts), 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":"nanobot/webui/transcript.py"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"866e8129e739defbae5f6b963daa4c5cb9530d9382b8529e4eeceb5085cbd956"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageBlockMenuActions (cognitive 46): MessageBubble.MessageBlockMenuActions has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 16 (29 pts), boolean chains 17 (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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4754b55e048505c8ac642988988f865aef8cf77bff8a029742a434356d2c5b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"useSystemSettingsEffects.useSystemSettingsEffects (cognitive 46): useSystemSettingsEffects.useSystemSettingsEffects has cognitive complexity 46 (threshold 15). Drivers by points: if/else 31 (33 pts), boolean chains 10, error handling 2, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 46 points belong to 17 function literals inside it that branch (lines 98, 189, 135, \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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08064c9aee388447f33a0bacc6eee5c932126716ffc77242673c13128ebb68"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelCatalogRow.ChannelCatalogRow (cognitive 45): ChannelCatalogRow.ChannelCatalogRow has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 15 (30 pts), boolean chains 10, if/else 3 (5 pts) (nesting depth added 17). Of this number, 33 points are the body\u0027s own statements and 12 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":"webui/src/components/settings/channels/ChannelCatalogRow.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8440795396ac0a072374b8e0f7ee06d8759a09c0d642e8de53b7be82494b4499"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFileTool._read_text (cognitive 44): ReadFileTool._read_text has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (25 pts), ternaries 3 (9 pts), error handling 2 (5 pts), boolean chains 4, 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a09eb584a3997ce2790af9c20334946ad43e83b33cd3823288cc82e64c2ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchTool._effective_provider (cognitive 44): WebSearchTool._effective_provider has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 10 (20 pts), if/else 13, boolean chains 11 (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":"nanobot/agent/tools/web.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49e6d391434e0e90f5ed76ea9ceba94abc08b731fead9757af847e0963ae654"}},{"ruleId":"D2","level":"warning","message":{"text":"optional_features.with_channel_runtime_status (cognitive 44): optional_features.with_channel_runtime_status has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (29 pts), ternaries 3 (7 pts), loops 3 (5 pts), boolean chains 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":"nanobot/optional_features.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1cccd0a17761b6b32153f4bcb9b9ccb4b94611b747169dbdca92480ddbbb39"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter.start_webui_request (cognitive 44): WebUICommandRouter.start_webui_request has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 8, error handling 3 (6 pts), ternaries 2 (5 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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe00e48e217ea766717d255df3afc4953a258fb828e43cd2025dbf28b7f38ec"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUISettingsRouter.dispatch (cognitive 44): WebUISettingsRouter.dispatch has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (28 pts), loops 2 (6 pts), boolean chains 5, ternaries 3 (5 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":"nanobot/webui/settings_routes.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"826f3635b5710feefe7c7f6632447853f59c77ccc14edd55b60a58be2c69032b"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.saveModelSettings (cognitive 44): useModelSettingsActions.useModelSettingsActions.saveModelSettings has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 15 (19 pts), if/else 9 (13 pts), boolean chains 9, error handling 2 (3 pts) (nesting depth added 9). Of this number, 42 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"916fedad558e1c6a2ea48c3d9e3c9dc3a523cf08d5c90e501f16df12b8a55785"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.McpCustomServerPanel (cognitive 44): AppsSettings.McpCustomServerPanel has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 20 (39 pts), boolean chains 5 (nesting depth added 19). Of this number, 42 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"6728438181e7b8b02c2bce895fa8555eff9837975bff3e2af3ea6a9a9538287d"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing._hosted_web_search_event (cognitive 43): parsing._hosted_web_search_event has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 10, ternaries 4 (5 pts), loops 1 (3 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd6fc6722dbf0336e4e70e2ceab324145334dfcbe08f7e533ee6da2159fb48d"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._select_transcript_page (cognitive 43): transcript._select_transcript_page has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 14, ternaries 6, 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":"nanobot/webui/transcript.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed8e612f542e3de695716ae96f8a3584963adcda0b37850965710d0bdadf54a"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickPairSetup.QuickPairSetup (cognitive 43): QuickPairSetup.QuickPairSetup has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 9, ternaries 4 (9 pts), error handling 1 (nesting depth added 7). Most of this is not in the body itself: 6 of the 43 points are its own statements and the rest belongs to 10 function items inside it that branch (run, a function literal at line 79, a function literal at line 94, \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":"webui/src/components/remote/QuickPairSetup.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be6666bd1a523bc490320380408f71edb35befc14f662328ffd4bb25e98a61e"}},{"ruleId":"D2","level":"warning","message":{"text":"ssh-address.parseSSHAddress (cognitive 43): ssh-address.parseSSHAddress has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 8, loops 2, ternaries 1 (2 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":"webui/src/lib/ssh-address.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0fca26d086df6973091536418265b1701f867a41f3b4733769381aa989513a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFileTool.execute (cognitive 42): ReadFileTool.execute has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 3 (6 pts), boolean chains 3, ternaries 2 (3 pts), error handling 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"966df64489868813dad2cd1749616a39eb1b5e813cf1cec7b54586ffaa922a61"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolLoader.load (cognitive 42): ToolLoader.load has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 3 (6 pts), error handling 1 (3 pts), boolean chains 2 (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":"nanobot/agent/tools/loader.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5286efe8128406acc327ea0de6d4ba3cd530cf5cfc288a60f5cfc6606d3fe293"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._sanitize_messages (cognitive 42): OpenAICompatProvider._sanitize_messages has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 9, loops 3 (6 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a982538c41e63eba7e210b0ed8bc0d48812c677118304065d50f469a6ba912"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter.dispatch (cognitive 42): WebUICommandRouter.dispatch has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (29 pts), error handling 5 (10 pts), boolean chains 2, ternaries 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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e87e3553b138478db4fc821de0e2cf6a37556e2ae46d7d9065be1d96e2f32ab"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexParser.command (cognitive 42): LatexParser.command has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (26 pts), ternaries 6 (12 pts), boolean chains 3, 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":"tui/src/rendering/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad644d8528b9abc9e73f9dac5b9ad6209f6411e228a62fa8a75e3b62376f6534"}},{"ruleId":"D2","level":"warning","message":{"text":"api.parseWebuiThreadPayload (cognitive 42): api.parseWebuiThreadPayload has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 11, loops 1 (2 pts), ternaries 1 (nesting depth added 11). Of this number, 25 points are the body\u0027s own statements and 17 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":"webui/src/lib/api.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad88f7a72f0a4442d458664b8cd456b0c215fe0f5df2e9f47910080038b1be5"}},{"ruleId":"D2","level":"warning","message":{"text":"data_access.data_access (cognitive 41): data_access.data_access has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 11, loops 4 (7 pts), ternaries 2 (4 pts), error handling 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":"nanobot/data_access.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a0fc50837fec6f0b0a3ebc42d2e63149442bceb777771e93af19ee4c1fd380"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery.restore_runtime_checkpoint (cognitive 41): recovery.restore_runtime_checkpoint has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 8, ternaries 6 (8 pts), loops 3 (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":"nanobot/session/recovery.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa4caa8f64a088fae160e22e042dce5ca3d14bbf2244e388b738796cb4ed7df"}},{"ruleId":"D2","level":"warning","message":{"text":"api.fetchMentionCandidates (cognitive 41): api.fetchMentionCandidates has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 7 (19 pts), if/else 5 (9 pts), boolean chains 8, loops 3 (5 pts) (nesting depth added 18). Of this number, 36 points are the body\u0027s own statements and 5 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":"tui/src/client/api.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c41292e760efe08ed53515a9c1476ed7226bba7f4f87dc163ca630e65b1e94f"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.SettingsPage (cognitive 41): SettingsPage.SettingsPage has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 29 (55 pts), boolean chains 26, if/else 19 (25 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. This shape REPEATS in the file: one other method here (SettingsPage.SettingsPage::renderSettingsSection) 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6422192c171eb7e07e2967835807d8a50dbf42f8371b76639325853b3ac446"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptRail.PromptRail (cognitive 41): PromptRail.PromptRail has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 12 (15 pts), boolean chains 8, loops 1 (nesting depth added 5). Most of this is not in the body itself: 8 of the 41 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 150, a function literal at line 47, a function literal at line 76, \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":"webui/src/components/thread/PromptRail.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3336e0935fabfdb5432e364928335016cf20984842792b9b67fe9c91314713e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMUsageStore.usage_payload (cognitive 40): LLMUsageStore.usage_payload has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 11 (17 pts), if/else 10 (14 pts), boolean chains 5, loops 2 (4 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":"nanobot/llm_usage/store.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ebd83798bd3fa54c30e89e0feb07b8deb78a63ad9ccecbff9d7bcd8b54ec3c"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers._estimate_prompt_tokens_with_source (cognitive 40): helpers._estimate_prompt_tokens_with_source has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (19 pts), ternaries 5 (10 pts), loops 3 (6 pts), boolean chains 4, error handling 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":"nanobot/utils/helpers.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"33697994d1e04b96d764d39890472b292f30addbf035cd61f8eec10004ee8318"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_provider_settings (cognitive 40): settings_models.update_provider_settings has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 5, error handling 2 (4 pts), loops 1 (2 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0e0547a3b7d133366ed0436afb9d66598996794321be06da429209840e1100"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReferenceChip.FileReferenceChip (cognitive 40): FileReferenceChip.FileReferenceChip has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 21 (26 pts), boolean chains 12, if/else 2 (nesting depth added 5). Of this number, 35 points are the body\u0027s own statements and 5 belong to 3 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":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1533e099678e6f3f13a44f1c70c6b5c9583ca346502f8c056b948520d44b8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.ThreadComposer::onKeyDown (cognitive 40): ThreadComposer.ThreadComposer::onKeyDown has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 9 (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: one other method here (ThreadComposer.ThreadComposer) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e8b1a32560ab10256b72d0b91b411280fb494c801c77e0089177e19742722"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageTool.execute (cognitive 39): MessageTool.execute has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 11, ternaries 10 (11 pts), error handling 2 (3 pts) (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":"nanobot/agent/tools/message.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2196485e1b7d6ca18f5f5152c36d6ad44140e32f400777ab1bab28bfa63e84fa"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._validate_field_constraint (cognitive 39): onboard._validate_field_constraint has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 7, 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":"nanobot/cli/onboard.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f54af3949a49774d599e7305a91d651ddcaa7fcffa457ceaad3af0ceb005fea"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._make_provider_core (cognitive 39): factory._make_provider_core has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 15 (29 pts), if/else 4 (6 pts), boolean chains 4 (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":"nanobot/providers/factory.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1f200f2f9f1000de792237c736f2c6b7b21e0f6fb6b2ea553396e0b661a4cd"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._parse (cognitive 39): OpenAICompatProvider._parse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 17, loops 2, ternaries 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bcef3db0c17c95a5650791211e24885ec4d4e906adbf6deb701a07d37c5c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"context_observer._restore (cognitive 39): context_observer._restore has cognitive complexity 39 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 5 (11 pts), boolean chains 7, ternaries 2 (6 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":"nanobot/webui/context_observer.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cfcad684ca3f84d1d33d539372a77876017c08195d8253b076f46d49d03dc"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_model_configuration (cognitive 39): settings_models.update_model_configuration has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 11 (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":"nanobot/webui/settings_models.py"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf873c2fb4fc7c9b024cf12194125ec5bed410f68627a3ace947a17957c8d4b6"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearSecretField.LinearSecretField (cognitive 39): LinearSecretField.LinearSecretField has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 10 (21 pts), boolean chains 9, if/else 6 (8 pts), error handling 1 (nesting depth added 13). Of this number, 25 points are the body\u0027s own statements and 14 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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24bd678ce92a4308e6fd0cd7147362e7bd3e52f6db312677527c82d7d129099"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerUsagePopover.ComposerUsagePopover (cognitive 39): ComposerUsagePopover.ComposerUsagePopover has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 15 (21 pts), boolean chains 15, if/else 3 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 20 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3425bf3988cea845d9b30cccc5d5b5b91400765d9b9d2b717880edde691cf071"}},{"ruleId":"D2","level":"warning","message":{"text":"image-viewport.ImageViewport (cognitive 39): image-viewport.ImageViewport has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (21 pts), ternaries 6 (10 pts), boolean chains 7, loops 1 (nesting depth added 6). Most of this is not in the body itself: 3 of the 39 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 129, a function literal at line 75, onPointerMove, \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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdbf26c9b777534c9aad4e1ca7c9679e40d03205931357e2eafc1395a9f5921"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.backfill_missing_tool_results (cognitive 38): ContextGovernor.backfill_missing_tool_results has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 4 (7 pts), ternaries 1 (7 pts), boolean chains 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":"nanobot/agent/context_governance.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"b619568d6a7069b9670979b0b08f9d52cac6b1f86afdb8654fe9d837afc6f672"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._build_turn (cognitive 38): AgentLoop._build_turn has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 13, ternaries 4 (9 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":"nanobot/agent/loop.py"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fd4cb57cb2c57133b8c9629f7178319c4bd2c0cdf1acb788bca564e6e1ea4a"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryArchiver.archive (cognitive 38): MemoryArchiver.archive has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7, loops 2 (3 pts), ternaries 1 (3 pts), error handling 1 (2 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":"nanobot/agent/memory.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"9522133c34fd4cd954f08c594d759a8a32894cc85cc93dfbd851a828b180d6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnDelivery._publish_event (cognitive 38): TurnDelivery._publish_event has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 18). 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":"nanobot/agent/turn_delivery.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a622cccf9699430bb48c5f56dfd3aa1e24d482bae6986e465f6abb395c4a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"network.migrate_legacy_proxy_config (cognitive 38): network.migrate_legacy_proxy_config has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 8, loops 4 (5 pts) (nesting depth added 14). 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":"nanobot/config/network.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd439f7e1a34528666c30e18bdcd5eba5cd6dbda9d73515fa0622910e4d1fac4"}},{"ruleId":"D2","level":"warning","message":{"text":"jsonl_migration.read_jsonl (cognitive 38): jsonl_migration.read_jsonl has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 7, 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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c41798f88f9e2420bbde9e8042beb9cb2395e16b0cc88181a83827cd2d79035"}},{"ruleId":"D2","level":"warning","message":{"text":"update_worker.main (cognitive 38): update_worker.main has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 15, if/else 10, ternaries 6 (10 pts), error handling 2 (3 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/update_worker.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4a70fe821a35437f93736ddd2d70cd730d59a436326dbfa8675e2ed1891d17"}},{"ruleId":"D2","level":"warning","message":{"text":"automation_results.cron_run_response (cognitive 38): automation_results.cron_run_response has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 5, ternaries 2 (4 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/automation_results.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebb0f02a449679ca47169316a445aa03ea54b9e872802b3145e262a3c55770b"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInstances._connect (cognitive 38): RemoteInstances._connect has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 5, loops 2, error handling 1, ternaries 1 (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":"nanobot/webui/remote_instances.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c962e234034b31236fe09e47d5df241798cdb691b7da10803608c8b7841d9cc"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities.update_transcription_settings (cognitive 38): settings_capabilities.update_transcription_settings has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 6, error handling 2 (4 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65166fb896adbf7cdb80b9b9daf2e7f85a2b0fc0b3b8013958d899eda599247"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePreviewPanelView.FilePreviewPanelView (cognitive 38): FilePreviewPanelView.FilePreviewPanelView has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 14 (32 pts), boolean chains 6 (nesting depth added 18). Of this number, 37 points are the body\u0027s own statements and 1 belongs 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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6b6697e76280439e1b159bc7d4bd447a194801e3296187f0fb0bad5c14a888"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTextRenderer.MarkdownTextRenderer (cognitive 38): MarkdownTextRenderer.MarkdownTextRenderer has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17, boolean chains 11, ternaries 10. Most of this is not in the body itself: 5 of the 38 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 550, 537, 546, \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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"26885ce7cf7a8405acd05cd18fbae7d7ad28cf83ba993cd1bd99d13229490ee0"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._handle_fallback_models_field (cognitive 37): onboard._handle_fallback_models_field has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 4, loops 2 (4 pts), ternaries 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":"nanobot/cli/onboard.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"1311dc950b9bc26d2eb7ccb7518b3462fd157c4792e70d8fbd880d4515ae6f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider.chat_stream (cognitive 37): AnthropicProvider.chat_stream has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 13, error handling 3 (4 pts), 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e93417e08196d5253c0d0cba5822596201eb1c0d4f27594d0619e412633c452"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIGrokProvider._call_xai (cognitive 37): XAIGrokProvider._call_xai has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 10, error handling 3 (5 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49c74774942eae663a951a4256411816782f1df4e225df19c5a7e2a24b7fa49"}},{"ruleId":"D2","level":"warning","message":{"text":"update_uv.cache_digest (cognitive 37): update_uv.cache_digest has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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":"nanobot/update_uv.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7200f6382aa6090b7271b8e2607907139a45c4e8e44543e089438a2b5e6618"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.split_message (cognitive 37): helpers.split_message has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 4, loops 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":"nanobot/utils/helpers.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9ee1cfdac12ca0ac49a7070a1774261dd5e70aa2a0cd752f6416a17790648b"}},{"ruleId":"D2","level":"warning","message":{"text":"useHostSessions.useHostSessions.readDirectory (cognitive 37): useHostSessions.useHostSessions.readDirectory has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 12, ternaries 1 (3 pts), loops 1 (nesting depth added 8). Most of this is not in the body itself: 10 of the 37 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 123, a function literal at line 142, finish). 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a696f48b8aa2f639885f6d4d4979a71d725f256dcf525c9e9cd88586f3d3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelInstancesPanelView.ChannelInstancesPanelView (cognitive 37): ChannelInstancesPanelView.ChannelInstancesPanelView has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 13 (19 pts), boolean chains 13, if/else 3, error handling 2 (nesting depth added 6). Most of this is not in the body itself: 2 of the 37 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 137, toggleInstance, saveSelectedInstanceSettings, \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":"webui/src/components/settings/channels/ChannelInstancesPanelView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"361deadce3627a3575c45f3447db7987835f0064736d8a72c483a8f4ebe265bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ThinkingReasoningShell.ThinkingReasoningShell (cognitive 37): ThinkingReasoningShell.ThinkingReasoningShell has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 16 (28 pts), boolean chains 8, if/else 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":"webui/src/components/thread/activity/ThinkingReasoningShell.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2568f8f3c8bb74ccaf5cf848dd2dde8b81efb5160d9df8935355006f97b2f3"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateFlowProvider.UpdateFlowProvider::confirm (cognitive 37): UpdateFlowProvider.UpdateFlowProvider::confirm has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (28 pts), error handling 3 (6 pts), boolean chains 3 (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. This shape REPEATS in the file: 2 other methods here (UpdateFlowProvider.UpdateFlowProvider, UpdateFlowProvider.UpdateFlowProvider::inspect) 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7809b637e55b3a3d752adc605491d3332374b4d4379e7065770df75d94d5d0"}},{"ruleId":"D2","level":"warning","message":{"text":"optional_features.optional_features_payload (cognitive 36): optional_features.optional_features_payload has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 6 (13 pts), boolean chains 3, error handling 1 (2 pts), loops 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":"nanobot/optional_features.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7a6c0e4ce0ecf8e7f7a0af57502c6b39622af3d48907d10204ebf0e1e1e52"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities.update_web_search_settings (cognitive 36): settings_capabilities.update_web_search_settings has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 7, error handling 2 (4 pts), ternaries 2 (4 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"63748fd89341432dd38bf2439ba4d317a55835dc76f6cd1fe4ae32f68bf7d01e"}},{"ruleId":"D2","level":"warning","message":{"text":"HostSwitcherView.HostMenuItems (cognitive 36): HostSwitcherView.HostMenuItems has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 14, ternaries 3 (6 pts) (nesting depth added 7). Most of this is not in the body itself: 9 of the 36 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 50, a function literal at line 40, a function literal at line 82, \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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbffa916a8a10036a092460115ecd3264162fa4fc529389daeecc8ad9b877d35"}},{"ruleId":"D2","level":"warning","message":{"text":"useHostSessions.useHostSessions (cognitive 36): useHostSessions.useHostSessions has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 17, if/else 12 (15 pts), ternaries 2, error handling 1, loops 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 311, 295, 304, \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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e53d1bc49c839c5303bda4489c310b867d7c71d442f5ea10fe17c3ac3a274d"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.SettingsPage::renderSettingsSection (cognitive 36): SettingsPage.SettingsPage::renderSettingsSection has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 12 (25 pts), boolean chains 9, if/else 1, match/switch 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. This shape REPEATS in the file: one other method here (SettingsPage.SettingsPage) 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c82bb73903b78a8c91bdd70921332866c81e855bff29617e18c2cd3e8eb3de"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.McpManagementDialog (cognitive 36): McpManagementDialog.McpManagementDialog has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 15 (19 pts), boolean chains 11, if/else 6 (nesting depth added 4). Of this number, 24 points are the body\u0027s own statements and 12 belong to 4 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cc46dcc5d2780432aa5ed5b950c45e00afbd0d5650ccd2680da2ba170be9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeConfigSettings.useRuntimeConfigSettings.save (cognitive 36): RuntimeConfigSettings.useRuntimeConfigSettings.save has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 9, ternaries 3 (7 pts), error handling 1, loops 1 (nesting depth added 10). Of this number, 33 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d346e6b8a092f7ac663b31e20346136911de4f158fff0810409d370a19cb2f65"}},{"ruleId":"D2","level":"warning","message":{"text":"activity-message-model.coalesceActivityMessages (cognitive 36): activity-message-model.coalesceActivityMessages has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (6 pts), ternaries 1 (4 pts), boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/activity-message-model.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e521c4f155aa8a76f964e3386dabb3a6ebbdc2b054d414bc1ba1d04314288ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"exec-session-model.execSessionCommands (cognitive 36): exec-session-model.execSessionCommands has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (17 pts), ternaries 2 (9 pts), loops 3 (6 pts), boolean chains 4 (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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9132c740340f4e2ad1b91469bcde0943f800d2a7a86fc887743251e819f796c"}},{"ruleId":"D2","level":"warning","message":{"text":"channels.ChannelFormPreview (cognitive 36): channels.ChannelFormPreview has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 11 (13 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 10 of the 36 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 46, validate, a function literal at line 96, \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":"webui/src/dev/gallery/channels.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cda4b196f841fe8802bd349979e35df226c6a6a6ce296cf77db034b714bf28"}},{"ruleId":"D2","level":"warning","message":{"text":"ListDirTool.execute (cognitive 35): ListDirTool.execute has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 2 (8 pts), loops 2 (4 pts), boolean chains 2, error handling 2 (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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"230af3e5fa76bfe96c50820a86bc50a7cd87ec983dfcc85827de6211d2ac7cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProvider._enforce_role_alternation (cognitive 35): LLMProvider._enforce_role_alternation has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 7, loops 3 (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":"nanobot/providers/base.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e4b709a92deb792c2eb3360f079eed978062a38e3ba6bf0f8e7de66f279e10"}},{"ruleId":"D2","level":"warning","message":{"text":"update_uv.prepare_uv (cognitive 35): update_uv.prepare_uv has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 9, loops 4, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/update_uv.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20bbc2ae950da09fa1c4f5bffd02ef9494a142d3b33a275477c54e7050f402a"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearMemberAccessView.LinearMemberAccessView (cognitive 35): LinearMemberAccessView.LinearMemberAccessView has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 14 (22 pts), boolean chains 8, if/else 3 (4 pts), loops 1 (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 17 belong to 3 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":"nanobot/channels/linear/webui/LinearMemberAccessView.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b289e463579d20e62056497c6d5c94fa7ba21b17e98fd32a56683f4342d33d"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearPanel.LinearPanel (cognitive 35): LinearPanel.LinearPanel has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11, ternaries 5 (6 pts), error handling 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 16 function items inside it that branch (disconnectWorkspace, a function literal at line 160, a function literal at line 201, \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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f4c847fb62bf8de57cee8e36edf454650bfc8ca4c9b937e078b4e41a0bb92"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSettings.WebSettings (cognitive 35): WebSettings.WebSettings has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 13 (22 pts), boolean chains 13 (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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6afdf1e87c1e14ab3de5ddade5eed8bb044faac05f763d8fff5e99d759c571a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings (cognitive 35): ProviderSettings.ProvidersSettings has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 47 (97 pts), boolean chains 31, if/else 12 (15 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent 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 (ProviderSettings.ProvidersSettings::renderProviderForm) 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f859db55956c3fc7c6cb5f8583d1c62f5602e91a238e87c38408a06a82ed1177"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.attachProjectedReasoning (cognitive 35): thread-event-projection.attachProjectedReasoning has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 13, ternaries 4 (6 pts), loops 1 (nesting depth added 8). Of this number, 34 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3372d9e33dcc223949fcf8c11685b794ddb3525ed31e3423d7d5d4208725ae"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchTool._search_volcengine (cognitive 34): WebSearchTool._search_volcengine has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 13, error handling 3, ternaries 2, 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":"nanobot/agent/tools/web.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eb43ea78e0745be3fa66512700e1be25036f0b6aebadfeb3723c0ff74295c1"}},{"ruleId":"D2","level":"warning","message":{"text":"converters.convert_messages (cognitive 34): converters.convert_messages has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 5, loops 2 (4 pts), ternaries 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":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f30145b08def42e1a4385fa1a186f0b2560b112d5570a5f18dce262087f0e32"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.parse_response_output (cognitive 34): parsing.parse_response_output has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (20 pts), boolean chains 8, loops 2 (4 pts), ternaries 2 (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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b280565e90b21368b1717b1d303ca7e57f0f39f5d6b7d08b6615f41f6f23d439"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_settings_action (cognitive 34): mcp_presets_api.mcp_presets_settings_action has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 8 (16 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0621fc12184f567fbfff8f201b5a52db2b74a8d8a58c09cc1785a8ff53888c"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemSettingsHandler.handle (cognitive 34): SystemSettingsHandler.handle has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22 (25 pts), error handling 3 (6 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_system.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f541145fcaa12f1f6b09f204b99a760c66ffd7f4841b617653a561e268af6c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsSettings.ModelsSettings::renderPresetEditor (cognitive 34): ModelsSettings.ModelsSettings::renderPresetEditor has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 15 (22 pts), boolean chains 12 (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: one other method here (ModelsSettings.ModelsSettings) 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfe5d07416e7c57d4de25ec18dc3f145737c7c30961186b2e0006b6b16f3608"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderSettings.ProviderOAuthLoginDialog (cognitive 34): ProviderSettings.ProviderOAuthLoginDialog has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 17 (27 pts), boolean chains 4, if/else 2 (3 pts) (nesting depth added 11). Of this number, 30 points are the body\u0027s own statements and 4 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e4840f8f3c1c29eef68f93553164bc621a3f9e25062c852cddcd194262a3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderIcon.ProviderIcon (cognitive 34): ProviderIcon.ProviderIcon has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 14 (29 pts), boolean chains 5 (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":"webui/src/components/settings/shared/ProviderIcon.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9b71ea95fc84a578d9cba2cca95d78d90f09ebba9fba6e6c1994bd4deb2641"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSectionSkeleton.Row (cognitive 34): SettingsSectionSkeleton.Row has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (33 pts), boolean chains 1 (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":"webui/src/components/settings/shared/SettingsSectionSkeleton.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6579ad7e51f941c427a6de22dcd6534b759a79c349cc060b36e4aafbbad0d9bb"}},{"ruleId":"D2","level":"warning","message":{"text":"useQueuedPrompt.normalizeQueuedPrompt (cognitive 34): useQueuedPrompt.normalizeQueuedPrompt has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 13 (17 pts), if/else 6 (9 pts), boolean chains 8 (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 17 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":"webui/src/components/thread/useQueuedPrompt.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"596098a6deb346de3fd0683eb6dbbd56a2bce2e4042c07b4eefaff0ab1b9d565"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._restore_turn (cognitive 33): AgentLoop._restore_turn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 8, ternaries 2 (3 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":"nanobot/agent/loop.py"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"146da960f5b1a3d41f267ec34188201ad501c222f8af239a19650c8534356254"}},{"ruleId":"D2","level":"warning","message":{"text":"MyTool._format_value (cognitive 33): MyTool._format_value has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 8 (14 pts) (nesting depth added 17). 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":"nanobot/agent/tools/self.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45e562cd267876266df6cd934ee118cb0600ab4bd3703a4311e6f7ddee6cd2c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchTool._search_deepseek (cognitive 33): WebSearchTool._search_deepseek has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 3 (7 pts), error handling 3, boolean chains 2, 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":"nanobot/agent/tools/web.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"51747ac05cf4ab0c984d80c06a00a4c24c98d50bae4e799e09e721d10e56448e"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagramJobs.observe (cognitive 33): DiagramJobs.observe has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 4, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 14). Most of this is not in the body itself: 6 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 126). 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"242f3739e8b7143c910a48825e67c4363c697c5f7512a7317a2528170a499b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 33): App.App has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 5 (7 pts), error handling 5, boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 652, a function literal at line 615, a function literal at line 714, \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":"webui/src/App.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"705b784180d916cecf231a22448d8e9d462d37129c7855c0d38f15400aa85df5"}},{"ruleId":"D2","level":"warning","message":{"text":"svg-image.style (cognitive 33): svg-image.style has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"195bbba06a43d32da317914d2ccdfe4409e5584d5876b6d8941864d6d3df6e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"HostSwitcherView.HostSwitcherView (cognitive 33): HostSwitcherView.HostSwitcherView has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 17 (23 pts), boolean chains 7, if/else 2 (3 pts) (nesting depth added 7). Of this number, 31 points are the body\u0027s own statements and 2 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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f573a00cb0dc8ae5a5b3125a77fd449ca590d5cd2119e54e7e6979a78f481a12"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationCalendar.AutomationCalendar (cognitive 33): AutomationCalendar.AutomationCalendar has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 14 (24 pts), if/else 5 (6 pts), boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 11 of the 33 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 287, a function literal at line 265, a function literal at line 378, \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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"99757818c031b3c1176777aa5d7ab23a73b3b0a23748a7fcb3d04f59a317228b"}},{"ruleId":"D2","level":"warning","message":{"text":"generic-tool-model.activityLabel (cognitive 33): generic-tool-model.activityLabel has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 7 (14 pts), boolean chains 1, match/switch 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1efe3180280971912c3e33814b3c6ca67aa1c2e94f37293596ee8e98b7797a"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMotionCoordinator.flushGeometry (cognitive 33): ThreadMotionCoordinator.flushGeometry has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 8, ternaries 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cc1e1b2f057e940c996da263a8a6e2f71cd459de4c7a9d59963ff6db3b8940"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.drop_orphan_tool_results (cognitive 32): ContextGovernor.drop_orphan_tool_results has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 2 (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":"nanobot/agent/context_governance.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f3e8aed9dd673f7bb5f67f48c09a6e43a5014c08d848735b8703be5f7f1bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._split_shell_segments (cognitive 32): ExecTool._split_shell_segments has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 5, 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9fbccef203fd83a8f42f695de84e6a31e1c0f20e9a04935c6b9e4ab48ab582"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppManager.catalog (cognitive 32): CliAppManager.catalog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (5 pts), loops 3 (4 pts), boolean chains 3, error handling 1 (2 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":"nanobot/apps/cli/service.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98b02443755fc39f52659f6a9a61c92d1bbab253f876f5f6047254c5e8c6961"}},{"ruleId":"D2","level":"warning","message":{"text":"update_backup.ensure_backup (cognitive 32): update_backup.ensure_backup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (5 pts), boolean chains 3, error handling 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":"nanobot/update_backup.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bbdf4814787d8abbd3bdf0bbbe86db3d11fe5ff3a4cb03f9b0cfa0ce50216e"}},{"ruleId":"D2","level":"warning","message":{"text":"update_profiles._observe (cognitive 32): update_profiles._observe has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 3 (7 pts), boolean chains 3, error handling 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":"nanobot/update_profiles.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecba1cb3a11ed14d849f7b14ec4937f29946b764545c6cb7bb7033182bccb4fd"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialForm.CredentialForm (cognitive 32): CredentialForm.CredentialForm has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 15 (20 pts), boolean chains 9, if/else 3 (nesting depth added 5). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 100, 169). 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":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6419cac7ae9f2733b29f062305c0fee4cb2a0104584024850b814d6779c169"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.saveProvider (cognitive 32): useModelSettingsActions.useModelSettingsActions.saveProvider has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 3, ternaries 2 (3 pts), error handling 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dbf9e66c60bc8b864a920903cf5a3242869c7a8c7573abe3a2d5f68450a522"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSectionSkeleton.RuntimeGroups (cognitive 32): SettingsSectionSkeleton.RuntimeGroups has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 7 (28 pts), boolean chains 4 (nesting depth added 21). None of this is in the body itself: all 32 points belong to 3 function literals inside it that branch (lines 74, 70, 74). 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":"webui/src/components/settings/shared/SettingsSectionSkeleton.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b2e96091cea3b01f72cccbd2b4c4a3dace9ef13e983102d45af2b6512490db"}},{"ruleId":"D2","level":"warning","message":{"text":"exec-session-model.describeExecSession (cognitive 32): exec-session-model.describeExecSession has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 10 (19 pts), boolean chains 8, if/else 5 (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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e0d477c06f743209b312868b22aa4f9212320ea717d0acc936fe5fc9a7a9d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecSessionTool._wait (cognitive 31): ExecSessionTool._wait has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 5 (13 pts), boolean chains 4, loops 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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd567db021e498419b0c83863c79174024565b2e9d8a28a2605a28122d1b61ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._resolve_shell (cognitive 31): ExecTool._resolve_shell has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (25 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d21eebf859994fc9c924dcf5e2bc576591bc46c8234586febdb667ab003cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.status (cognitive 31): commands.status has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 3 (6 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 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":"nanobot/cli/commands.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b9956c9221edbc597f02ce6f6e0fc6d6d7b9bbc8e08ddfa79ea049ebb9aab2"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_provider._parse_xai_grok_models (cognitive 31): xai_grok_provider._parse_xai_grok_models has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 4 (9 pts), boolean chains 6, 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e89d709b1283db40e6d77c6b1f2bbf1c9a56e14c4fa2e4b187affbbcfb4d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"text.outlineDiagramText (cognitive 31): text.outlineDiagramText has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 9 (22 pts), ternaries 8 (20 pts), boolean chains 7 (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. This shape REPEATS in the file: one other method here (text.outlineDiagramText::collect) 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":"tui/src/rendering/mermaid/text.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48ba869bf5e01c94b49c4bad29b107f3a5453fc156221141c79c0b1e0640c38"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.Sidebar (cognitive 31): Sidebar.Sidebar has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 17 (19 pts), boolean chains 12 (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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"397bcdffd552e078c9999dd25e75626d44d423974506959dd6d7f6a058346fde"}},{"ruleId":"D2","level":"warning","message":{"text":"useHostSessions.useHostSessions.connect (cognitive 31): useHostSessions.useHostSessions.connect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 8, ternaries 2 (4 pts), error handling 1 (nesting depth added 6). Of this number, 30 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dcbced502c80a0861fb5d6458bba145997a7fe0517e109e099e93f8f1aa895"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelQrConnectFlow.ChannelQrConnectFlow (cognitive 31): ChannelQrConnectFlow.ChannelQrConnectFlow has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, ternaries 4 (6 pts), error handling 4 (nesting depth added 3). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 90, a function literal at line 156, submitPoll, \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":"webui/src/components/settings/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"84077121b67522a67f288df1a5903b487ee2e6ae76d8650b49eff62eaa4cb0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationRunDialogView.AutomationRunDialogView (cognitive 31): AutomationRunDialogView.AutomationRunDialogView has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 16 (27 pts), boolean chains 4 (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":"webui/src/components/settings/system/AutomationRunDialogView.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1c8c9250a04129449b2e426121eb50a16f1a4c65e3c2acc40a26bb7c689cc0"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.ConnectionPanel (cognitive 31): McpManagementDialog.ConnectionPanel has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 18 (25 pts), boolean chains 6 (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 6 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d302c4d9aa234807e614d6f54f7dc72bf5a14cc28f4ec3d43c03beb1ee3a7891"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptNavigator.PromptNavigator (cognitive 31): PromptNavigator.PromptNavigator has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 12, ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 143, 128, 45, \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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb681c7ad89458eecb1adb96f23045135da3170c7f69e06dd038f22ea3783c33"}},{"ruleId":"D2","level":"warning","message":{"text":"windows_browser.launch_browser (cognitive 30): windows_browser.launch_browser has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 3 (9 pts), boolean chains 3, loops 1 (3 pts), ternaries 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":"nanobot/cli/windows_browser.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c6d97f4092539c6eba1b6c908cb5efb9e59ebdfae49d4c8fa1584721019b81"}},{"ruleId":"D2","level":"warning","message":{"text":"loader._resolve_in_place (cognitive 30): loader._resolve_in_place has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 5 (10 pts), loops 1 (2 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":"nanobot/config/loader.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e85d745db2c7ed919129fe63e608fdb7baf2ccd52e1721686756ccdc7515b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockProvider._content_blocks (cognitive 30): BedrockProvider._content_blocks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, loops 2 (3 pts), ternaries 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"805fef9f6b8e4a84437f588a7a5fa5ab952e1613fceb13131d977d17b08e9fba"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.resolve_provider_route (cognitive 30): routing.resolve_provider_route has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 10 (13 pts), ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/routing.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad3b141646588dd91abf3cf7bee42bc529ca960c630b2fa9dbcc13defc4b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionState._apply_turn (cognitive 30): SessionState._apply_turn has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7, 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":"nanobot/session/state.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"062e8d181ccb926ab07306dd87969d2bfa38e07aa11cbb9ac46d95459ed69e78"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.provider_models_payload (cognitive 30): settings_models.provider_models_payload has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 10, ternaries 2 (3 pts), error handling 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, 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":"nanobot/webui/settings_models.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"23522a3e48240b64b50fb63ff1cb77b632733f2899cf34914b9bcde5caa8425d"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_result (cognitive 30): GatewayHTTPHandler._handle_webui_automation_result has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 6, ternaries 2 (4 pts), error handling 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"05911982d3d957a1c5237fb94037c9c0ecffa5b02d2b610f70838582fa1408b5"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerMenu.render (cognitive 30): PickerMenu.render has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 14). Of this number, 26 points are the body\u0027s own statements and 4 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":"tui/src/menus/picker-menu.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ddec25f5a1116081be25d8788d1f377792fa7d182953288e88de1268c40242"}},{"ruleId":"D2","level":"warning","message":{"text":"App.readShellRoute (cognitive 30): App.readShellRoute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10, ternaries 6 (9 pts), boolean chains 7, error handling 2 (4 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed37669c92c3dec73221ae304b2f3a9c36b31d7eda4056d31aed9c1ee0a8a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelPresetDrag.useModelPresetDrag (cognitive 30): useModelPresetDrag.useModelPresetDrag has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 6, loops 2, ternaries 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 30 points belong to 7 function literals inside it that branch (lines 51, 121, 86, \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":"webui/src/components/settings/models/useModelPresetDrag.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e7a90950ab6899117ff3ff5f8b4b698a2b9f04220b21636b90466c2f78978"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionInfoPopoverView.SessionInfoPopoverView (cognitive 30): SessionInfoPopoverView.SessionInfoPopoverView has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (14 pts), if/else 7 (9 pts), boolean chains 5, error handling 2 (nesting depth added 7). Most of this is not in the body itself: 13 of the 30 points are its own statements and the rest belongs to 8 function items inside it that branch (handleAction, handleEdit, detailPlaceholder, \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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c67da815e82960dcd4b03f00ba5a46b69fef22f77be7789bc1548f28c6c1b53"}},{"ruleId":"D2","level":"warning","message":{"text":"FindFilesTool._execute_sync (cognitive 29): FindFilesTool._execute_sync has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 3 (4 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (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":"nanobot/agent/tools/search.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22ea9efe50b408e29859d99c6e0b7fc84b676a0800fc38317d914d1580c0679"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellOutputFilter.feed (cognitive 29): ShellOutputFilter.feed has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 6, ternaries 1 (4 pts), 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":"nanobot/agent/tools/shell_output.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ef3933710b859b68713637658897c3239db291d7ecb6828318d9364579b381"}},{"ruleId":"D2","level":"warning","message":{"text":"remote.pair (cognitive 29): remote.pair has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 2 (4 pts), loops 1 (3 pts), boolean chains 2, error handling 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":"nanobot/cli/remote.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad2303dc3b1bcea9b0239a2888ea7e5ac0b46b5f02210a0b521f1f36a53270"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteSessionStore.append_history (cognitive 29): SqliteSessionStore.append_history has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (2 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed64282e9e114cbcef2d9420ec9e405fecc3b2ceec78fa5316f610a060a33607"}},{"ruleId":"D2","level":"warning","message":{"text":"update_worker._verification_child (cognitive 29): update_worker._verification_child has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 4, loops 2 (3 pts), error handling 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":"nanobot/update_worker.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380ac4e5dec946628ef61f576a06b6f9b6ec545bd37b28fedf80b6c92643cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api._mcp_server_config (cognitive 29): mcp_presets_api._mcp_server_config has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 11, ternaries 3, error handling 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd2dcde2f3b526175fdfa4dbbc07ca4808ca220366a61b0857fe1846aeb518c"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_action (cognitive 29): mcp_presets_api.mcp_presets_action has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (21 pts), error handling 1 (3 pts), ternaries 2 (3 pts), boolean chains 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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7e422efddf1e4108c68f8aa503988f24884edf9020638e1aedcae25e26edb7"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.oauth_provider_status (cognitive 29): settings_models.oauth_provider_status has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 7, error handling 3 (6 pts), if/else 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":"nanobot/webui/settings_models.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc89776f1d805d553fcf108c5fb5715ed36499e1f454070a00eaf1dfb492705"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-renderers.toolLabel (cognitive 29): tool-renderers.toolLabel has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 9 (10 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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c79d89af587312be164df2b4373672e666b0ddf54f75dc111737c07165ac8b9"}},{"ruleId":"D2","level":"warning","message":{"text":"MermaidBlock.MermaidBlock (cognitive 29): MermaidBlock.MermaidBlock has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 12, ternaries 7 (11 pts), if/else 6 (nesting depth added 4). Of this number, 16 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":"webui/src/components/markdown-diagrams/MermaidBlock.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9cb2c785180ab8a8925e753b6384e1021c9b2a23caf676face61b97c4ed2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsageCard.TokenUsageCard (cognitive 29): TokenUsageCard.TokenUsageCard has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10 (16 pts), boolean chains 8, loops 2 (3 pts), if/else 1 (2 pts) (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 14 belong to 6 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":"webui/src/components/settings/TokenUsageCard.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26c3fb9bc8dd418c36b2d14e544228be8b73cc174cf26e98e112ee4745fe860"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsSettings.ModelsSettings (cognitive 29): ModelsSettings.ModelsSettings has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 52 (97 pts), boolean chains 54, if/else 26 (38 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: one other method here (ModelsSettings.ModelsSettings::renderPresetEditor) 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a581811d47677612003cb20fb8fd07a4b2fa8dc10251cd1ff554b607349490a"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserNotificationSettings.BrowserNotificationSettings (cognitive 29): BrowserNotificationSettings.BrowserNotificationSettings has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, ternaries 7 (8 pts), if/else 6 (7 pts) (nesting depth added 2). Of this number, 21 points are the body\u0027s own statements and 8 belong to 4 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":"webui/src/components/settings/notifications/BrowserNotificationSettings.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bc259c1eb84590aa56d07fc195449d270d79e2a5dcc7cfa1b1c333e60defb4"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.AutomationEditDialog (cognitive 29): AutomationsSettings.AutomationEditDialog has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 7, if/else 3 (4 pts) (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 7 belong to 3 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dc7e4b31f8a9a63b98df6235ec1ddfabc6bb397881f3b2a4941ebacf00890a"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadShell.ThreadShell::composer (cognitive 29): ThreadShell.ThreadShell::composer has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 15 (23 pts), boolean chains 6 (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. This shape REPEATS in the file: one other method here (ThreadShell.ThreadShell) 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2bf3f4745e3b357fcb6d08e62511466c3a11068d230864f8768544c5e4e220"}},{"ruleId":"D2","level":"warning","message":{"text":"activity-timeline.projectOrderedTurn (cognitive 29): activity-timeline.projectOrderedTurn has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2, loops 2 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 6 belong to 3 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":"webui/src/lib/activity-timeline.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa6c6f1bd9ddd01152063dbd6b170cef2e63a074f6ba47f4ea67b876cc08a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientRunLedger.applyCommand (cognitive 29): ClientRunLedger.applyCommand has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (9 pts), boolean chains 3, match/switch 1 (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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d9453e312a63b43a73a078373aa5799e7e1ab056ca40d0a10b96e9b81c96a6"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard.run_onboard (cognitive 28): onboard.run_onboard has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), error handling 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":"nanobot/cli/onboard.py"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"683ebbe38e6dbb2ed5e087076ae8c9ac9b7aef8e6c7945a63ead795d6c18a069"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._assistant_blocks (cognitive 28): AnthropicProvider._assistant_blocks has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 5, loops 3 (4 pts), ternaries 1 (2 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"08030d75e2a6ee75a09be281c4bef7164cd7596650b361f0d30d9e57607a8c11"}},{"ruleId":"D2","level":"warning","message":{"text":"update_fallback.supervise (cognitive 28): update_fallback.supervise has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 5 (7 pts), boolean chains 6, loops 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/update_fallback.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"568a9c038674771ee5c030db37b0290c2250d7b84e9f9f396ee79ffd9dd532f2"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInstances._check (cognitive 28): RemoteInstances._check has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, loops 1 (3 pts), error handling 2, ternaries 1 (2 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":"nanobot/webui/remote_instances.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c559514cf7483ace85c4419fbf861835e28e670cba8161e31f5566573635f43c"}},{"ruleId":"D2","level":"warning","message":{"text":"pty_smoke.smoke (cognitive 28): pty_smoke.smoke has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, loops 3, error handling 1 (2 pts), ternaries 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/scripts/pty_smoke.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e69f0aa43f556b832059ee5b1730bf6ff5a70e15bbff93d7897ee6da025a00b"}},{"ruleId":"D2","level":"warning","message":{"text":"api.fetchSessions (cognitive 28): api.fetchSessions has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13 (14 pts), if/else 6 (7 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 415). 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":"tui/src/client/api.ts"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"617949cc7f5ad12742357e76d50d1b681c4d5f5762f9422e52df7ca33c30ae3f"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.handleMessage (cognitive 28): NanobotClient.handleMessage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 5, error handling 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2207d3d5f33270a544152a0171f33d121f9a03bdb68170e6372ce1b413dfa35c"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffViewer.render (cognitive 28): DiffViewer.render has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 11, if/else 3 (4 pts), loops 1 (nesting depth added 5). Of this number, 26 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":"tui/src/views/diff-viewer.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fffd05666e263966bb1750fc5763cb9e6efc8a0cea40660663ed87c0a051144"}},{"ruleId":"D2","level":"warning","message":{"text":"Transcript.prependHistory (cognitive 28): Transcript.prependHistory has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (7 pts), boolean chains 5, loops 1 (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 7 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1c756d1ae00859e796d33a79563434072254a527881d771bfb72ff2111201a"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationCalendar.CalendarEntryRow (cognitive 28): AutomationCalendar.CalendarEntryRow has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0012196bccc5930c8988bb69eb6446dc957e632a8527c2a7bc50236e1dfd9f1"}},{"ruleId":"D2","level":"warning","message":{"text":"useNanobotStream.useNanobotStream.applyPendingStreamEvents (cognitive 28): useNanobotStream.useNanobotStream.applyPendingStreamEvents has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 5, ternaries 2 (4 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4d8b66cc030f78f8969d52f589831bdda406f07051905abc5807e8071c9af1"}},{"ruleId":"D2","level":"warning","message":{"text":"subagent-tasks.mergeSubagentTasks (cognitive 28): subagent-tasks.mergeSubagentTasks has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (20 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 14). Of this number, 27 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":"webui/src/lib/subagent-tasks.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b278911505ae4b0e7fa3d7bb03dda71de6d8218dafa402f5f246aa378bd60d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.strip_malformed_tool_calls (cognitive 27): ContextGovernor.strip_malformed_tool_calls has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 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":"nanobot/agent/context_governance.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"6303d6b4313605b49c4400ea37595bbe2bcdcdc1834f97cc5d4e91a95e674069"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._process_message (cognitive 27): AgentLoop._process_message has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 12, if/else 9, ternaries 4 (6 pts) (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":"nanobot/agent/loop.py"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82a921368d83b3f448c7cfb4416f49c3718d0786546a1844787e08ac42371a"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnDelivery.complete (cognitive 27): TurnDelivery.complete has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 9, ternaries 2 (4 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":"nanobot/agent/turn_delivery.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e3978c54804a7beae0e4496feea178da1ac5d263ef20884c5966b1ad0f251b"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.onboard (cognitive 27): commands.onboard has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), error handling 1 (2 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":"nanobot/cli/commands.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85d4c5ff4856d2b172b83d71425bf631762697b6531cf573835d332ec1e60d9"}},{"ruleId":"D2","level":"warning","message":{"text":"update.update (cognitive 27): update.update has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, error handling 2 (3 pts), ternaries 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":"nanobot/cli/update.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b70c59e16c9bd88eb9a36779ceec50cf8d78a7304c372f296e71b0c82ead83d"}},{"ruleId":"D2","level":"warning","message":{"text":"optional_features.install_packages (cognitive 27): optional_features.install_packages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (7 pts), boolean chains 3 (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":"nanobot/optional_features.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1b5d6215a30af41db7a680cb9d96bf2fb978e27adce764bf1cd7d7104fb86b"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._convert_messages (cognitive 27): AnthropicProvider._convert_messages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (6 pts), boolean chains 3, 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a89850e40a93e16790f5988371d1ef239063055a3508576e263af3de7d4192"}},{"ruleId":"D2","level":"warning","message":{"text":"github_copilot_provider.login_github_copilot (cognitive 27): github_copilot_provider.login_github_copilot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 10, loops 1, ternaries 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc8c13d64c255acb31c1715d091409caa7b9b01fbcba4bdad175641196f8182"}},{"ruleId":"D2","level":"warning","message":{"text":"update_manager.read_manager_policy (cognitive 27): update_manager.read_manager_policy has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 6 (7 pts), boolean chains 6, error handling 2 (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":"nanobot/update_manager.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0353cfe7093d54c7b62aec62abc0b867ced7516e4efaa4bd2164260f87747f28"}},{"ruleId":"D2","level":"warning","message":{"text":"RecoveryCoordinator._recover_session (cognitive 27): RecoveryCoordinator._recover_session has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8, ternaries 4 (6 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":"nanobot/webui/recovery.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec7d1bb28e9b149eca16e84fedbddbb3bdaaf987bd3c990c7f8552d6ac2f240"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._client_projection_events (cognitive 27): transcript._client_projection_events has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 2, loops 1, ternaries 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":"nanobot/webui/transcript.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"344ae88f3fca136fc734baeae2fd49a82471622151f9cd913761dce1841d8608"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.splitCapabilityMentionSegments (cognitive 27): CliAppMentionText.splitCapabilityMentionSegments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 4 (7 pts), boolean chains 6, loops 1 (nesting depth added 7). Of this number, 26 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eca758ad751ba7675451ef0be0feead38c48a91e323f6f61a520d3f91ffbd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGallery.ImageGallery (cognitive 27): ImageGallery.ImageGallery has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 14 (16 pts), boolean chains 6, if/else 5 (nesting depth added 2). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 68, 57, 23, \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":"webui/src/components/ImageGallery.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b758d89e8a7998e7227fb650a905a8340bb3a6e6e858cf469203ed99e81719"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationSettings.ImageGenerationSettings (cognitive 27): ImageGenerationSettings.ImageGenerationSettings has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 10 (nesting depth added 6). Of this number, 24 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c598b1778559855ef655dd8f2db779360598a37f283f59cbe1cf90fd1af612"}},{"ruleId":"D2","level":"warning","message":{"text":"diff-selection.selectedDiffRows (cognitive 27): diff-selection.selectedDiffRows has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 4 (7 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":"webui/src/components/thread/activity/diff-selection.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4ca63ed7b7fc24e40c581c682f14fa5f9c70657260e52437e78b89fbd892ba"}},{"ruleId":"D2","level":"warning","message":{"text":"useNanobotStream.useNanobotStream.send (cognitive 27): useNanobotStream.useNanobotStream.send has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12 (14 pts), if/else 7, boolean chains 6 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 12 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a015ca11c8edac3ce2d44ff861e9ada12d321f5fe054218af139b0d0dd3796"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFileTool._read_office_doc (cognitive 26): ReadFileTool._read_office_doc has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 1 (2 pts), boolean chains 1, error handling 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"459606942404e95537de0774b6b9d058d80a33165a7cb44ac151a25588cd84f9"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._format_value (cognitive 26): onboard._format_value has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 6 (8 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":"nanobot/cli/onboard.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db8c6c3ddcbecbe9b479262a5caebb5b12cedfeb79f887fd33b9cb50ef05284"}},{"ruleId":"D2","level":"warning","message":{"text":"file_references.source_receipt (cognitive 26): file_references.source_receipt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 1 (3 pts), ternaries 3, boolean chains 2, loops 1 (2 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":"nanobot/file_references.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dba72f2d5323dc85aefcb608e49d76666162d0f91db50a5c3c2c3662e0f8d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing._extract_reasoning_summary_from_output (cognitive 26): parsing._extract_reasoning_summary_from_output has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (7 pts), boolean chains 4 (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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a127990646644a44ab7110768241e4d67874313a526a87969e8f2211244ad1a"}},{"ruleId":"D2","level":"warning","message":{"text":"jsonl_migration.migrate_jsonl (cognitive 26): jsonl_migration.migrate_jsonl has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (3 pts), loops 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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4496920ed6180733ce53868a6c74dfa7cc9f0abdb54e9b034e652e31da497115"}},{"ruleId":"D2","level":"warning","message":{"text":"GitStore.summarize_working_tree (cognitive 26): GitStore.summarize_working_tree has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (7 pts), error handling 3 (4 pts), boolean chains 2, 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":"nanobot/utils/gitstore.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0398a72ae5779792512c96c2349da86313b5fc801c8b7c97f63faa113ce4e1"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.estimate_message_tokens (cognitive 26): helpers.estimate_message_tokens has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 pts), error handling 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":"nanobot/utils/helpers.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89d7ba55d2e2fba1b474016b8391393366df416e8086b347f865005797667e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInstances.snapshot (cognitive 26): RemoteInstances.snapshot has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), ternaries 2 (4 pts), boolean chains 3, 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":"nanobot/webui/remote_instances.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb0779903eb2eba49de0ec2cd19b9f8b0ab62a778879e99af6291d22d8066db"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models._model_metadata_payload (cognitive 26): settings_models._model_metadata_payload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6, ternaries 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":"nanobot/webui/settings_models.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b578a273f59929b3aae35809310a0bbea0cdcfcab14a8ceb1f35ef67d03a2bc"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_agent_model_settings (cognitive 26): settings_models.update_agent_model_settings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, ternaries 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a78ed2171d6f5e3289f6350e43de86bc9029d6f80c2e188b38f19d26d06085"}},{"ruleId":"D2","level":"warning","message":{"text":"skills_marketplace._load_weekly_installs (cognitive 26): skills_marketplace._load_weekly_installs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49f38ac68ff061898ae6426eda1b3d63f73f2302193e8d5f41f42542ac4ae01"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.has_pending_tool_calls (cognitive 26): transcript.has_pending_tool_calls has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (22 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":"nanobot/webui/transcript.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d173eda1a5cd8097921efecec129db111f058783c227530919743a7fa4a093f6"}},{"ruleId":"D2","level":"warning","message":{"text":"QQConnectFlowView.QQConnectFlowView (cognitive 26): QQConnectFlowView.QQConnectFlowView has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 6, if/else 2, match/switch 1 (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 3 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":"nanobot/channels/qq/webui/QQConnectFlowView.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b770b366d1edfcc773566628818dace7503b0832b79e8e8f7809e2881dee3b89"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentTile.AttachmentTile (cognitive 26): AttachmentTile.AttachmentTile has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 9, if/else 2 (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":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bd05474d2f0f91b8c84ceeabc9bc08fb02bf7918c5abc68bfa5d06088540c1"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlock.CodeBlock (cognitive 26): CodeBlock.CodeBlock has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 9, if/else 6 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 12 belong to 7 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7010b73b4e91f539e8d8865342000f2c2a949f09a64e014d8b5e0b8db98b0b6a"}},{"ruleId":"D2","level":"warning","message":{"text":"PairingCodePopup.PairingCodePopup (cognitive 26): PairingCodePopup.PairingCodePopup has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 6, if/else 3 (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 3 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":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c90db0c23e70c435e2abb88ffaabe495850a6f1d701675be200cbc2c0b392ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsCatalogSettings.SkillsCatalogSettings (cognitive 26): SkillsCatalogSettings.SkillsCatalogSettings has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (18 pts), boolean chains 5, if/else 3 (nesting depth added 11). Of this number, 16 points are the body\u0027s own statements and 10 belong to 4 function literals 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a21dc478e32fcc06c4491fc0b65929d2e27eec22a46477f2d29a7b80614dd3f"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsageModelTrend.TokenUsageModelTrend (cognitive 26): TokenUsageModelTrend.TokenUsageModelTrend has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 6, if/else 3 (4 pts), loops 2 (nesting depth added 2). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 60, a function literal at line 134, spoken, \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":"webui/src/components/settings/TokenUsageModelTrend.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce7af30d222e71057ff7a8d5114b0f0e0d5d39609f208a3c4475801e3711759"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.ActivityTraceRow (cognitive 26): AgentActivityCluster.ActivityTraceRow has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 11 (21 pts), boolean chains 4, if/else 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b05a612cf52e0bae7acd0b38758a6ddeb2ab0d8beff5bc4a2190c812eca7aa"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._prepare_injected_input (cognitive 25): AgentLoop._prepare_injected_input has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5 (8 pts), boolean chains 5 (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":"nanobot/agent/loop.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f8b2544209e14ea613178b7bb279f6badc27c503218a4cfcbd249b6fb1975a"}},{"ruleId":"D2","level":"warning","message":{"text":"execution._execute_tool_call_inner (cognitive 25): execution._execute_tool_call_inner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), error handling 2, ternaries 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":"nanobot/agent/tools/execution.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ba44e804f01d87c44ea4e01b8b5a93b3002970368c95d63ec7696dba815dc5"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppManager._iter_artifact_candidates (cognitive 25): CliAppManager._iter_artifact_candidates has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 2 (5 pts), boolean chains 3, loops 2 (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":"nanobot/apps/cli/service.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a6ed90ee700c9af5dab22e1b460dece14338451918013c1b8e9b6a7f4dfef0"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._configure_providers (cognitive 25): onboard._configure_providers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (7 pts), error handling 1 (2 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":"nanobot/cli/onboard.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfda0c6e9b341cb47405e56ec3d456d6f3c5f5fd57f81f60d466c3cd2bf4279f"}},{"ruleId":"D2","level":"warning","message":{"text":"store._handle_pairing_subcommand (cognitive 25): store._handle_pairing_subcommand has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 4 (8 pts), loops 1 (2 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":"nanobot/pairing/store.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"045c4aaaa691405d70d98ef529aa980790f991521ba5e54019cf77cbb0f4f73e"}},{"ruleId":"D2","level":"warning","message":{"text":"AssemblyAITranscriptionProvider.transcribe (cognitive 25): AssemblyAITranscriptionProvider.transcribe has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 3 (5 pts), boolean chains 4, error handling 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":"nanobot/providers/transcription.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5b9c5f948ac3ecb387b010f5a2d43dcf53e0a039b204ce9456a34a3b27018"}},{"ruleId":"D2","level":"warning","message":{"text":"transcription._request_json_with_retry (cognitive 25): transcription._request_json_with_retry has cognitive complexity 25 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 3 (7 pts), ternaries 2 (6 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":"nanobot/providers/transcription.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b289bb971286c9d1e94329b7416ddbfd987530b17aa3603cd55daaba6b52d91f"}},{"ruleId":"D2","level":"warning","message":{"text":"jsonl_migration.finish_workspace_migration (cognitive 25): jsonl_migration.finish_workspace_migration has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (5 pts), loops 3, boolean chains 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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2ba8e0f13f6a1b391109c9562becc8f29baa9d97fede56b4f32e5e3ab8e5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"quick_validate._parse_simple_frontmatter (cognitive 25): quick_validate._parse_simple_frontmatter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, ternaries 1 (3 pts), 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":"nanobot/skills/skill-creator/scripts/quick_validate.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6d00c5cb858509d5eac81b1cd296df79f925b3ad8f5cb9a046a6c1cca10651"}},{"ruleId":"D2","level":"warning","message":{"text":"quick_validate.validate_skill (cognitive 25): quick_validate.validate_skill has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 4, error handling 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/skills/skill-creator/scripts/quick_validate.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"618a376f78de2266bf9c10b13ecb5ef19c2d85b6bfb0db7424c7b9876005dfc7"}},{"ruleId":"D2","level":"warning","message":{"text":"update_restart.run_restarts (cognitive 25): update_restart.run_restarts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (6 pts), boolean chains 3, 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":"nanobot/update_restart.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c502189cc4feec638a84732f2ca94c57cda254819904d421c8806eb6ff63beaa"}},{"ruleId":"D2","level":"warning","message":{"text":"automation_chats.automation_chats (cognitive 25): automation_chats.automation_chats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 7, ternaries 2 (3 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":"nanobot/webui/automation_chats.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b4148dfe104ba95fbb2ca3f31e877c40b24e3073ebe5a8f89557ffceeed47"}},{"ruleId":"D2","level":"warning","message":{"text":"history.fact_from_record (cognitive 25): history.fact_from_record has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 10, ternaries 1 (2 pts) (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":"nanobot/webui/history.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9c2e0b160af7e2ab2a0ce18585af6502e6e84838e5b88d4d08494f401e7337"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.login_oauth_provider (cognitive 25): settings_models.login_oauth_provider has cognitive complexity 25 (threshold 15). Drivers by points: error handling 8 (16 pts), if/else 5, boolean chains 2, 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff24669f7f1ffae13ddf1e2c3a17bf6e244c9aed195d652c7590b070ddd8b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._with_backfilled_user (cognitive 25): transcript._with_backfilled_user has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (19 pts), boolean chains 5, loops 1 (nesting depth added 14). 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":"nanobot/webui/transcript.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e604e3ddab40caf0b8fd3059d4bbf45508c754a26aad3bb656c3a627a57e0"}},{"ruleId":"D2","level":"warning","message":{"text":"attachments.uploadAttachments (cognitive 25): attachments.uploadAttachments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (7 pts), boolean chains 2, 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":"packages/client-events/attachments.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f4a82140ccfe7f1bb9adba72f58a773f69da0016eabba72504a1e6a518d60e"}},{"ruleId":"D2","level":"warning","message":{"text":"footer-hints.hintsFor (cognitive 25): footer-hints.hintsFor has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (15 pts), if/else 9, 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":"tui/src/views/footer-hints.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"534de84711caaa3a819016a6a41adc411bbbab262c6d75d59a69f3bd3d5f68be"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelValidationProgress.ChannelValidationProgress (cognitive 25): ChannelValidationProgress.ChannelValidationProgress has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11 (16 pts), boolean chains 7, if/else 2 (nesting depth added 5). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 127, 86, 93). 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":"webui/src/components/settings/channels/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"79897e26b779ae712dc6ec4d0e9841364fafa163ade233ab6e28db89802323bd"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsControls.RestartSettingsFooter (cognitive 25): SettingsControls.RestartSettingsFooter has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11 (15 pts), boolean chains 9, if/else 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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"198f9d43033c5e4bba4e87113a3a950ed605fad5f97e12b1d11892608757956c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.activityTraceEntries (cognitive 25): AgentActivityCluster.activityTraceEntries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 10). Of this number, 24 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b3d9c063143b34f3fa522bd5d08de6512530ee7168e814db7e6457a758c57"}},{"ruleId":"D2","level":"warning","message":{"text":"combobox.useComboboxNavigation (cognitive 25): combobox.useComboboxNavigation has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 9, if/else 2 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 10 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":"webui/src/components/ui/combobox.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c7e059c42b43b7eed726c7562ff0f1f0e11a664b5ebde4e9cb591cff8b245a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterImageGenerationClient.generate (cognitive 24): OpenRouterImageGenerationClient.generate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (3 pts), error handling 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":"nanobot/providers/image_generation.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a9230b4eb8055d0795928523a5b22bc833b19072e1a2d586fedf70b7efdc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiImageGenerationClient._generate_gemini_flash (cognitive 24): GeminiImageGenerationClient._generate_gemini_flash has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, loops 2 (3 pts), error handling 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":"nanobot/providers/image_generation.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a96f857dbb887b66093a4f0c294ed5089ff62ba1f6815e75abd984b93eb7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSettingsHandler.handle (cognitive 24): ModelSettingsHandler.handle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), error handling 3 (5 pts), boolean chains 3, ternaries 1 (2 pts) (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":"nanobot/webui/settings_models.py"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e36506b1d497e1048c641eed9ae0f645478a9cb2ed8b4a6bc5f7d5953ba127b"}},{"ruleId":"D2","level":"warning","message":{"text":"connection.sanitizeConnectionFailure (cognitive 24): connection.sanitizeConnectionFailure has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (18 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to one function item inside it that branches (collect). 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":"tui/src/client/connection.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"086df02e98799dd5c7eb5bb726e4da30eac81a72c3c0b5a4cb44c8b8deaffa0d"}},{"ruleId":"D2","level":"warning","message":{"text":"latex.renderLatexAsUnicode (cognitive 24): latex.renderLatexAsUnicode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 2, 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":"tui/src/rendering/latex.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ea0ed36899a2dbc4e5b746aa2dc8f483c7b916ad8880a2195a0ee057caf9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagramViewer.handleKey (cognitive 24): DiagramViewer.handleKey has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 6 (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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7093df9d2857c7639d4f742819bcd3eca98493311ab41f0f364bf2bc21f5c485"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsMarketplace.MarketplaceSkillRow (cognitive 24): SkillsMarketplace.MarketplaceSkillRow has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 14 (21 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1624eafab6c1eb0adef56989c26ae2748363643a5833375e9583a212fd172045"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.formatCronScheduleSummary (cognitive 24): AutomationsSettings.formatCronScheduleSummary has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 8, ternaries 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2095a55abaa6c2d5062e6217a7507bdff44c1adb0d2c6a0567a0e7bfb5f258"}},{"ruleId":"D2","level":"warning","message":{"text":"graph-canvas.paintGraph (cognitive 24): graph-canvas.paintGraph has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), ternaries 2 (4 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":"webui/src/components/thread/graph-canvas.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e9648438189abb7b69adf80843a414020e062b610ab44900a2b1123805420"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.MessageBlockMenu (cognitive 24): ThreadMessages.MessageBlockMenu has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 6 (7 pts), boolean chains 6 (nesting depth added 3). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 443, 542, 554, \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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cfeaa1b44e0b2b1724d07c4d6871aafd10f0d3d5cbe7a7d08d2c737f93a53f"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.currentActivityClusterIndices (cognitive 24): ThreadMessages.currentActivityClusterIndices has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb04bd360ad31cb590ba328af6a4e0d66dcf16878b23942069731e6ecd6910e"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.completedMessageBlocks (cognitive 24): ThreadMessages.completedMessageBlocks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, loops 4, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (flushGroup, a function literal at line 1065, a function literal at line 1083, \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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aed0ccc2e9389d6779d91bde8aec03719d692ad0eef815f5aebba7435835679"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceControls.WorkspaceAccessMenu (cognitive 24): WorkspaceControls.WorkspaceAccessMenu has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, ternaries 9, if/else 5. Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 775, 719, 721, \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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f07389d8af183840d84a31d751aecb2b8b722de24d2264b8fc7c457b3bf3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"useSandboxNotice.useSandboxNotice (cognitive 24): useSandboxNotice.useSandboxNotice has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 29, 26, 45). 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":"webui/src/components/thread/useSandboxNotice.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e4019b2d400cf03c98b4e6bf02172f01a6b6e551676b29be73b7b2d9fe8326"}},{"ruleId":"D2","level":"warning","message":{"text":"usePromptHistory.usePromptHistory.read (cognitive 24): usePromptHistory.usePromptHistory.read has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5 (9 pts), boolean chains 4, error handling 1 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 3 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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1df5dfbd49d371c239a6287db821d44f418deb13861269464ea8bf394bd500"}},{"ruleId":"D2","level":"warning","message":{"text":"ansi.applySgrParams (cognitive 24): ansi.applySgrParams has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 4, loops 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":"webui/src/lib/ansi.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa7060e2b598bb86036c11168615aa50f0bff9320f854f20ab09938fede5448"}},{"ruleId":"D2","level":"warning","message":{"text":"api.request (cognitive 24): api.request has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 3 (6 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 11). 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":"webui/src/lib/api.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"dada3f62180302eb9d5aa72dbbb3f152bf1d031a04f734cf37207524ab1d5b67"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.sendMessage (cognitive 24): NanobotClient.sendMessage has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11 (13 pts), if/else 6 (7 pts), boolean chains 4 (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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c449013b8d65768b8ba5202a4b9eeb5c6fd16bd1da8b52b12746c46011f3292"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.answerStreamIndex (cognitive 24): thread-event-projection.answerStreamIndex has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 8, 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4d2ecbe2c3e673517ddb084c89ab7490781de7b5f1c0445ed14e4ef994256f"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-groups.groupSessions (cognitive 24): chat-groups.groupSessions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 2 (5 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b54be317ce1ba32ee99174c099386d59092069d21b859e9503bf706bc41078"}},{"ruleId":"D2","level":"warning","message":{"text":"MyTool._inspect (cognitive 23): MyTool._inspect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, ternaries 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":"nanobot/agent/tools/self.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c1ab95609a2e6a3ef2c63cdc0e7cf1dad0da29d93517bab4c100070efa3403"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppManager.uninstall (cognitive 23): CliAppManager.uninstall has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9, ternaries 2 (4 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":"nanobot/apps/cli/service.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a7c8d766d9209d29f528457cfdb6124a18bdeeb8deb20171418f2ec7954a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._input_text (cognitive 23): onboard._input_text has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 3 (6 pts), ternaries 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":"nanobot/cli/onboard.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d90d505400db7adcb8a63df2d80eda3a461a139a4fba048ff71fc9f606eff96"}},{"ruleId":"D2","level":"warning","message":{"text":"context_graph.parse_context_graph (cognitive 23): context_graph.parse_context_graph has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/context_graph.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dc080176b1b52507fa9272aac884b7f5fd5170fd3e92a092a0adab79f15735"}},{"ruleId":"D2","level":"warning","message":{"text":"processes.spawn_process_tree (cognitive 23): processes.spawn_process_tree has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/execution/processes.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9f6d74c56fe3b8b2abc43147423d0321d8b8e7ea0e9ba9d3b0765f2ee110c8"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_codex_provider._parse_openai_codex_models (cognitive 23): openai_codex_provider._parse_openai_codex_models has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (11 pts), boolean chains 6, if/else 3 (5 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"45179201a4b38a33ebedbdbc9fea43d07e10ab165c585e6d15417d092d2471ca"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._extract_text_content (cognitive 23): OpenAICompatProvider._extract_text_content has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 1 (2 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37235d01b58363da47eaeb1636f91cba123c4f214494d9400ab9eabb791e313"}},{"ruleId":"D2","level":"warning","message":{"text":"transcription._post_stepfun_asr_with_retry (cognitive 23): transcription._post_stepfun_asr_with_retry has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (5 pts), ternaries 2 (5 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":"nanobot/providers/transcription.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c315f0a9f6e35ac654e6fa36a2bde3913c7d61999d132cfe23f753f31768c7"}},{"ruleId":"D2","level":"warning","message":{"text":"network.resolve_url_target (cognitive 23): network.resolve_url_target has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 4 (6 pts), boolean chains 3, 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":"nanobot/security/network.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9439bad7d5308331b0fadca86762874fa9c5cdfdcd3f8e3fbd75448f8e19c958"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionLocation._claim_workspace_namespace (cognitive 23): SessionLocation._claim_workspace_namespace has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 1 (2 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":"nanobot/session/location.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55fadaf30f742cadabdf0d423a5e5d9bf423855f4fdea5b52aeaf707ee94554"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery._checkpoint_tool_call_ids (cognitive 23): recovery._checkpoint_tool_call_ids has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (3 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":"nanobot/session/recovery.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe9792a65c0ffccea4b67c7bde62b52c50f99c53a5a0edc1955abeb08c7b756"}},{"ruleId":"D2","level":"warning","message":{"text":"update.update_installation (cognitive 23): update.update_installation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, error handling 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":"nanobot/update.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aee9189f675b4e1de95c0c8c3d692bed82b289e8d8f428b8e60276b576e05d"}},{"ruleId":"D2","level":"warning","message":{"text":"update_guidance.update_guide (cognitive 23): update_guidance.update_guide has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, ternaries 4 (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":"nanobot/update_guidance.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cf1b12c49f2a9b73255e88296a6550bb63f2272ea5c19bdd23a62edf8b4cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"RotatingTextOutput.write (cognitive 23): RotatingTextOutput.write has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, 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":"nanobot/utils/rotating_output.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bba21571813171f5b4ed47e8d90bbdfe38f81df1ef4ed83146d3c0de93ca781"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_misc_routes (cognitive 23): GatewayHTTPHandler._dispatch_misc_routes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (19 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (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":"nanobot/webui/ws_http.py"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac72136b06f3b843076b1c53cad386cf3b335dc192b5edf64cdeba4e6a52e24c"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.open (cognitive 23): NanobotClient.open has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 2, error handling 2 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 8 belong to 4 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca9d67057a953c2919138a8cda40b380070ce35bfb4b5569c95cb9973d7cb04"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.handlePaste (cognitive 23): NanobotTui.handlePaste has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4 (nesting depth added 8). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2012, 1997, 2008). 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":"tui/src/app/app.ts"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5caefd65303ddeb5bd8485e69ba8e0ac8e5607b5c8ba43f2b7a70bb5184852a8"}},{"ruleId":"D2","level":"warning","message":{"text":"FileActions.FileActions (cognitive 23): FileActions.FileActions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, ternaries 3 (nesting depth added 3). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 59, copy, a function literal at line 95, \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":"webui/src/components/FileActions.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"508f41a75283d0c596ccd894c1fb9e0558510753d619a086f2c2879ace6d4200"}},{"ruleId":"D2","level":"warning","message":{"text":"svg-image.typography (cognitive 23): svg-image.typography has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9c4f58d2827f470a2340da90f697c8a0420489e4221a6486ed913578e5b494"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSidebar.SettingsSidebar (cognitive 23): SettingsSidebar.SettingsSidebar has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 13 (18 pts), boolean chains 4, if/else 1 (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 3 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6522abe0e905b3b9e0be957fb6513964c2c5bd90ef36f404e1dd049da9bac4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogSkeleton.CatalogSkeleton (cognitive 23): CatalogSkeleton.CatalogSkeleton has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12 (17 pts), boolean chains 6 (nesting depth added 5). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 28). 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":"webui/src/components/settings/shared/CatalogSkeleton.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad79a2ddd5cd7a34ac732969364182adc0bd8e8f9a5ab315a5a81a442d9529fd"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalIsland.GoalIsland (cognitive 23): GoalIsland.GoalIsland has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12 (15 pts), boolean chains 4, if/else 4 (nesting depth added 3). Of this number, 18 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/GoalIsland.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11902e9941b70dd23af963c3b824f9cdf880381c9983f450fca796e5d5c7a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadShell.recentComposerRoundUsage (cognitive 23): ThreadShell.recentComposerRoundUsage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (6 pts), boolean chains 5, 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e5f431e6644a00195f4b63f8af602136fcf608331799ca925a6d87f8659f58"}},{"ruleId":"D2","level":"warning","message":{"text":"trace-activity-model.describeTraceLine (cognitive 23): trace-activity-model.describeTraceLine has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (8 pts), if/else 7 (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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a617ab9145513906964b2ab7f18e549506ea0eb509c24dfa01fa74916bcbd60a"}},{"ruleId":"D2","level":"warning","message":{"text":"useReconnectRuns.useReconnectRuns (cognitive 23): useReconnectRuns.useReconnectRuns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (nesting depth added 5). None of this is in the body itself: all 23 points belong to 3 function literals inside it that branch (lines 27, 54, 14). 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":"webui/src/hooks/useReconnectRuns.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b6eb9deefe114f77d2fe56a1c9be9d369a9a6653ee21fcae97ad0da920b8c6"}},{"ruleId":"D2","level":"warning","message":{"text":"nanobot-client.runObservation (cognitive 23): nanobot-client.runObservation has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 6, if/else 2 (3 pts), 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f433695e6bdb9374c66f07cd3349cd611fc1d8e292c82610a17e3c9285146c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._drain_injections (cognitive 22): AgentRunner._drain_injections has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (3 pts), error handling 2, 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":"nanobot/agent/runner.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3b691d65803e5ec79564c4be8d0840558f14e25182c9bb83fb64030abac253"}},{"ruleId":"D2","level":"warning","message":{"text":"_RefreshingOAuthClientProvider._handle_refresh_response (cognitive 22): _RefreshingOAuthClientProvider._handle_refresh_response has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2, error handling 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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f13857b28aa2a658714f0bdbc2915729b622c9dc67d293de5904de3624a7e2"}},{"ruleId":"D2","level":"warning","message":{"text":"turn_hooks.build_agent_turn_hook (cognitive 22): turn_hooks.build_agent_turn_hook has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 3 (5 pts), boolean chains 4, error handling 2 (4 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":"nanobot/agent/turn_hooks.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0945bd6d43fe45a7c284f31c7a24bc50fb4fd7f824e000a68547d479b5c2cea"}},{"ruleId":"D2","level":"warning","message":{"text":"terminal._maybe_print_interactive_progress (cognitive 22): terminal._maybe_print_interactive_progress has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7 (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":"nanobot/cli/terminal.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1024d0e9be62a14dd930eb033edc4965e5fa2b1d7cc2822e78f78ec67c6f84b"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateGoalTool.execute (cognitive 22): UpdateGoalTool.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, ternaries 1 (2 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":"nanobot/goal/tools.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24b074f89b9cba0ca985b4f83c133e0dba5c71aeeb27fc0eaf1ef2604c9ab48"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._handle_error (cognitive 22): AnthropicProvider._handle_error has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 4, boolean chains 3, error handling 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7599470dd96ebebdd4279fc9febd1d0d484d9a644f6cad6ec5e2c650e763203"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._parse_response (cognitive 22): AnthropicProvider._parse_response has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (6 pts), loops 2 (5 pts), ternaries 2 (4 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"812510947f2264de8e7e2e774c9787d95b261adbef0a2059c5b5325ce2454c87"}},{"ruleId":"D2","level":"warning","message":{"text":"images._prepare_copies (cognitive 22): images._prepare_copies has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (5 pts), boolean chains 2, error handling 1 (2 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":"nanobot/providers/images.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ce46136b3580b087a49ecdf9c8646a13c7629fa7d5c92262fd47c2e7d6a725"}},{"ruleId":"D2","level":"warning","message":{"text":"ReleaseFeed.stable (cognitive 22): ReleaseFeed.stable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, loops 2 (3 pts), ternaries 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":"nanobot/release_feed.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"37845d97d504cdfaf2950b6c62abd35180577c12237c97506986300d7525a6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery._checkpoint_prefix_is_complete (cognitive 22): recovery._checkpoint_prefix_is_complete has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, 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":"nanobot/session/recovery.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c6c171db69563afb75af483f84c24f8948cffb94dabbd75c515add55975823"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteSessionStore.save (cognitive 22): SqliteSessionStore.save has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 1, ternaries 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"391d0f5cfb42fb8a82f03d690c1a9f0dd3376f7c798844e536a69a504b639c9f"}},{"ruleId":"D2","level":"warning","message":{"text":"update._release_windows_launchers (cognitive 22): update._release_windows_launchers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (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":"nanobot/update.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"40deb91ea1609f2624e7edb12787a8d574bfb3a08929b7b41fbf9da95519996d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerSpec.read (cognitive 22): WorkerSpec.read has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, ternaries 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":"nanobot/update_worker.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9227d9860f08910a02e4d0d51fdd01e90c4e7e615453cfb5d8e51869c4c34388"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_thread_get (cognitive 22): GatewayHTTPHandler._handle_webui_thread_get has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, error handling 1 (2 pts), ternaries 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4773c2392744ad19b9da35227d9b6abe1334361c2fd73fcdba35e9a46d17c5ab"}},{"ruleId":"D2","level":"warning","message":{"text":"api.fetchSessionUsage (cognitive 22): api.fetchSessionUsage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, 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":"tui/src/client/api.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b675cd42310eef98322f6e0ddb0ae00b4908e250ade1bc1ab936f9fba409bf48"}},{"ruleId":"D2","level":"warning","message":{"text":"latex.mathSpanAt (cognitive 22): latex.mathSpanAt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7 (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":"tui/src/rendering/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be1aa88a005c04a298c54b5c43326580119c17153613e229ff144e906fb4cbe"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageMedia (cognitive 22): MessageBubble.MessageMedia has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 4 (5 pts), boolean chains 4, 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"50177d97239f55b71e02438fa75880a7412fd24338ed127cc46baf84b03565e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellRuntimeControl.ShellRuntimeControl (cognitive 22): ShellRuntimeControl.ShellRuntimeControl has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 7, if/else 3 (4 pts) (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 10 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":"webui/src/components/settings/system/ShellRuntimeControl.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9754007082b2fecf7ff83fd7d4e323546ecf73b2b8a1efa88e295cc0ceb84f54"}},{"ruleId":"D2","level":"warning","message":{"text":"useSettingsController.useSettingsController (cognitive 22): useSettingsController.useSettingsController has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 8, ternaries 1. Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 185, 208, 179, \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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc718b30c63fba9592522dca66bfce963832559b424b5a3add364742f089ba3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.CliAppMentionPalette (cognitive 22): ThreadComposer.CliAppMentionPalette has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 16 (22 pts) (nesting depth added 6). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 2629, 2596). 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83a4126809d3ca024e87263793197ef8777b4a891c88e9c5623fce7e46a26c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityStep.ActivityStep (cognitive 22): ActivityStep.ActivityStep has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 14 (15 pts), boolean chains 7 (nesting depth added 1). 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, 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":"webui/src/components/thread/activity/ActivityStep.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"72917308ef990bf6de63ec427a3cdf4c18cb367001f01fe127604485fd8e0cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"usePromptHistory.usePromptHistory (cognitive 22): usePromptHistory.usePromptHistory has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 5. Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 232, 94, 97, \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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdd75eb3f916a48dd3b40688eacd143bd55aafd9fad9c06213b1b0023f4a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.normalize_tool_result (cognitive 21): ContextGovernor.normalize_tool_result has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts), error handling 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":"nanobot/agent/context_governance.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d6b73bf0582823b683b7d985620d276720fa89ff1889cf9af99f683d59f686"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._persist_user_message_early (cognitive 21): AgentLoop._persist_user_message_early has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, ternaries 2 (4 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":"nanobot/agent/loop.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"49480cb4cb56841a06409cc6dd8fc33b59d673fd7cc1f94f0003356e4ccbb832"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.process_direct (cognitive 21): AgentLoop.process_direct has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6, ternaries 1 (2 pts) (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":"nanobot/agent/loop.py"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f203466fe8ea9c3a0a5e611be64f6ed108c1aee2b6915743c87078fbfb854d02"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockProvider._merge_consecutive (cognitive 21): BedrockProvider._merge_consecutive has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, loops 2 (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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ac74414149f24dcffebd49001d5ce7bfd8af1c9676d3cca77114bfac112896"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._ensure_gemini_thought_signatures (cognitive 21): OpenAICompatProvider._ensure_gemini_thought_signatures has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (6 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"050f5c6f75e7732a29c9340767a5b2249074916834bb7cc6db93c7dfe69494ff"}},{"ruleId":"D2","level":"warning","message":{"text":"xai_grok_provider._xai_hosted_tool_event (cognitive 21): xai_grok_provider._xai_hosted_tool_event has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, ternaries 2 (4 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d751392ef566a7495e4052631abd3c63626dc2d1a19f4778aac9f1eb91273ec"}},{"ruleId":"D2","level":"warning","message":{"text":"WebuiTurnRoutePolicy.__call__ (cognitive 21): WebuiTurnRoutePolicy.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, ternaries 3 (7 pts), if/else 4 (6 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":"nanobot/session/webui_turns.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cdd6c823a4045bef220fc401cb5dfb91edad078f006522e9942bc3226c3f59"}},{"ruleId":"D2","level":"warning","message":{"text":"package_skill.package_skill (cognitive 21): package_skill.package_skill has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/skills/skill-creator/scripts/package_skill.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ce3080aae72bdcd9ca2c882c13f7ef737e5027d6f21fdc1dd951338d19e8f1"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.normalize_mcp_preset_mentions (cognitive 21): mcp_presets_api.normalize_mcp_preset_mentions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), ternaries 1 (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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d012391c322e4043105fca940b05cd07b025b4fa5e91730df0094f63c68a24"}},{"ruleId":"D2","level":"warning","message":{"text":"media_api.serve_signed_media (cognitive 21): media_api.serve_signed_media has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 4 (6 pts), boolean chains 2 (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":"nanobot/webui/media_api.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c512c0ed66d1921d6f31d23320bbdc6d09c3c9b101411be82470e76ee418b96"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIOutboundDelivery.send_batch (cognitive 21): WebUIOutboundDelivery.send_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (5 pts), error handling 1 (2 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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6725da9aabb87e84758ab46fe16f6bd703c9602e3cbb311dbd68113432c03092"}},{"ruleId":"D2","level":"warning","message":{"text":"skills_marketplace._skillhub_skill (cognitive 21): skills_marketplace._skillhub_skill has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts), if/else 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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5ddfec4a399612291fc293d617844957ba4494820f41ea3f9afa73b7cd7c10"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_remote_instances (cognitive 21): GatewayHTTPHandler._dispatch_remote_instances has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, error handling 4 (5 pts), ternaries 1 (2 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":"nanobot/webui/ws_http.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de4e31b9165b8f08f6424ec05e747663db7ca8d3369b449ffde3d2c5dc5e343"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._sessions_list_payload (cognitive 21): GatewayHTTPHandler._sessions_list_payload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b22197e993eb98c8e0e03d290c66ebf0d19474f7c0311086332d4730236569a"}},{"ruleId":"D2","level":"warning","message":{"text":"latex.fencedCodeEnd (cognitive 21): latex.fencedCodeEnd has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (5 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":"tui/src/rendering/latex.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd07ee480b0226dcdd31094b797b03645f7b7283008335b88046944cd45dd33"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelAPIControl.ModelAPIControl (cognitive 21): ModelAPIControl.ModelAPIControl has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 6, if/else 4 (6 pts) (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 9 belong to 3 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":"webui/src/components/settings/models/ModelAPIControl.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d0439b237e7686f05fce11b328652bd27d2c8f3114a62147e62376a7911a21"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadingSettings.ReadingSettings (cognitive 21): ReadingSettings.ReadingSettings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, ternaries 4 (nesting depth added 2). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (commitDraft, a function literal at line 106, a function literal at line 26, \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":"webui/src/components/settings/overview/ReadingSettings.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c34a7966641275a1c6ecfab254ce5d9c0fb8009abfacbd63afd0f0b0c023fe"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.ToolsPanel (cognitive 21): McpManagementDialog.ToolsPanel has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (17 pts), boolean chains 2, if/else 2 (nesting depth added 8). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb082812c280d5697c18d4f22b147784a87950b0e97f9d6aa385a0417d65caf"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadHistoryStatus.ThreadHistoryStatus (cognitive 21): ThreadHistoryStatus.ThreadHistoryStatus has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (18 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":"webui/src/components/thread/ThreadHistoryStatus.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5508a1f17d6604a5935b6a7bc5e214f12398d8c5b7b428f0c563994c89d1a843"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneWorkbench.paneInDirection (cognitive 21): PaneWorkbench.paneInDirection has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (7 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f924bdbbf5c47ce3b79764253655e8d427f256a5a30fa455c09dc68ddf98d6a4"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrap.deriveWsUrl (cognitive 21): bootstrap.deriveWsUrl has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 5 (7 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":"webui/src/lib/bootstrap.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e0f30cee460aecaf8728327d75b99d44a410a07b502232c2c1637c9bdd923"}},{"ruleId":"D2","level":"warning","message":{"text":"model-request.composerUsageSnapshots (cognitive 21): model-request.composerUsageSnapshots has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, loops 2 (3 pts), ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 40, 33, 48). 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":"webui/src/lib/model-request.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3850eb3149efb257c965c6b667237ae7973c8a614bbb2ca97cb40782057524"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, error handling 2, ternaries 1 (nesting depth added 5). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 288, 265, 267, \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":"webui/public/sw.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8fb4663152028291143a9cdb53c6f424b9c8fbd0c24bbecb27523b16998e62"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._run_session_queue (cognitive 20): AgentLoop._run_session_queue has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 3 (7 pts), loops 2 (4 pts), boolean chains 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":"nanobot/agent/loop.py"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03d041b71f646e6e079fdd093b74fc9b6072563454d4f35713744d74e475f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner.run (cognitive 20): AgentRunner.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (7 pts), error handling 4 (6 pts), ternaries 3 (4 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":"nanobot/agent/runner.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec5b2bd85d851d07d30ad4fc53feb4cb98f3af090b6aa251b809542652f0f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentManager._create_task (cognitive 20): SubagentManager._create_task has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, error handling 1 (2 pts), ternaries 2 (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":"nanobot/agent/subagent.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c27b856181a1f36283ce2c6e7676a4f97f82c7fdddc70867d43e6b0f2482898"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProvider.reload (cognitive 20): MCPProvider.reload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, error handling 2 (3 pts), loops 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4565ccedb9b4df0c0fb72dbe5192d01f0492af5680243c59d356219e50d142"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp._normalize_nullable_schema (cognitive 20): mcp._normalize_nullable_schema has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 2 (4 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a683390b3ad26b44f9a9c7df5e2fe26ae519c3adbf3d82c3590cc8f1cfe512"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_oauth._stored_server (cognitive 20): mcp_oauth._stored_server has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4 (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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7cecad65f86bcb9b5619c1352be0b958758dd7ee092286e6a4c489e4a115c2"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_runtime._heartbeat_has_active_tasks (cognitive 20): gateway_runtime._heartbeat_has_active_tasks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdaca00ba5008967d878b9ec85f3566e448b231b0d0a96432ee402946484630"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_runtime._run_claimed_gateway (cognitive 20): gateway_runtime._run_claimed_gateway has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 1 (2 pts) (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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98b32f13b4368a88cad88f7f93739f001d415b82d5e47f5860132a12710c6eb"}},{"ruleId":"D2","level":"warning","message":{"text":"CronService._execute_job (cognitive 20): CronService._execute_job has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, error handling 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cron/service.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d45ffa3d9c256f71ecdd8e9032250f93beab72bfe49b86f7fcb5812752de3"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._merge_consecutive (cognitive 20): AnthropicProvider._merge_consecutive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 2 (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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"089dffed780a7b151f7741a3d80d09be0747a7ca3c78c525bf693f48b62d0925"}},{"ruleId":"D2","level":"warning","message":{"text":"FallbackProvider._should_fallback (cognitive 20): FallbackProvider._should_fallback has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, 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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2247fec1e56e2afd991432d4c19c04a12ab33e6037c419343c0ac40308957b"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphDecoder.graph (cognitive 20): GraphDecoder.graph has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (4 pts), boolean chains 3, ternaries 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":"nanobot/session/history_graph.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a7507c6d57df4968e3020cacb010f07ea48439714930b28c14c4f7cffb308"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatePlans.prepare (cognitive 20): UpdatePlans.prepare has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 1 (2 pts), ternaries 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":"nanobot/update_plan.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c6611aaeb1b35eb8eedccc82e02d887ba9d85fc5a74b1a1e4045337b67db3d"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.sanitize_surrogates_deep (cognitive 20): helpers.sanitize_surrogates_deep has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (6 pts), loops 2 (4 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":"nanobot/utils/helpers.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a32f511d02917cd4ba754ac208c906d93c5571f1972742b3b31046fe4d50e1"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.find_legal_message_start (cognitive 20): helpers.find_legal_message_start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), ternaries 1 (4 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":"nanobot/utils/helpers.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"053d4f9368e83471555219e87bf72c0a1480f4bfe5c2560256227ee0916cdd90"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_test_action (cognitive 20): mcp_presets_api.mcp_presets_test_action has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, ternaries 5 (6 pts), boolean chains 3, error handling 3 (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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a3ee6da541f5ee96f6f1b443ca440f377a6c09d9dbc2126846969c972c7c52"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIOutboundDelivery._message_payload (cognitive 20): WebUIOutboundDelivery._message_payload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (3 pts), boolean chains 2, 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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eeca41e7cc081016f53738551d37611e67a8272a40c1f1dd89ef15d47f857a5"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities._image_generation_provider_rows (cognitive 20): settings_capabilities._image_generation_provider_rows has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 7, 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87929a54b4b117264bfcdc61cbe425ef68e0983dd50af34b4df8311a9a5eba7"}},{"ruleId":"D2","level":"warning","message":{"text":"sidebar_state._clean_workbench (cognitive 20): sidebar_state._clean_workbench has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, ternaries 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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd5f49c24ce491ad022ccbf7c9844505a3549b3581c719654792a079997168a"}},{"ruleId":"D2","level":"warning","message":{"text":"ssh_process.ssh_error (cognitive 20): ssh_process.ssh_error has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"nanobot/webui/ssh_process.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ec108d5f0a975d7f2d99f82aff99e737ed173873efb3a01f91e03bc493cb11"}},{"ruleId":"D2","level":"warning","message":{"text":"ws_http._parse_automation_update (cognitive 20): ws_http._parse_automation_update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 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":"nanobot/webui/ws_http.py"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ea1478ba88231f9cd3ea51c4e10031a0cc07d1da1e4ec8060c3a7f2b04792e"}},{"ruleId":"D2","level":"warning","message":{"text":"MermaidBlock.sync (cognitive 20): MermaidBlock.sync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 5, ternaries 2, error handling 1. Of this number, 11 points are the body\u0027s own statements and 9 belong to 3 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":"tui/src/rendering/mermaid/block.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc0a745f0efcdf59afbc987a8215d7135e9d665488acc8006abe2f9c429c6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"svg-image.drawingValue (cognitive 20): svg-image.drawingValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 7). None of this is in the body itself: all 20 points belong to one function literal inside it that branches (line 158). 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50a37dd3366e6e4cf152e4956ff907f266483db3a5b4ef4d7fab53e017564ed"}},{"ruleId":"D2","level":"warning","message":{"text":"pele.worker.onmessage (cognitive 20): pele.worker.onmessage has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 6 (7 pts), boolean chains 2, error handling 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":"webui/src/components/markdown-diagrams/pele.worker.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"60739b9bc6372b5a8f9c5ef7cb5de8cbbb497ab052ab010e5e8232fc23e0e27c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelPairing.ChannelPairing (cognitive 20): ChannelPairing.ChannelPairing has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (5 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). None of this is in the body itself: all 20 points belong to 11 function literals inside it that branch (lines 35, 43, 78, \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":"webui/src/components/pairing/ChannelPairing.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3447bf6a5a180754f55e8148ff36ce581c43408c7f4684c539a38b35b5fa1029"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.ActivityTraceTimeline (cognitive 20): AgentActivityCluster.ActivityTraceTimeline has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3, boolean chains 2 (nesting depth added 4). Of this number, 10 points are the body\u0027s own statements and 10 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7c86496da1f13de9ed33d5ba791dc034624c83518e0f410819ffe6c6e294cb"}},{"ruleId":"D2","level":"warning","message":{"text":"graph-presentation.createGraphPresentation.update (cognitive 20): graph-presentation.createGraphPresentation.update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3, ternaries 1 (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":"webui/src/components/thread/graph-presentation.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0782fce4885a5ad9603347f6b912ccad36911853bbc6cc650cc7006d5e917fe3"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.projectToolActivity (cognitive 20): thread-event-projection.projectToolActivity has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (15 pts), boolean chains 3, if/else 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fad252f566c2923b04afd520a3626c840a1c31d0d7125e2b244bc3d6aea8e7e"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-groups.limitGroups (cognitive 20): chat-groups.limitGroups has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/chat-groups.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"def8172a2e7e58eb8f3bf500ab5f1cab706184a2f547898190d4e31a22cb198e"}},{"ruleId":"D2","level":"warning","message":{"text":"latest-thread-request.fetchLatestWebuiThread (cognitive 20): latest-thread-request.fetchLatestWebuiThread has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 81, a function literal at line 57, finish, \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":"webui/src/lib/latest-thread-request.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca07df3576ca747afbee015c8a2f109a476d15a00c608272f0d4f3dbf04a669"}},{"ruleId":"D2","level":"warning","message":{"text":"remark-tex-math.tokenizeMathFlow (cognitive 20): remark-tex-math.tokenizeMathFlow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, ternaries 5 (7 pts), boolean chains 4 (nesting depth added 2). None of this is in the body itself: all 20 points belong to 7 function items inside it that branch (content, contentStart, afterOpen, \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f9ce5074a58da4541f3819e39a7fbeebb50838e489619679811987f51ff948"}},{"ruleId":"D2","level":"warning","message":{"text":"imageEncode.worker.sniffImageMime (cognitive 20): imageEncode.worker.sniffImageMime has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8 (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":"webui/src/workers/imageEncode.worker.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7b6becd0239749d4d5acc781590f82e1f0b5cd4c368184df0cdcfc434ac8b2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.run (cognitive 19): AgentLoop.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 4 (8 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":"nanobot/agent/loop.py"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"9726c6b311179c92584801b1d4c8af270a776cc14f9c07d247faf346c53eadde"}},{"ruleId":"D2","level":"warning","message":{"text":"model_runtime._override_key (cognitive 19): model_runtime._override_key has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (3 pts), ternaries 2 (3 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":"nanobot/agent/model_runtime.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cac831a4582c69dcb6f8ccde52c30949799f83c1cfdba30e17232ef1de4513"}},{"ruleId":"D2","level":"warning","message":{"text":"CronTool._parse_schedule (cognitive 19): CronTool._parse_schedule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 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":"nanobot/agent/tools/cron.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"06276e671d7ec747a1e2e93af076bc2673c4b1e5e41e8d06984399a2d77a4046"}},{"ruleId":"D2","level":"warning","message":{"text":"CronTool._update_job (cognitive 19): CronTool._update_job has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 pts), boolean chains 2, error handling 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":"nanobot/agent/tools/cron.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f9a600cf4128a222911803ddcdd9102d2c20ffc13df528fac718e3feb9ebf2"}},{"ruleId":"D2","level":"warning","message":{"text":"_ExecSession._watch_timeout (cognitive 19): _ExecSession._watch_timeout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (3 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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6f4be885077afbfb946e0ed237d6d42c955ad4098bbd6db7f1eae354671e78"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchTool._search_olostep (cognitive 19): WebSearchTool._search_olostep has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, error handling 3, loops 1 (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":"nanobot/agent/tools/web.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d5757a5b2f88dfceba2e4eea3776ca1a3691d849e23bf8bcde56493b601042"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSearchTool._search_exa (cognitive 19): WebSearchTool._search_exa has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, error handling 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":"nanobot/agent/tools/web.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"56129d5f8f5306a7fbffdfb2ddf17c0bdef0dd63b703ab6da611e96e800e7413"}},{"ruleId":"D2","level":"warning","message":{"text":"_macos_dock._serve (cognitive 19): _macos_dock._serve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (5 pts), loops 3 (5 pts), ternaries 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":"nanobot/cli/_macos_dock.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"41142ad6c781065d67ba980daa03b374a3b71259204d4a85c98452fab3c3b3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"tui_launcher.launch_tui (cognitive 19): tui_launcher.launch_tui has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (5 pts), boolean chains 2, ternaries 2 (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":"nanobot/cli/tui_launcher.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c0322a29b5940c700f3d058f52fa46ddc3335dccbb7e11d62cb87768b46072"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._build_kwargs (cognitive 19): AnthropicProvider._build_kwargs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd4c91296f21136aa8b61aa4971ffc21f887f1b64d8a5ee6b65ba3668908867"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockProvider._assistant_blocks (cognitive 19): BedrockProvider._assistant_blocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 2 (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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aed0f67f7d899a1e07e29171e2777b78599648d961c3deccff28bafa749a98"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockProvider._parse_response (cognitive 19): BedrockProvider._parse_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8, 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e703eea8dc7386584a67077fa59ddc1736c2397c1dbc3db6b31d8cf4357bfb69"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionState._submit (cognitive 19): SessionState._submit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 1 (2 pts), ternaries 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":"nanobot/session/state.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2a8e029ef91ef167dd1be825917bf8afbbcfad8defbc5589f338ddce051a03"}},{"ruleId":"D2","level":"warning","message":{"text":"skills_api._install_options (cognitive 19): skills_api._install_options has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (6 pts), boolean chains 2, 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":"nanobot/webui/skills_api.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c376e6d8959a16e9790d32ae1fc8df2213ebadca9b1b3f0e10f618b2911c6f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._compact_completed_stream_deltas (cognitive 19): transcript._compact_completed_stream_deltas has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (5 pts), boolean chains 2, 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":"nanobot/webui/transcript.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99918ad475277e92fcdae1d7b78c359792a84b69925cb2dad49fd0a8ebbd103"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._session_user_event (cognitive 19): transcript._session_user_event has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 2, error handling 1 (2 pts) (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":"nanobot/webui/transcript.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c38dad243c4553950e40ed22cb216eee81e3ff288fbee9a3d36f2610e15322e"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_session_delete (cognitive 19): GatewayHTTPHandler._handle_session_delete has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"2775b8495c1158f3d8839b55b4040c048e328b4ca77911b6ac47364ff79d255c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._serve_static (cognitive 19): GatewayHTTPHandler._serve_static has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, error handling 2 (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":"nanobot/webui/ws_http.py"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf029fe1c5b90ee50c673ac4aad9b72bd7bdc7701458405331b2919bcf16b8"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagramJobs.start (cognitive 19): DiagramJobs.start has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (6 pts), boolean chains 2, error handling 1 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 1 belongs 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1950867528f76aa5c4ac6c03301bbb9d5ebc3fe31fcfd5d9567f5fba60acde"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagramViewer.paint (cognitive 19): DiagramViewer.paint has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 3. Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 213, 224, 227). 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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e593c4431c433ec31a6cc007908bcff87b0211e80aeb2bd2036a12e871fae4b"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.handleComposerContentChange (cognitive 19): NanobotTui.handleComposerContentChange has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 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":"tui/src/app/app.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d9df5cb63965597e02fddbeb83bf3cceac0db19c97a3cd30cf9f99f1c3d180"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHHostPicker.SSHHostPicker (cognitive 19): SSHHostPicker.SSHHostPicker has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 2 (4 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 21, 46, 41, \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":"webui/src/components/remote/SSHHostPicker.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cdf38e1e71b43226e67463d7eaa2acbe88b8ca5140db9feaf9cbfacbdab4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions.runProviderOAuth (cognitive 19): useModelSettingsActions.useModelSettingsActions.runProviderOAuth has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3 (5 pts), boolean chains 4, ternaries 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"410e5abc23851079b2f7558813d8c2a196e79bbb5b4102bf811eeeee344198b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelControls.ProviderPicker (cognitive 19): ModelControls.ProviderPicker has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 6, if/else 4 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 5 belong to 3 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, 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbf7f7e8122b4374ad42c35389e52175ea496b9c56ee08ba474c34ad02e0da3"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationRunAtPicker.AutomationRunAtPicker (cognitive 19): AutomationRunAtPicker.AutomationRunAtPicker has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3, ternaries 3, match/switch 1. Most of this is not in the body itself: 7 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 157, navigate, a function literal at line 67, \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":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccc4272117ab03c2ee6253b79cdbe2eabd3b594aa04c86a35a80482bf2bbf70"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantSelectionAction.AssistantSelectionAction (cognitive 19): AssistantSelectionAction.AssistantSelectionAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, ternaries 5 (7 pts), boolean chains 5 (nesting depth added 2). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 53, 79, 113, \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":"webui/src/components/thread/AssistantSelectionAction.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9df78adc96b23f8c2974def419c36afa7086db940d04e4ab50537eedb873b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextInspector.ContextInspector::content (cognitive 19): ContextInspector.ContextInspector::content has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, ternaries 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":"webui/src/components/thread/ContextInspector.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b026cc47344e3433b7a8b3abb7837d2228fa081c43a5070eb4f35ff5194532"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.SlashCommandPalette (cognitive 19): ThreadComposer.SlashCommandPalette has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 2775). 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd996d969d4e909a04aa3e872844eda89c3e0927f5a4dc33c66a383af5f98542"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditRow.FileUnifiedDiff (cognitive 19): FileEditRow.FileUnifiedDiff has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (9 pts), boolean chains 7, if/else 3 (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 9 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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b767062ddfbc9f0493065fbf05b30d8277a89702ab3fa2df625241c7be6e8a6"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMotionCoordinator.observeScroll (cognitive 19): ThreadMotionCoordinator.observeScroll 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da7c991adf106328ae870e8dd9dc9f9547ad12954a1485538cc631e0e186804"}},{"ruleId":"D2","level":"warning","message":{"text":"content.FilePreview (cognitive 19): content.FilePreview has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (17 pts), boolean chains 2 (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":"webui/src/dev/gallery/content.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7df105f1609d5378766ed7d2d3e921de3d8e75694e9ab9e10e0a279ac09dee"}},{"ruleId":"D2","level":"warning","message":{"text":"useSessions.useSessions.refresh (cognitive 19): useSessions.useSessions.refresh has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 2 (4 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 8). 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 57, 69, 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":"webui/src/hooks/useSessions.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"367c1a1681ad08c4f88bdeebbc5ad0c8267298018ee7d0ac5f34021e97a256bb"}},{"ruleId":"D2","level":"warning","message":{"text":"model-request.reconcileModelRequest (cognitive 19): model-request.reconcileModelRequest has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 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":"webui/src/lib/model-request.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"40820c974f883d04206d83f1e895c2f3d0f5cc52f22449610daebf08f23264ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadTranscript.registerInput (cognitive 19): ThreadTranscript.registerInput has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 5, if/else 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad6fa653b296569e18578ad6a5bc5c1cda55fabca499a4243b524d7ce5c7eda"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIBuildHook.initialize (cognitive 18): WebUIBuildHook.initialize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 2, error handling 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":"hatch_build.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1208a603e22dd8ad09211ff4ffa157c8cdbabe626f5988712bd8ed814fece7b6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.__init__ (cognitive 18): AgentLoop.__init__ has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), ternaries 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":"nanobot/agent/loop.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be42e94a17569717f2a08c47f2476643bc2171a22eab1fa9c596efc7260e5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsLoader._discover_skills (cognitive 18): SkillsLoader._discover_skills has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, 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":"nanobot/agent/skills.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2519f3dec8b0495cff22101570843ad25ca7b24f8470e4dbd58fda82fa3ff398"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsLoader._build_skills_summary (cognitive 18): SkillsLoader._build_skills_summary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 2 (3 pts), ternaries 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":"nanobot/agent/skills.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1961c7196504e1913beefa822cfe5b29f10ffc671c8625e3987e964e6edd40"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentPage.scan (cognitive 18): ContentPage.scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 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":"nanobot/agent/tools/_search_content.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fff08f8c0df6643e31c67375ac7ff6800a8d045d52fd93b39b3a0599cafde1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentPage._append_match (cognitive 18): ContentPage._append_match has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 7, boolean chains 2, 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":"nanobot/agent/tools/_search_content.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0c35e34dca8052aaaa67fcc826596e39fee229717a8e510d446f114f1b9a7f"}},{"ruleId":"D2","level":"warning","message":{"text":"execution.execute_tool_calls (cognitive 18): execution.execute_tool_calls has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 4 (5 pts), error handling 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":"nanobot/agent/tools/execution.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3895590ac7f2c9c987cba47fd00c1ec1b9e0ab361a4939024ee1f5a9284b8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"_RefreshingOAuthClientProvider.async_auth_flow (cognitive 18): _RefreshingOAuthClientProvider.async_auth_flow has cognitive complexity 18 (threshold 15). Drivers by points: error handling 5 (11 pts), if/else 1 (3 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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dfc07e36a8e91eab760358f692579a3c32deca443f8eff33264625d9b89ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadSessionTool.execute (cognitive 18): ReadSessionTool.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (5 pts), boolean chains 3, error handling 1 (2 pts) (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":"nanobot/agent/tools/sessions.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"749017ba6fc0cdc00c91648e4584bd6b7c139c4301197fb6dca738819ea5c89a"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_runtime._deliver_to_channel (cognitive 18): gateway_runtime._deliver_to_channel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 3 (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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344cb3ad21541382ca675844e1192967225137621b108ee593a3a29b745737e"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._get_field_type_info (cognitive 18): onboard._get_field_type_info has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 1 (2 pts), loops 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":"nanobot/cli/onboard.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f697228bc8757b0e880cf7cf223821235c212768dd44c4d45527fabab07895"}},{"ruleId":"D2","level":"warning","message":{"text":"data_access._reservation (cognitive 18): data_access._reservation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, error handling 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/data_access.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"185bb6a8571f2e76e612f8a88dd0c86346865d2448816c451e4ed147a6a1b030"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_codex_provider._codex_error_response (cognitive 18): openai_codex_provider._codex_error_response has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 5, if/else 3 (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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d3d12dd6b95b32395a2a75910537e0b41729046f14278bbd589374d98138ec"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatStreamAccumulator.add (cognitive 18): _ChatStreamAccumulator.add has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, loops 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"105c0cfea8c711354bb38c557dafe64299d5712d4ebda1507238e2617643b47c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._extract_error_metadata (cognitive 18): OpenAICompatProvider._extract_error_metadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 1 (3 pts), ternaries 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"5540ba6d0f1bef20d6041543f402459458037afa672ed88115e55fe0a058d36e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_compat_provider._extract_tc_extras (cognitive 18): openai_compat_provider._extract_tc_extras has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2ec2c15524ca3d567d90462f1ec4bcc34ad4daa0946daf316988572000c8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"sandbox_launcher.resolve_sandbox_launcher (cognitive 18): sandbox_launcher.resolve_sandbox_launcher has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 2, error handling 1, ternaries 1 (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":"nanobot/security/sandbox_launcher.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e695332cf74ae484c3ffa5a1c6d06946245193f03c1c59b9e47fd055660266"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery.pending_followups (cognitive 18): recovery.pending_followups has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 3 (6 pts), boolean chains 3, 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":"nanobot/session/recovery.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"da42f8283832191477dd58fc304c16353cbaca36a15524ba0dcf8e92e65443cd"}},{"ruleId":"D2","level":"warning","message":{"text":"update_fallback.restore_service (cognitive 18): update_fallback.restore_service has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (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":"nanobot/update_fallback.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e13b74ba67579742ac5874acc1585f30860335ab5f397a64ada821801c22817"}},{"ruleId":"D2","level":"warning","message":{"text":"update_jobs._prepare_wheels (cognitive 18): update_jobs._prepare_wheels has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2, ternaries 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":"nanobot/update_jobs.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"87928dff74806411f49b94f86017d11ff640d28ec8c7fa839751ba1de3831265"}},{"ruleId":"D2","level":"warning","message":{"text":"update_plan.inspect_installation (cognitive 18): update_plan.inspect_installation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, error handling 1 (3 pts), ternaries 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":"nanobot/update_plan.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a688a8a2163f860c07ef2217c68529a6a62bf346247451a03690c26ef6626b0"}},{"ruleId":"D2","level":"warning","message":{"text":"update_stop._prepare_gateway_stop (cognitive 18): update_stop._prepare_gateway_stop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, error handling 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":"nanobot/update_stop.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d3632947256d24422bca3f52d1cc6185795434e84eebc0ceb5ae683f69d8ad"}},{"ruleId":"D2","level":"warning","message":{"text":"McpOAuthManager._payload (cognitive 18): McpOAuthManager._payload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, error handling 1 (2 pts), ternaries 1 (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":"nanobot/webui/mcp_oauth_api.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa39f9dc01b739a39867271e81fa0f4be7fcb71ed0ffa1af3e07f915e756e102"}},{"ruleId":"D2","level":"warning","message":{"text":"RecoveryCoordinator.scan (cognitive 18): RecoveryCoordinator.scan has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 2 (4 pts), error handling 1 (2 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":"nanobot/webui/recovery.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eed80cb990346ab71f60baf3df062a521fd8151f76a75a3431be9a1f66d0072"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_system.save_channel_config_values (cognitive 18): settings_system.save_channel_config_values has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2, ternaries 1 (2 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":"nanobot/webui/settings_system.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"151ac54d0c66828d76a76a24bc1102a14e2e9a4bcaecacfc5a95ff248133280c"}},{"ruleId":"D2","level":"warning","message":{"text":"star_prompt.update_star_prompt (cognitive 18): star_prompt.update_star_prompt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/star_prompt.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"30701dc77861709fb6fb164b6f7a8a5a0fbada18af722fc90c5a81afa750cb09"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._transcript_turn_signature (cognitive 18): transcript._transcript_turn_signature has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 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":"nanobot/webui/transcript.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e91a804e643c5e67eb1b0a8b18dbf9a609140f8e2da3e778ad04b7ddafa0530"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_resolved (cognitive 18): GatewayHTTPHandler._dispatch_resolved has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 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":"nanobot/webui/ws_http.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff891ab3a6e7871a805ab760eeac3318c726bac7bb213c0821ee0734a65977d1"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_local_trigger_action (cognitive 18): GatewayHTTPHandler._handle_local_trigger_action 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":"nanobot/webui/ws_http.py"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecb575c9754e057038f46c93750c97d9f000fbef6a21b58e8127c144d8d1337"}},{"ruleId":"D2","level":"warning","message":{"text":"ws_http._parse_automation_schedule (cognitive 18): ws_http._parse_automation_schedule has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, ternaries 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":"nanobot/webui/ws_http.py"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4227af57865ef9daf2210a2e9ceb36d44a09e0cc357ff1045775195a3ad7a35c"}},{"ruleId":"D2","level":"warning","message":{"text":"conpty_smoke.smoke (cognitive 18): conpty_smoke.smoke has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, loops 2, ternaries 2 (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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"154b3b61851dd163005cc0129b99c719fdf6b92cf2147a393f5824ca8aab8452"}},{"ruleId":"D2","level":"warning","message":{"text":"text.outlineDiagramText::collect (cognitive 18): text.outlineDiagramText::collect has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 2 (7 pts), if/else 4 (6 pts), boolean chains 4, 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. This shape REPEATS in the file: one other method here (text.outlineDiagramText) 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":"tui/src/rendering/mermaid/text.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd4efa780e3b2532110d2686ddb4013e835b09deb7b292bf0b6cac8dfbadaec"}},{"ruleId":"D2","level":"warning","message":{"text":"sw.self.addEventListener(\u0022fetch\u0022) (cognitive 18): sw.self.addEventListener(\u0022fetch\u0022) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 288, 265, 267, \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":"webui/public/sw.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2361b3f6770e5724e1fb33d66f50f5cb8646b686f2bf2cf35169ebe7fec39c44"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.countActivity (cognitive 18): AgentActivityCluster.countActivity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e4e7d0e84098f04d28f7dc6e30e9a6e751b5a4462af4024524cbce65b777fd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.CliRunRow (cognitive 18): AgentActivityCluster.CliRunRow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (14 pts), boolean chains 4 (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 (AgentActivityCluster.McpRunRow) 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca65f773f9b24d1f95ec70dd0ac86700fe1d942cbf44f7430407399192828f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.McpRunRow (cognitive 18): AgentActivityCluster.McpRunRow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (14 pts), boolean chains 4 (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 (AgentActivityCluster.CliRunRow) 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d63af0b987886d48eeed4d12d2e5c7b4b26513a43612d59a61dc35003482738"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPresetBadge.PresetPill (cognitive 18): ModelPresetBadge.PresetPill has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (11 pts), boolean chains 6, if/else 1 (nesting depth added 2). 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: 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"798ce2079e247fbdbf6e56082689fba561b42fe6e66969da4a4bcfb168397008"}},{"ruleId":"D2","level":"warning","message":{"text":"RecoveryNotice.RecoveryNotice (cognitive 18): RecoveryNotice.RecoveryNotice has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 6, if/else 4 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 5 belong to 3 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":"webui/src/components/thread/RecoveryNotice.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"503ebbdc69418dd80b7fbf08c74beb33bd58b4132291ebf1154c2f6d32cb7ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.ComposerInlineReferenceOverlay (cognitive 18): ThreadComposer.ComposerInlineReferenceOverlay has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 4, if/else 2 (nesting depth added 5). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 2500). 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"70215a274908c5d95d983e14294b88c0290be560d555cf961ff92e55139f2f16"}},{"ruleId":"D2","level":"warning","message":{"text":"sidebar-panel.SidebarPanelContent (cognitive 18): sidebar-panel.SidebarPanelContent has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (11 pts), boolean chains 5, if/else 2 (nesting depth added 2). 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: 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":"webui/src/components/ui/sidebar-panel.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"180c968635b461b15157c40a634333b7e22b2c597341db7a9e281abc69524d3f"}},{"ruleId":"D2","level":"warning","message":{"text":"api.fetchSubagentTasks (cognitive 18): api.fetchSubagentTasks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (6 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":"webui/src/lib/api.ts"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e316127b07431f2e0a4f78bb6f988ed860f1ba72b3a915f4898ec7b7ead324"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientRunLedger.canApplyCanonical (cognitive 18): ClientRunLedger.canApplyCanonical has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc1e4130bdf0e4aa7283e9c46b07cf39b85db0bf2057289b239f516d11c0e0"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.findStreamingAssistantIndex (cognitive 18): thread-event-projection.findStreamingAssistantIndex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a5d6ac5326f29bc3d508b234942b3d5f8abd3ad54c040778c6436a7eb6c7c3"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown-streaming-blocks.parseMathAwareMarkdownBlocks (cognitive 18): markdown-streaming-blocks.parseMathAwareMarkdownBlocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 3 (4 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":"webui/src/lib/markdown-streaming-blocks.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72eb0f6d8931e95f679a2d38024d990333fb0f3220b79f7ec2687e97dd3af5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextBuilder._load_bootstrap_files (cognitive 17): ContextBuilder._load_bootstrap_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, loops 1, ternaries 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":"nanobot/agent/context.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd94bf9dda90aad7e4074af46d8743a9487e83b1a75a868e59c6e7d725d0c21c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.strip_placeholder_assistant_messages (cognitive 17): ContextGovernor.strip_placeholder_assistant_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (2 pts), boolean chains 1, 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":"nanobot/agent/context_governance.py"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab44282f69b2744a56ea8a7492e311e7e5050a665b2d304a38d98f377f43cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._aclose_unlocked (cognitive 17): AgentLoop._aclose_unlocked has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/loop.py"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"832035eef242265fe028dc91f4d4847e96684727ed111a3f23034dc29650e415"}},{"ruleId":"D2","level":"warning","message":{"text":"plugins.enabled_agent_plugin_skill_documents (cognitive 17): plugins.enabled_agent_plugin_skill_documents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 1 (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":"nanobot/agent/plugins.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3be26dbe1d205a2f58500e142960f7bf452e28f85e73b5911eaf55d38551d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProgressHook.on_tool_execution_event (cognitive 17): AgentProgressHook.on_tool_execution_event has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 2 (5 pts), ternaries 2 (5 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":"nanobot/agent/progress_hook.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"294c9fa1e0d5f8024ba667d35d8450a97a8551e09b397ee63ee1e8a1221fbc64"}},{"ruleId":"D2","level":"warning","message":{"text":"_TextRange._feed_normalized (cognitive 17): _TextRange._feed_normalized has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 1 (4 pts), loops 1 (2 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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"449f762b5308a9fe195e6577a7ddb128238143265944273ff26bde469e944d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"MyTool._validate_json_safe (cognitive 17): MyTool._validate_json_safe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 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":"nanobot/agent/tools/self.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44c3e49749c7aa43f33f21ac8fb6e1a4a643217ddce423730b97015b41d1c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._extract_absolute_paths (cognitive 17): ExecTool._extract_absolute_paths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1, error handling 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f925b7f4b15d8963d904d121c9079c7e7be7e18460eb89a04360964688417553"}},{"ruleId":"D2","level":"warning","message":{"text":"desktop_tui._connection (cognitive 17): desktop_tui._connection has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), error handling 1, loops 1 (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":"nanobot/cli/desktop_tui.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"57eec1d9aaf0a6e3e5adc1a384c4ccf3fa510e104e6c508209269ab065c576bd"}},{"ruleId":"D2","level":"warning","message":{"text":"entry._dispatch (cognitive 17): entry._dispatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 3 (4 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":"nanobot/cli/entry.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b206975e59329d7ef57c4ea0e898d8a40adcbd78f2bc05942e7f89f571ef74f"}},{"ruleId":"D2","level":"warning","message":{"text":"loader._migrate_config (cognitive 17): loader._migrate_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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":"nanobot/config/loader.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae957897c9ea4bf47d80b9330cfc9febfe9356e044ce442ae7fce89b0641d32"}},{"ruleId":"D2","level":"warning","message":{"text":"github_copilot_provider._parse_github_copilot_models (cognitive 17): github_copilot_provider._parse_github_copilot_models has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (5 pts), boolean chains 4, 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8c01457b6879c9c167abf6b940bd3830d5f5d254b7265254277a14da67b6f9"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthModelCatalog.get (cognitive 17): OAuthModelCatalog.get has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (2 pts), ternaries 1 (2 pts), error handling 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":"nanobot/providers/oauth_catalog_cache.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16dee0091503dbca580fa0167f2e98b11bcaec82e303559be4f78552854e324"}},{"ruleId":"D2","level":"warning","message":{"text":"converters.convert_user_message (cognitive 17): converters.convert_user_message has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 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":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c825f7c562c61fcc856e87de0a1c85694afee5beda84dde316af2d516db74a"}},{"ruleId":"D2","level":"warning","message":{"text":"SDKStreamingHook.after_iteration (cognitive 17): SDKStreamingHook.after_iteration has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 3, if/else 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":"nanobot/sdk/streaming.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e7302dd173e42454d9f6b6a22d6c96754284d9832201c70c3bc39d0ccd1685"}},{"ruleId":"D2","level":"warning","message":{"text":"webui_turns._title_inputs (cognitive 17): webui_turns._title_inputs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, 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":"nanobot/session/webui_turns.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d841e23217cb10213542ba76f95a5fad6c54711c1f5f3718f6a622b53ff1809"}},{"ruleId":"D2","level":"warning","message":{"text":"progress_events.build_tool_event_finish_payloads (cognitive 17): progress_events.build_tool_event_finish_payloads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (4 pts), boolean chains 3, 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":"nanobot/utils/progress_events.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4229c47671b29999528a922b2193565fcc38127f8315cafcd59d27e8b886bb22"}},{"ruleId":"D2","level":"warning","message":{"text":"build.iter_webui_source_files (cognitive 17): build.iter_webui_source_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (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":"nanobot/webui/build.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d0775ab221632baf66ee70cbddba4846799c54ed80994b1a6ddcb29f5d8234"}},{"ruleId":"D2","level":"warning","message":{"text":"cli_apps_api.normalize_cli_app_mentions (cognitive 17): cli_apps_api.normalize_cli_app_mentions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), ternaries 1 (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":"nanobot/webui/cli_apps_api.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2616b905e6cffacf43fb49d813d481d7064c68b957e569f2c74e4b4e5671e287"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIOutboundDelivery.send_delta (cognitive 17): WebUIOutboundDelivery.send_delta has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2 (3 pts) (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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504d6192cf8af1a27f984d6a600b337a9fbd52cd870b157e0f389cb0a3c3bd0"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHMaster.arguments (cognitive 17): SSHMaster.arguments has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 3 (6 pts), loops 1 (2 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":"nanobot/webui/remote_mux.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"909cb9ff54b9524c5237a6301c989267966d35c06cb61e0c31a695d1644e66b5"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProxy._handle (cognitive 17): RemoteProxy._handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/remote_proxy.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4948c42012a2ce07acfc83ec8f45c9a289f203ae65d74ad5d0eefe96f5d3c14a"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models._model_row_payload (cognitive 17): settings_models._model_row_payload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 1 (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":"nanobot/webui/settings_models.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b69b422470f8a0e611d9726e50060ddb7db98e3f62851f135c57baa81097e79"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.create_model_configuration (cognitive 17): settings_models.create_model_configuration has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e69443dfe915c5e67635eeff68da476246129281a38e928d31b381d45cbff06"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.build_user_transcript_event (cognitive 17): transcript.build_user_transcript_event has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5 (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":"nanobot/webui/transcript.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"4200e2040dfb17fb23d30e2ce82d49c89e40cef8047437412a55cbfdef4cbc75"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.prepareChat (cognitive 17): NanobotTui.prepareChat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, ternaries 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75205df4f3c9876666375c67e501a61ce6c100734e9f8398076a75bb697cb83"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatList.WorkbenchTabHeader (cognitive 17): ChatList.WorkbenchTabHeader has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11 (13 pts), boolean chains 2, if/else 2 (nesting depth added 2). Of this number, 15 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, 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c2a84b8393caaa1d5d6715ceb83b9c5f1ed7c51fb4b9b0afe204d412353f18"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewPane.PreviewPane (cognitive 17): PreviewPane.PreviewPane has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 2. Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 65, a function literal at line 56, a function literal at line 30, \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":"webui/src/components/PreviewPane.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7176ab332046b8b2ea82839dd1b4939d1d24ada5ae9a59448cdec8c235fb499"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.SidebarActionButton (cognitive 17): Sidebar.SidebarActionButton has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 3 (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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"254fbaec58c3cb2f90c7349463163a184c9170e70c949446c2b0a014a2f14a76"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarTopicRename.SidebarTopicRename (cognitive 17): SidebarTopicRename.SidebarTopicRename has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, ternaries 3, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 58, save). 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":"webui/src/components/SidebarTopicRename.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5630ac06d15ae92fcf5c7dd30884cc9edadece48b30c13d88bc3626886ebde0b"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHHostPickerView.SSHHostPickerView (cognitive 17): SSHHostPickerView.SSHHostPickerView has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 5 (6 pts), if/else 1 (nesting depth added 1). 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, 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":"webui/src/components/remote/SSHHostPickerView.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"230a549e404fea46394810b22a4f1f6dc0beea45f191db1537f6aad6447d5c53"}},{"ruleId":"D2","level":"warning","message":{"text":"useCapabilitySettingsActions.useCapabilitySettingsActions.saveWebSearch (cognitive 17): useCapabilitySettingsActions.useCapabilitySettingsActions.saveWebSearch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 1, ternaries 1. 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, 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":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c73d2100a179458c3f747097849d027bd135c5de557071934705ed257e96f03"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningEffortPicker.ReasoningEffortPicker (cognitive 17): ReasoningEffortPicker.ReasoningEffortPicker has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 3. Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 59, 84, 97, \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":"webui/src/components/settings/models/ReasoningEffortPicker.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a226e29d650e20346c0663ae4444faca85c94466d9924c684709481c726310"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelControls.ProviderPickerIcon (cognitive 17): ModelControls.ProviderPickerIcon has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 3, if/else 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"79000a30b373b4ca90d4cc02ad9eeb583dabd055bbecad764dec951fd6e1fdc2"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFeature.SettingsFeature (cognitive 17): SettingsFeature.SettingsFeature has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 4 (nesting depth added 3). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 76, a function literal at line 45, changeOpen, \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":"webui/src/components/settings/shared/SettingsFeature.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c003fb5d418eec63fb490943c76bcda6384b3265c8b4561aee5b5fc33e6b04e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.AgentActivityCluster (cognitive 17): AgentActivityCluster.AgentActivityCluster has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 5 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a51dbc503e92b5d7bab22f9fccc03117a6428d2c2353676a21ae03ce8247d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentTaskDock.TaskTree (cognitive 17): SubagentTaskDock.TaskTree has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 5, if/else 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 224, 225, 246). 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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7e8e07486125eb6338a187e813c4595e7b222d3a86b335a2bcf4d815869aaf"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.scrollAnchorsForUnits (cognitive 17): ThreadMessages.scrollAnchorsForUnits has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (5 pts), ternaries 4 (5 pts), if/else 2 (4 pts), boolean chains 3 (nesting depth added 4). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 968, 993). 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05c0a2840ce1d301eef1a12d56df6368ab7960a59f9e255eeff4c7d96416f77"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadViewport.visibleHistoryUnit (cognitive 17): ThreadViewport.visibleHistoryUnit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (5 pts), loops 2 (5 pts), ternaries 1 (4 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa2c519d6dd4683d34f213e52591f0f7eb1cda2d9077d49c1ae95670a750cad"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericToolRun.activityIcon (cognitive 17): GenericToolRun.activityIcon has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/GenericToolRun.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a98b631abe7f7088b89fb279e6a95ac457d8f3dc3ee5ffc6660b0c941889ec5"}},{"ruleId":"D2","level":"warning","message":{"text":"generic-tool-model.parseGenericToolTrace (cognitive 17): generic-tool-model.parseGenericToolTrace has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (7 pts), boolean chains 5, if/else 4 (5 pts) (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 4 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ac705b975847a059f7d7a8b0d8aa24e13f6e2345bfe8ff4e5955f639ac97ba"}},{"ruleId":"D2","level":"warning","message":{"text":"web-search-model.textCandidates (cognitive 17): web-search-model.textCandidates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), 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":"webui/src/components/thread/activity/web-search-model.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d43578ef508ad717ba2718148a72f515bf458cf625f176a6f3c1bdf6871c7"}},{"ruleId":"D2","level":"warning","message":{"text":"model-preset.toModelBadgeInfo (cognitive 17): model-preset.toModelBadgeInfo has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (7 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":"webui/src/components/thread/model-preset.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dac05cbda0e20e64e6a0fb7b658de735377bd85517e3a59bd4d35e8826042b"}},{"ruleId":"D2","level":"warning","message":{"text":"loaded-message-search.findLoadedMessagePreview (cognitive 17): loaded-message-search.findLoadedMessagePreview has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (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":"webui/src/lib/loaded-message-search.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2292f120564bb1067639fc7c234dfa7fe335d0c30b325a14d53eaad62d4a002a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.summarize_provider_compaction (cognitive 16): ContextGovernor.summarize_provider_compaction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 1 (2 pts) (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":"nanobot/agent/context_governance.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"68265605c9514a63dd781778da7c9768428704473ee226193ec9e830c78f8661"}},{"ruleId":"D2","level":"warning","message":{"text":"plugins._stdio_cwd (cognitive 16): plugins._stdio_cwd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 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":"nanobot/agent/plugins.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"789aaf1ee82544a66d1b8c2166a535adb718a8aa6dd4d28685fc57f4740d513e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._response_input_ids (cognitive 16): AgentRunner._response_input_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, 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":"nanobot/agent/runner.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a23aebc2ad7faeeb63b21a04e5667e057741b16996b3d2c80583d09cf7645c"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentManager.run_inline (cognitive 16): SubagentManager.run_inline has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (4 pts), boolean chains 2, error handling 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":"nanobot/agent/subagent.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"574f3e8f29b67d04d8962d71e8c768e037eb3c511ecbd0715d764d396f4e2114"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationTool._provider_client (cognitive 16): ImageGenerationTool._provider_client has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 2. 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":"nanobot/agent/tools/image_generation.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38849fbd803eb04d4796ccd1a03f6682fc3ad8bedea74c57244e79008679f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProvider.connect (cognitive 16): MCPProvider.connect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), error handling 2, 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, 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"982d5b4f652eb6d942a8ae96abeed532372a964cb6acfe0ab128ef587fd9816f"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthStorage._snapshot_from_entry (cognitive 16): MCPOAuthStorage._snapshot_from_entry has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 6, boolean chains 4 (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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85a10df7d90d382dbef1bd4ddeeae2ab081eb339d9a893a347a13183aa5d33e"}},{"ruleId":"D2","level":"warning","message":{"text":"MyTool._modify (cognitive 16): MyTool._modify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/self.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b0bc8102f5c046b4dae70c25927ee8bb781215c7ae6e50d0674678b215c5e5"}},{"ruleId":"D2","level":"warning","message":{"text":"service._console_script_distribution (cognitive 16): service._console_script_distribution has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 2 (4 pts), boolean chains 3, 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":"nanobot/apps/cli/service.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae31d6128bdba026b3b7be747139a1089c4545aa0da704bf335fd7f963a56bf"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.agent (cognitive 16): agent.agent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 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":"nanobot/cli/agent.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecba3995058c89119beeee59b41e58631ba23b7db781f98afa80a0a5d2548775"}},{"ruleId":"D2","level":"warning","message":{"text":"agent._run_classic (cognitive 16): agent._run_classic has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 2 (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":"nanobot/cli/agent.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a465347f2c3c34d85eacef78cb25fa6a5a8c0ca11de8186021a6e135dad54a0"}},{"ruleId":"D2","level":"warning","message":{"text":"desktop_tui.main (cognitive 16): desktop_tui.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (3 pts), boolean chains 2 (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":"nanobot/cli/desktop_tui.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7aafb006c197f6c9d68de3f644570ea838920ae3caf95a7a9679e7840e4549"}},{"ruleId":"D2","level":"warning","message":{"text":"onboard._show_summary (cognitive 16): onboard._show_summary has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), loops 4, if/else 2 (3 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":"nanobot/cli/onboard.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba6a06226781fa7d78207362aaad7727cd5c6a7b9a2d7175229ff418208a07a"}},{"ruleId":"D2","level":"warning","message":{"text":"tui_launcher._download_release_tui (cognitive 16): tui_launcher._download_release_tui has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 3 (4 pts), boolean chains 2, error handling 2, ternaries 1 (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":"nanobot/cli/tui_launcher.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d550438d2f77ca8faaff49f870b799405a5455c7c05ef3a1c564782de2de78c"}},{"ruleId":"D2","level":"warning","message":{"text":"loader._missing_env_issues (cognitive 16): loader._missing_env_issues has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (6 pts), boolean chains 2 (nesting depth added 5). 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":"nanobot/config/loader.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b2656e8b5746d39488f9ace2a77d444259cb92464ffd5884ce99761cc5b6c7"}},{"ruleId":"D2","level":"warning","message":{"text":"CronService.update_job (cognitive 16): CronService.update_job has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 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":"nanobot/cron/service.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca08a14970ba496003698abce5303a41c9b2020cf1c4ce33eb9e2978626608e"}},{"ruleId":"D2","level":"warning","message":{"text":"service._validate_schedule_for_add (cognitive 16): service._validate_schedule_for_add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 2 (5 pts), boolean chains 4 (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":"nanobot/cron/service.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fdb9de8f56dd21b0aa766e99af8aa5385df21590a8d6be36313f44f1aaef47"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayRuntime._claim_current_process (cognitive 16): GatewayRuntime._claim_current_process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, ternaries 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":"nanobot/gateway/runtime.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b43430dffdeddfdd51b7fe1a8015f2df6ce3c69baa56a6d9f396e3aaef370b"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime._gateway_health_ready (cognitive 16): runtime._gateway_health_ready has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, error handling 2, ternaries 2 (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":"nanobot/gateway/runtime.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4e9a87981c652342e02b85596e426ba35b7a0d19fb5befb1759bb03fbb7933"}},{"ruleId":"D2","level":"warning","message":{"text":"images._inline_images (cognitive 16): images._inline_images has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/images.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcfd11696603896063e473712951da1fb496d6413ddefaa8da8d30ecd6c75aa"}},{"ruleId":"D2","level":"warning","message":{"text":"errors.is_unsupported_feature_error (cognitive 16): errors.is_unsupported_feature_error has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 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":"nanobot/providers/openai_responses/errors.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec7d7fe08f7a2bf9277b65a363ca82daa3400d5abacf1b49f7a5e5e00d8b66a"}},{"ruleId":"D2","level":"warning","message":{"text":"manager._text_preview (cognitive 16): manager._text_preview has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 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":"nanobot/session/manager.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae56bc7a573eb413d94b85144c61bbbe42a653bd446b767e6eab4494196af87"}},{"ruleId":"D2","level":"warning","message":{"text":"webui_turns.maybe_generate_webui_title (cognitive 16): webui_turns.maybe_generate_webui_title has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 2 (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":"nanobot/session/webui_turns.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e9415f919c46c20750b275c5197a196927ed4ac5e438f7588f421979dc99ed"}},{"ruleId":"D2","level":"warning","message":{"text":"update_fallback.preserve_program (cognitive 16): update_fallback.preserve_program has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 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":"nanobot/update_fallback.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9824adf1d9ae8879dbc6ffeb0494d14fd76a1dce957c8ac48459ef138b7a961"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatePlan.valid_plan (cognitive 16): UpdatePlan.valid_plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 2 (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":"nanobot/update_plan.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"01645a84d48ad652f7e032401b2fd3400ba9e28110e6b8db696e57202b4bf22e"}},{"ruleId":"D2","level":"warning","message":{"text":"update_process.run_preparation_child (cognitive 16): update_process.run_preparation_child 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":"nanobot/update_process.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8511cfcc77831a6a506b3b87bd42388fb6e06c3da322ec4f1ffb8a29d53d1aba"}},{"ruleId":"D2","level":"warning","message":{"text":"RotatingTextOutput._rotate (cognitive 16): RotatingTextOutput._rotate has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (5 pts), if/else 4 (5 pts), ternaries 2 (5 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":"nanobot/utils/rotating_output.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"be95bfc7df471f10921ce931792d9cdb19e46789c251fcf5dd4b7c6a950ba0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"http_utils.accepts_gzip (cognitive 16): http_utils.accepts_gzip has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 1 (4 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":"nanobot/webui/http_utils.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cb31b246c889d4dbddf6111353ba21eccca5b58df930bd9161d6e3d884f279"}},{"ruleId":"D2","level":"warning","message":{"text":"nanobot_features_api.nanobot_features_action (cognitive 16): nanobot_features_api.nanobot_features_action has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, 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":"nanobot/webui/nanobot_features_api.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9ae3c990ff4e49dba71ce8d0257123b219a6cbc960a79a7f16d336ebb00e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"outbound_wire.project_notification (cognitive 16): outbound_wire.project_notification has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 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":"nanobot/webui/outbound_wire.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc415568cf8dbd3e0971debccc9dbca030f68c760bc423f336ccc988bf430c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Tunnel._stream (cognitive 16): Tunnel._stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, error handling 3, loops 2, ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/remote_ssh.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b100a74d6c7a22911b173099342a3c6cab3969ef7c6181c06f5de807208849"}},{"ruleId":"D2","level":"warning","message":{"text":"request_settings.validate_request_config (cognitive 16): request_settings.validate_request_config has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (6 pts), loops 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/request_settings.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1009f3f8188db29a677f4b0f6c605f14c4a95b18572afcb8d4e411f2cf872f"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models._provider_config_updates (cognitive 16): settings_models._provider_config_updates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, error handling 1 (2 pts), loops 2 (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":"nanobot/webui/settings_models.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b058d22fd1ac9c00dfdb90134fc64237611c3cc244b53764f6af4dc39cebdcd0"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models._provider_settings_rows (cognitive 16): settings_models._provider_settings_rows 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":"nanobot/webui/settings_models.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523c1b7c0aa17876bcbc6652347404b8554807eaf290a3e514eff4374f44c88"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.model_settings_payload (cognitive 16): settings_models.model_settings_payload has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (6 pts), loops 2, if/else 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"965f06c9d925c271a56707b3a6e9a19ba1b85d3edca8c078172c44e025dd03a4"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.complete_oauth_provider (cognitive 16): settings_models.complete_oauth_provider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, error handling 3 (4 pts) (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":"nanobot/webui/settings_models.py"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"655030727a6150d1d8170803192a7fcc883864961e2dc193f1a27c650e07b271"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_system.update_agent_system_settings (cognitive 16): settings_system.update_agent_system_settings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 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":"nanobot/webui/settings_system.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba7142a8870f2d888f42ed028c8278a1e21836fff10d9cdf141bac6f6aeaca9"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.normalize_session_mentions_metadata (cognitive 16): transcript.normalize_session_mentions_metadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, ternaries 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":"nanobot/webui/transcript.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf17e59ec868575af8bb8643ab0483adcfd69e8acbe0f8b8e26e41b3adc17ed"}},{"ruleId":"D2","level":"warning","message":{"text":"latex.validMathStructure (cognitive 16): latex.validMathStructure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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":"tui/src/rendering/latex.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1e1d08bc866834c436fbbbf1f7a369226f909b92d1881030ea5bf98360af2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Transcript.userMessageContent (cognitive 16): Transcript.userMessageContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 2 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc82bdf1650b9b53624c089a5818f077bc47b1c0019a36e3133bc8e681b53f2"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.CliAppMentionToken (cognitive 16): CliAppMentionText.CliAppMentionToken has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (CliAppMentionText.McpPresetMentionToken) 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6546e265f519e36b535bb1d0b8dc4bc0fc54c17e79055fc23835b6416c843d"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.McpPresetMentionToken (cognitive 16): CliAppMentionText.McpPresetMentionToken has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (CliAppMentionText.CliAppMentionToken) 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c8965e465aee11c14db5f152b4661e696b62a4c0cd1535a845ecd2d53e236f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageLightbox.ImageLightbox (cognitive 16): ImageLightbox.ImageLightbox has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 4, ternaries 3. Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 53, 43, 72, \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":"webui/src/components/ImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32b3a60f88aea90bf04124111ce947def34c51298850eba026b4c195dd43209"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateGuide.UpdateGuide (cognitive 16): UpdateGuide.UpdateGuide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), ternaries 5 (6 pts), boolean chains 3, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (check). 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":"webui/src/components/UpdateGuide.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2b366bc8cddd4c6ebcb7fbc1681044a033035ace31ffef93fd385fca880b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSidebar.MobileSettingsNavigation (cognitive 16): SettingsSidebar.MobileSettingsNavigation has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10 (11 pts), boolean chains 5 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 3 belong 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bd61af7d69c8df72bab467e08e2f7fa7a119f402bff3fd80439d5f162ad429"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewSettings.OverviewValueLogo (cognitive 16): OverviewSettings.OverviewValueLogo has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 2, if/else 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dddd60a359e4cb3eca776a3a5debeee3e3f0f1da73b9337709f8af3fc97e76"}},{"ruleId":"D2","level":"warning","message":{"text":"IdleCompactionControl.IdleCompactionControl (cognitive 16): IdleCompactionControl.IdleCompactionControl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), boolean chains 5, ternaries 4 (5 pts) (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 31, 54, 24, \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":"webui/src/components/settings/system/IdleCompactionControl.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2cf7328c4e9763e47b9ea189cb419e9e34bd62050ecab9e0e7d9ddbede7453"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.foldSessionChecks (cognitive 16): AgentActivityCluster.foldSessionChecks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cc3a277585d86002d6f0855b6e13b058d9e093f73ae90080aad3115af6bc27"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.collectCliRuns (cognitive 16): AgentActivityCluster.collectCliRuns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 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. This shape REPEATS in the file: one other method here (AgentActivityCluster.collectMcpRuns) 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6e49b79563d513e3b41dce04288f682039d65ad3dbe4de824e2a90d142442a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.collectMcpRuns (cognitive 16): AgentActivityCluster.collectMcpRuns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 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. This shape REPEATS in the file: one other method here (AgentActivityCluster.collectCliRuns) 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff3c73a5d7539c099d94a085ccae23f02330f1319816a24784e6bebb5f94549"}},{"ruleId":"D2","level":"warning","message":{"text":"graph-presentation.createGraphPresentation.advance (cognitive 16): graph-presentation.createGraphPresentation.advance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 2, ternaries 1 (nesting depth added 3). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/graph-presentation.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed62dddaa43fde4f9f5949583ace3ed5072a649cdbb0fba5d1521004b1aabe95"}},{"ruleId":"D2","level":"warning","message":{"text":"dialog.DialogContent::finishDrag (cognitive 16): dialog.DialogContent::finishDrag has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, if/else 3 (4 pts), ternaries 3 (4 pts), loops 1 (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":"webui/src/components/ui/dialog.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fda4369dcdd9b84c29cce045f80458d85735844089d21d2262838d722be99c4"}},{"ruleId":"D2","level":"warning","message":{"text":"workbench-model.attachWorkbenchPane (cognitive 16): workbench-model.attachWorkbenchPane has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 2 (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":"webui/src/components/workbench/workbench-model.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a07c1ca3d1e150efae7f6a957a2e155a3571c41445627df671a3ea0ec351f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"channels-linear.PanelComposition (cognitive 16): channels-linear.PanelComposition has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 5, if/else 1 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 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":"webui/src/dev/gallery/channels-linear.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ff11c69d65df242d348a3310380a34dccdc1144f0853d540c737ad48a153ff"}},{"ruleId":"D2","level":"warning","message":{"text":"useComposerMentionInput.useComposerMentionInput (cognitive 16): useComposerMentionInput.useComposerMentionInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 56, 140, 137). 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":"webui/src/hooks/useComposerMentionInput.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1b88fe0e68305a6845223f8f840adf1b3ccd14cd9490e73fa3ac165be167a1"}},{"ruleId":"D2","level":"warning","message":{"text":"useTheme.useTheme.setTheme (cognitive 16): useTheme.useTheme.setTheme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, error handling 1 (nesting depth added 4). Of this number, 10 points are the body\u0027s own statements and 6 belong to 3 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":"webui/src/hooks/useTheme.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63b7ece49d860d5de3386b027d2b7e1f34d192e88366698a2d09cb95a6211eb"}},{"ruleId":"D2","level":"warning","message":{"text":"api.hasValidProjectionMetadata (cognitive 16): api.hasValidProjectionMetadata has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. 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":"webui/src/lib/api.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f487861e362c959c31a5007455cef76009dd4c88cb743a8c715cdf35b49c87"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.applyRunEffects (cognitive 16): NanobotClient.applyRunEffects has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bddd08f6768171286f1dcf3449e71584f594e1a11fc3f80cef88ac1f10b0f37"}},{"ruleId":"D2","level":"warning","message":{"text":"remark-tex-math.tokenizeGuardedDollarMathText (cognitive 16): remark-tex-math.tokenizeGuardedDollarMathText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 16 points belong to 5 function items inside it that branch (data, close, escaped, \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fed3ae2861b5fdfe8af47e8388c815cecefd9ef2f67c3e4c83f45f1ae8d77e9"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateFlowProvider.UpdateFlowProvider::inspect (cognitive 16): UpdateFlowProvider.UpdateFlowProvider::inspect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (3 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 (UpdateFlowProvider.UpdateFlowProvider, UpdateFlowProvider.UpdateFlowProvider::confirm) 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d742a1e7bb5bb7a936f8647615771c6a4da6edf479fa9b7f40674bb593e74d"}},{"ruleId":"D2","level":"warning","message":{"text":"manifestedAssetPaths (cognitive 16): manifestedAssetPaths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), other 2, boolean chains 1, error handling 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":"webui/public/sw.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"770ca989da118608621e8fb5e4ea160a3f44bfa685ed03ebe6dd9d872affa1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.Shell: FunctionTooLong \u2014 Shell runs 1639 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1539 over it, 16.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":"webui/src/App.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a475b9acfa8d3a4e774588ca5b52191911e6524f37b0bbed994205dc6cf44d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadComposer.ThreadComposer: FunctionTooLong \u2014 ThreadComposer runs 1544 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1444 over it, 15.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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"141cca4aa3853c75d9872e5dcc8d0d247dd792bbbced5aacba9b0d5505863145"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadShell.ThreadShell: FunctionTooLong \u2014 ThreadShell runs 1047 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 947 over it, 10.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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eeefd8444c336a3c50cca83ad05e643df4edaf58cee2e448798daa006ae155f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadViewport.ThreadViewport: FunctionTooLong \u2014 ThreadViewport runs 954 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 854 over it, 9.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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82018f1f0e64860d42d33fa6a3ad043d3e9b4c265ceb95e77824132a1654dfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsSettings.ModelsSettings: FunctionTooLong \u2014 ModelsSettings runs 713 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 613 over it, 7.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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"07448017bf5e75598a5fde681c1c9b07c827f771b4317e5a9847281cf1f92da5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsPage.SettingsPage: FunctionTooLong \u2014 SettingsPage runs 655 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 555 over it, 6.55\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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5bd4d3989a91fbf30b44976cf11e856dc36ff49882f0644b0539c6166ac098"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PaneWorkbench.PaneWorkbench: FunctionTooLong \u2014 PaneWorkbench runs 565 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 465 over it, 5.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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c3227731c2f9702fa0583ff89b419d05abb12f48a8e7d9af3661bb8ead9c0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderSettings.ProvidersSettings: FunctionTooLong \u2014 ProvidersSettings runs 562 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 462 over it, 5.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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"074b79a059629c5ac1762a741873ebefe669d9f90602fa3448633992ff36f6f5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NanobotTui: ClassTooLong \u2014 2021 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 400 significant lines; this is 1621 over it, 5.05\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":"tui/src/app/app.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7206ca05d80826e903fa9f5abb5f319e95c60869cf187f92c1ee89f036e197b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadComposer.tsx: FileTooLong \u2014 2458 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: ThreadComposer (549-2381). The bar is 500 significant lines; this is 1958 over it, 4.92\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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a577deaa31d7451a573f91cf51ddd4a62ac638c05dc0cbbbc846e3b3675ef7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: createSystemSettingsActions.createSystemSettingsActions: FunctionTooLong \u2014 createSystemSettingsActions runs 491 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 391 over it, 4.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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21d09aee4cbc6d6f40a675dbb0ce718b4a4693291559dae918540acc87da9dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useModelSettingsActions.useModelSettingsActions: FunctionTooLong \u2014 useModelSettingsActions runs 489 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 389 over it, 4.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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b971788545ade262fe7f86c9dbc302e50f452b35c4b56dbd0efb2b40022175e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkspaceControls.WorkspaceProjectPicker: FunctionTooLong \u2014 WorkspaceProjectPicker runs 472 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 372 over it, 4.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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51d4046a8dd9e30e9cb06365e1878dc54c4e748e5a6550100cd55046d9f44f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RemoteConnectionsPage.RemoteConnectionsPage: FunctionTooLong \u2014 RemoteConnectionsPage runs 466 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 366 over it, 4.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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d61622d6aa21c28b7bd7e8f71e02d9614357292037a53bf1a362fe9f87332f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/App.tsx: FileTooLong \u2014 2307 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: Shell (821-2816). The bar is 500 significant lines; this is 1807 over it, 4.61\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":"webui/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1717715d0d9518a449e2a3ae007e0e03a923d4d7e0c9589a2e0320f1ab7b175"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/loop.py: FileTooLong \u2014 2152 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1652 over it, 4.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":"nanobot/agent/loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66984f0a5cc7529635893669d98a94047d30acc80b3252e41f83e3f6d624887"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/app.ts: FileTooLong \u2014 2152 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: NanobotTui (132-2641). The bar is 500 significant lines; this is 1652 over it, 4.30\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":"tui/src/app/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a638a28a82314ed1d073bedd1a5e395b6d03adecb5f247e9e28c67eff9aac75f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/transcript.py: FileTooLong \u2014 1987 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1487 over it, 3.97\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":"nanobot/webui/transcript.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e603ee6373aeb64fa8dde4973c56620cda50889358d5dd014eb7062b80d953b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadComposer: ClassTooLong \u2014 1544 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 1144 over it, 3.86\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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bb810ef1ba8fa0ba3dea8e2dbbbb45170a5f3367ccc556d1cdbaa6171f0398"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppsSettings.McpAppsCatalogRow: FunctionTooLong \u2014 McpAppsCatalogRow runs 376 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 276 over it, 3.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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae4ca4f5b5722d63d6932cdc21ef8fe6049f171d93ee51ff7d83e02073b13d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/ws_http.py: FileTooLong \u2014 1854 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1354 over it, 3.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":"nanobot/webui/ws_http.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ecdbf3dff338c8ddb775957c8296bd1adeb8258eb1f7dfcd0d71bb0cafd916"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelControls.ModelIdPicker: FunctionTooLong \u2014 ModelIdPicker 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a08e1ef1c5550c72cd75ee4efccaf26f024c88fd75766f3eaf42f6eb4059dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/ChatList.tsx: FileTooLong \u2014 1745 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1245 over it, 3.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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a639ba841436e862d8003fab6d8de8ee5198bb0f5993b6bdbdc73837ba505c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_models.py: FileTooLong \u2014 1744 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1244 over it, 3.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":"nanobot/webui/settings_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"525ec5a406db566a9b5008c996b2f4784cee8f0d14bfbd24cc59cbdc1403c06c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NanobotTui: TooManyMethods \u2014 104 methods. The bar is 30 methods; this is 74 over it, 3.47\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":"tui/src/app/app.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5aa8b16ef66ad5571478751e44005c03c7b10ae9f8e0b1bb44534ae070458d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSettingsController.useSettingsController: FunctionTooLong \u2014 useSettingsController runs 335 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 235 over it, 3.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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f18e7fc5379d82af5943524ff8fde8074c8ea413190ac3e9a3bf8883d8f4f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelPresetBadge.ModelPresetBadge: FunctionTooLong \u2014 ModelPresetBadge 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83df3ced04be02cbd83ff159191fc9052f7857c6f233f9bd93e6a20900d3d1c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThreadTranscript.accept: MethodTooLong \u2014 accept 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7d2b40c49ae7301bde2990d60ad40bc31dc313fdee45b9eac2a3319b722fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearPanelView.LinearPanelView: FunctionTooLong \u2014 LinearPanelView runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9df9f01ffac60348f98cb4e96b2821b8ef7972fc32eaea18b6c6ff911571a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationsSettings.AutomationsSettings: FunctionTooLong \u2014 AutomationsSettings runs 313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 213 over it, 3.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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0cd2d7af4adfcbd18955a5b45fa555ab7dc1fbb432010751c53425dccdb97a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/types.ts: FileTooLong \u2014 1496 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 996 over it, 2.99\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":"webui/src/lib/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b601ac3b0cc66085bf35487975cbaacec83014f689dd9c61482f39f1e0df57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/onboard.py: FileTooLong \u2014 1491 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 991 over it, 2.98\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":"nanobot/cli/onboard.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f402d91e8f137e2456c4bdb379e85a0869d0e57e522ffbead057effe01e4c577"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_compat_provider.py: FileTooLong \u2014 1488 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 988 over it, 2.98\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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"430b0acc838162f7f005d694867a4ea38bcc4d05a272dd7f5556ba981bcc9672"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/image_generation.py: FileTooLong \u2014 1477 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 977 over it, 2.95\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":"nanobot/providers/image_generation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ccc1ddccb7dd66bdfb4cde5a9881b185f510a1d804defda07c4d5ce680e25e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: thread-event-projection.reduceThreadEvent: FunctionTooLong \u2014 reduceThreadEvent 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4cfc8a163b43acb5828cdbdeb9a5d21c3da55599acc2498ba1a24e453a97ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppsSettings.AppsCatalogSettings: FunctionTooLong \u2014 AppsCatalogSettings runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e74c24026d4528f08aec433a2b18fd9e7eae2e41c446be9974924557e25c4ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppsSettings.McpCustomServerPanel: FunctionTooLong \u2014 McpCustomServerPanel runs 285 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fe82223d7ffbf283911671e638e84d849272fb452c48188b10b596cfba707e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/AppsSettings.tsx: FileTooLong \u2014 1404 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 904 over it, 2.81\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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d51ab59677db7305739515036ab90a3014451059ea4d2cb98a61872eb93aafa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useHostSessions.useHostSessions: FunctionTooLong \u2014 useHostSessions runs 271 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6806b77ead1226a3b630d4818a89cb40746819dfb0409df8887b2bd409ebc721"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/mcp.py: FileTooLong \u2014 1350 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 850 over it, 2.70\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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6ee4be16b197591ed54ae8178edb2745ecd8025b79bcc27c1602b095ea4e78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadShell.tsx: FileTooLong \u2014 1347 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: ThreadShell (359-1581). The bar is 500 significant lines; this is 847 over it, 2.69\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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98302ba47b65a73df410185b54b99f43646abb8d740e664277a38606368865a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/base.py: FileTooLong \u2014 1343 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 843 over it, 2.69\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":"nanobot/providers/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3366312a45079f9e1175fa3669486ba396affc2db9c60bfb6f80e0a9d91ca6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsMarketplace.SkillsMarketplace: FunctionTooLong \u2014 SkillsMarketplace runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51374235b18ffd54721f9c951f5508467cc31c45b2a6b4b460e0baa07a9f11d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MarkdownTextRenderer.MarkdownTextRenderer: FunctionTooLong \u2014 MarkdownTextRenderer runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbd8f613906bb9491be098fdc0c6734953a30d331077929fa7f4da55e01065e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelSetupPanel.ChannelSetupSurface: FunctionTooLong \u2014 ChannelSetupSurface runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa044395a84410977d0f6d57de8457610a8393ac18807948c73e3a962c67438"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/runner.py: FileTooLong \u2014 1309 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 809 over it, 2.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":"nanobot/agent/runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b50a1ccfa3c1371aa3acb93006bb60253f36eeceff101e59dd63b2b1e34a2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadShell: ClassTooLong \u2014 1047 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 647 over it, 2.62\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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed4afab2b6596c863dc4ae47cae101d458fb0f2fb63bf166e7473b640114b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/api.ts: FileTooLong \u2014 1300 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 800 over it, 2.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":"webui/src/lib/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f24c606808c7353d6067ea7eac65e413bfa5b8cf11f5c83adc218fa0d223dc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UpdateFlowProvider.UpdateFlowProvider: FunctionTooLong \u2014 UpdateFlowProvider runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2844cecae355b464c06b27386c465a73459009b4e0897cab4177076c7d3df"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ContextGraphScene.ContextGraphScene: FunctionTooLong \u2014 ContextGraphScene runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e6b3f54d33d74cbce6c315570d21a74b6ce98c94522c2511a850ad51a0e473"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentLoop: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\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":"nanobot/agent/loop.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bb6d571ddc1aa9a6652f2085b6c86a9cb65505d48331139cd11ee39b3556c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsCatalogSettings.SkillDetailSheet: FunctionTooLong \u2014 SkillDetailSheet 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e626e471afe78ecd250c8a0711629e80f124cd23c963ee81e13b046616f674"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NanobotClient: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abba893bf6ce5f8395869c5a50fb558d9a729c05a04e455618246367b7c7f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/AgentActivityCluster.tsx: FileTooLong \u2014 1216 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 716 over it, 2.43\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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e1fcaf60b7cff97c5d533f4607ac83ee1232bcf2ace7fdff4a7ce061ae3be5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadViewport: ClassTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 554 over it, 2.39\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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7545a057823c2c5378fe8d2958723452a8c6ba7466fc163f4062beb79a9aa57d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useVoiceRecorder.useVoiceRecorder: FunctionTooLong \u2014 useVoiceRecorder 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":"webui/src/hooks/useVoiceRecorder.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a897a2d2851264610e013b4ffe7983e998b2093ee427db7e0d60a375ecb296a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadViewport.tsx: FileTooLong \u2014 1164 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ThreadViewport (271-1429). The bar is 500 significant lines; this is 664 over it, 2.33\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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"467b6b2fe573dda77c1dc9fcb4ebae4ae97cc2afddd26739c562264c07a63015"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/mcp_presets_api.py: FileTooLong \u2014 1141 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 641 over it, 2.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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30b1b94e4332ecfd6446b8fb87cd3053ad408969e822adb2d4244b6ba7b1088"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelSetupSurfaceView.ChannelSetupSurfaceView: FunctionTooLong \u2014 ChannelSetupSurfaceView runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.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":"webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6143a092d6f35102fd487f2b71e1b61f574e58b1bb4f3bfbb6ac16b5a411ff55"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.Sidebar: FunctionTooLong \u2014 Sidebar 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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc66d03541fab403c65438ddc29814db03595f3bd384d9cd1bd5f839ed0dbcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadMessages.ThreadMessages: FunctionTooLong \u2014 ThreadMessages runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51299ce4c147cc545a07c29e59d6f49edb2580b64e6daac7ba6d74de134f357"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/web.py: FileTooLong \u2014 1108 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 608 over it, 2.22\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":"nanobot/agent/tools/web.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7d84a35336ff848b9f8b227007719cd580ec568c8b3fa2e6c57467356e229"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GatewayHTTPHandler: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\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":"nanobot/webui/ws_http.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5fce764a2a640f680a2316df359ac3444606c8c33abba317c1259199643a40"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WebSettings.WebSettings: FunctionTooLong \u2014 WebSettings runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3046b93b8b1c85727975185e3f160af5272eaa51d1dd5c41880a7897532713"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/ProviderSettings.tsx: FileTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 591 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b199cc307f9beab69a386d9fb1f7c6cd6dfd8d197d1994b9b6f6e47f1124e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.ActivePaneRows: FunctionTooLong \u2014 ActivePaneRows 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f258283ea9ec1e2b0f3c4ea025e2bf23540663052543d69242742e3f036fbb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.McpManagementDialog: FunctionTooLong \u2014 McpManagementDialog runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5545457d1d8f4bf5ba4a7267373d047d19447732c7b8d35f25ea6ad6ad1e887d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RuntimeSettings.RuntimeSettings: FunctionTooLong \u2014 RuntimeSettings runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae05cf5ff19fc3868643ccc7370265414fe09148a1f4dff0d30b391458339623"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/filesystem.py: FileTooLong \u2014 1083 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 583 over it, 2.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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93985968961848e4a7c6642ac4a1a6d3732e80a0bcc98776cbf1ee002917dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/AutomationsSettings.tsx: FileTooLong \u2014 1078 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 578 over it, 2.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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1036228ab26c816f3d7e1141de7f5396e93a63c106994fa2449cd421bac5a9a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatList: ClassTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 460 over it, 2.15\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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7b2f2ea514acd2f544f2db5883a05c15babed1c65fdc2a0777a89856ea21e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_system.py: FileTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 575 over it, 2.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":"nanobot/webui/settings_system.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d07ea35f381987dc42cafd449ed604a305f739c91884c6d3029b3dfe67a3ad8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/inbound_commands.py: FileTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 555 over it, 2.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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2c2c07e33d02a8002ef8e81dd297b70945997e5b5c8448f074d3de65efdfda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NanobotTui.handleKey: MethodTooLong \u2014 handleKey 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":"tui/src/app/app.ts"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d0044ed0955baf2575f5df5fdec196678c73899b8a27fc581ce2401346b753"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NanobotTui.accept: MethodTooLong \u2014 accept runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.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":"tui/src/app/app.ts"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"607831a9e9493660ad778cc4119871ba2313435bf067b8aa555cf43ab079c8a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionState: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.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":"nanobot/session/state.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b846750f6aee5ddbb5bf1d5539536ba25e57ec01d637b1c36370aa4597c33461"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearPanel.LinearPanel: FunctionTooLong \u2014 LinearPanel 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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"230bbb4f3209c5f0c1bc06d2cf70b314e784b5fc8da2a103def4804f7a7cc6ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/thread-event-projection.ts: FileTooLong \u2014 1011 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 511 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa83d81ef5d906a0fefa616c814c9630dc7ff680ff0149d5c81a8cc26a3c082"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionSearchDialog.SessionSearchDialog: FunctionTooLong \u2014 SessionSearchDialog runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"82426155c9d0630aead967451402eb87b8a3574493a1e1eec742c84148e845a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadMessages.ThreadDisplayUnit: FunctionTooLong \u2014 ThreadDisplayUnit 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e8eb75bd906adc0fbcc5e9677d2a2cda6b4d1e2320f1125df7a45d1a40e661"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelInstancesPanelView.ChannelInstancesPanelView: FunctionTooLong \u2014 ChannelInstancesPanelView runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.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":"webui/src/components/settings/channels/ChannelInstancesPanelView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ab0bc8dc2145e2dee3ddc42f379400adb836ae341cbf9c9bff866454ecb328"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useNanobotStream: ClassTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 399 over it, 2.00\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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6334bf0b0012599fbaeb31c69b7fd1d36efdf5a856dfed8e2013487ef37bc38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/ModelsSettings.tsx: FileTooLong \u2014 996 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: ModelsSettings (202-971). The bar is 500 significant lines; this is 496 over it, 1.99\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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70bafe32cc73691f90b78b388af35f27e2dc3fc5aece925d18b97ba09c9de95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadMessages.tsx: FileTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 486 over it, 1.97\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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f524f55584c6f07e07793c427c6a9d74147a662319dfd36400b421cfd2d601a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NanobotClient: ClassTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 378 over it, 1.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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fef7342c024d9cf62aa80efd56d7e446155ed79ff916893e731fc24d89cec46"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CredentialForm.CredentialForm: FunctionTooLong \u2014 CredentialForm 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":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3675ad35b11918a92fa1f1bc52c30755877f9b86e585e6a35d34039e88bd495b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentActivityCluster.FoldedAgentActivity: FunctionTooLong \u2014 FoldedAgentActivity 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b63f92ab3bf77a66d6a31856a0c3f47612842d8aa271bac28793b18f483dbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionInfoPopoverView.SessionInfoPopoverView: FunctionTooLong \u2014 SessionInfoPopoverView 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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f607d598b621f0937ef96aa4608b28b07b1184f6335bce8b9d849dc85344e42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/memory.py: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 467 over it, 1.93\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":"nanobot/agent/memory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a6d5b83fb61af49bed9a5ae68cb8776eba846335a1fb603f741ad3d6650b35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ImageGenerationSettings.ImageGenerationSettings: FunctionTooLong \u2014 ImageGenerationSettings 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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98383f661f71dc208d495cf6e9b9d6359c8c61c08dd497d935ec876e4a0be4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/state.py: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 453 over it, 1.91\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":"nanobot/session/state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b15af545e0559ad17c195ca050bbc21a01614a5dfee0e2608a6cfb89cabc96b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationsSettings.AutomationEditDialog: FunctionTooLong \u2014 AutomationEditDialog runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97915f7d1beaab3677f3c1ddf4edd7b19eade69556c4a95646a059382e2d4ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/nanobot-client.ts: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: NanobotClient (230-1354). The bar is 500 significant lines; this is 435 over it, 1.87\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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee07b3c3783bd159e53ef2607f76ff8e1321dbaa2d8183d5c04c6f05fbfa11d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelQrConnectFlow.ChannelQrConnectFlow: FunctionTooLong \u2014 ChannelQrConnectFlow 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":"webui/src/components/settings/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"809d3734310f925a251d57958266fdb928f039dbef33b1cfdc3a8f2e18d6833c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/gateway_runtime.py: FileTooLong \u2014 906 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 406 over it, 1.81\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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f209036ac3e9e126e4fdf48cc5c8a1d83b740df83ec5b144ccce4cba9e98b5af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/service.py: FileTooLong \u2014 903 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 403 over it, 1.81\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":"nanobot/apps/cli/service.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b094019b339d697f32b84c1f8276a525872cdfdd8afe1392a26eb384367ce379"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelsSettings: ClassTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 313 over it, 1.78\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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8735b5f5764aa1dcfbb38b1bbc6b44b7b8f56470ab4bb0bef6a83afd8bd782f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/useNanobotStream.ts: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: useNanobotStream (118-1106). The bar is 500 significant lines; this is 388 over it, 1.78\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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a503352800225a88ca62b3d6b68b316802822fc0040bd402c5779279bb6bdd6c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CliAppManager: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\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":"nanobot/apps/cli/service.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e0916de501526ee535a3a3a6b838c1d5c89b0fd8ee37ff2a2558f2ad3d74a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/subagent.py: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 378 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":"nanobot/agent/subagent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b14c58e2308bbebda5ced16681fe70771c035b9240b85ed44762a10fe79d09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SubagentTasks.SubagentTasksProvider: FunctionTooLong \u2014 SubagentTasksProvider runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1448125e56d3922e5f78e6b23a5acf90ffabf8051930ac0a4fd9ebe787ccdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useCapabilitySettingsActions.useCapabilitySettingsActions: FunctionTooLong \u2014 useCapabilitySettingsActions runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4f6eec0a5151d225a561390795a6e405bfe57e0c9f2d582f30717faa693ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SubagentTaskDock.TaskDock: FunctionTooLong \u2014 TaskDock runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb3d6326cc5d9d2e7eb3c820a4e1fb69d04aa9aea1c87114ec05bfbc808c3ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/context_governance.py: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 351 over it, 1.70\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":"nanobot/agent/context_governance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"193a482ff6b60831bac4df03596227e0c027ec775c5cabf03b2264b53fde5472"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.ConnectionPanel: FunctionTooLong \u2014 ConnectionPanel 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e80d5f094193abfac694ce34cc00f8cf11225d7e5e27892cc031fe27188773"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usePromptHistory.usePromptHistory: FunctionTooLong \u2014 usePromptHistory 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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faeffb672d3542500d682a45998de8eedbb99d72bd9c5f91c97724a9f35a18d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App 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":"webui/src/App.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e0a5ca16ea61442175f6e338800a78fa02764dcacfb012c1a12502e0db49fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/exec_session.py: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 330 over it, 1.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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c99192316a5562fb1534e34ead9be3da38cc67c36f55a959590fdef2270f57"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RemoteInstances.RemoteInstances: FunctionTooLong \u2014 RemoteInstances 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":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3299ec23bec8c74fa78837228c0f9068090a289532b68d80553001d98aaa7a2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ComposerUsagePopover.ComposerUsagePopover: FunctionTooLong \u2014 ComposerUsagePopover 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"502d27b15d06863c0f435321f8b613d735ae88fe1102e16de768b7e329d22d3c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsPage: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 255 over it, 1.64\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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8066cb032ca86919bee684ff276b6daa89a21e353f2005cd1a25c105de27fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/skills_marketplace.py: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 305 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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"339789006ddea4c776db34630635b673193bc9c03256ec051c273a203eb67cdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSystemSettingsEffects.useSystemSettingsEffects: FunctionTooLong \u2014 useSystemSettingsEffects runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3495a17cfa460a82b4dcbc0074e24821a311e781bfc246650f72c3c29b6985a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/thread-transcript.ts: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: ThreadTranscript (229-971). The bar is 500 significant lines; this is 298 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ebda9aafebf615947c38c2f120f6c9fb0103bf771dd4f40d42438a8a1eb0ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelsSettings.ChannelsSettings: FunctionTooLong \u2014 ChannelsSettings 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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d70d7eec7a07c413de317c6b4314698a0143859adf28b73acd5c446b005f8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useAttachedImages.useAttachedImages: FunctionTooLong \u2014 useAttachedImages 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"654d3d404a0668385f57b43ee573845f8adbffe011551c2d7cd64998336d9655"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useComposerMentionInput.useComposerMentionInput: FunctionTooLong \u2014 useComposerMentionInput 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":"webui/src/hooks/useComposerMentionInput.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce54e08f8528bf413ece1cfdd7afa6d0b182e7bc2417f50a9b89de9e2163b7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.ToolsPanel: FunctionTooLong \u2014 ToolsPanel runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa9e80ae7b1db0db5fe27577b882e22318a3f6bebc72d3b6be0783afec259b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadTranscript: ClassTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 217 over it, 1.54\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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1472a71029840e30bfac4b3026b75dbf289212ac66283352c7eb4108cc8ff94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/shell.py: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 264 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec86eb29866918da3d08ba6f63454a66d2cd593425239869caf937cb822adab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PairingCodePopup.PairingCodePopup: FunctionTooLong \u2014 PairingCodePopup runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bc39472d161fb2a62ac6a4c818f9702fe6cf93d0815f898b6f55458cf0b9f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_codex_provider.py: FileTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 252 over it, 1.50\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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e926143f56b398526872c02e444423fbb3efe64f01fa5f0546611cd89e0d3981"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryStore: TooManyMethods \u2014 45 methods. The bar is 30 methods; 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":"nanobot/agent/memory.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"561b8141d8a129dd9d17250c3d70262d5c0f269477fda673ea565af9372ecb44"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LLMProvider: TooManyMethods \u2014 45 methods. The bar is 30 methods; 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":"nanobot/providers/base.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b70ecb41b6ab9d27a4fb102837a195aec9226c8dd77c81b6c41cc220831f72f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WeixinPanel.WeixinPanel: FunctionTooLong \u2014 WeixinPanel 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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2f40a6aa3ad5a564e3d6bc09a087df26616616bb118d3fe0307fa226c79e0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelQrConnectFlowView.ChannelQrConnectFlowView: FunctionTooLong \u2014 ChannelQrConnectFlowView 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":"webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1313856c1abf80a589a86bd6bd98896ee236849813706c86d1c797c8ef0e23b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/builtin.py: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 244 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":"nanobot/command/builtin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f12292d34c7d9780efd6fa6f64dd2cd5150cd2ab8faddc9d777b32ccf015bc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nanobot/optional_features.py: FileTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 236 over it, 1.47\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":"nanobot/optional_features.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3ef68277b805eeaebf80ce0139ffc19678fc677eb2403a7f0136aa6c99d66a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSessions.useSessions: FunctionTooLong \u2014 useSessions 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":"webui/src/hooks/useSessions.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a913997aa8ac908e2984c79f69836761c0e22505ff04d2339b74beae096f4670"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendering/latex.ts: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 234 over it, 1.47\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":"tui/src/rendering/latex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cb4d510a9d26636276aa0a00e7359c5153680685c9b0b520f56da356dd539f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SettingsPage.tsx: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SettingsPage (80-811). The bar is 500 significant lines; this is 230 over it, 1.46\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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72b8d7b64100ab9f692f47b345e3155843dbf6ddf2bcc2cd1c8ff53c45607c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workbench/PaneWorkbench.tsx: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: PaneWorkbench (191-846). The bar is 500 significant lines; this is 230 over it, 1.46\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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15fe9b22b20acfaba05abc90d9fbe27c9e5b6469a63b0b9c48be7f9b9be93f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/registry.py: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 228 over it, 1.46\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":"nanobot/providers/registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e193ee8eda8d0574d4bd35ccddb884e624bbb635854261e6773caf8bc88696"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderSettings.ProviderOAuthLoginDialog: FunctionTooLong \u2014 ProviderOAuthLoginDialog runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c2a44c650ae834581a73fe978b1688418c37d535cd11972cf3e17f04305447"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/search.py: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 224 over it, 1.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":"nanobot/agent/tools/search.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cfd512205307403aa50afb241f240df591376eb24f336cdf873474faa74de5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cron/service.py: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 224 over it, 1.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":"nanobot/cron/service.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4395899288d1d5c6ba0a3ff1bb4c3666bbb828005b138d21ef0a77549f8d87"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MessageBubble.MessageBubble: FunctionTooLong \u2014 MessageBubble 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed7c3a9b26004a27a9f7cecce2e43b4275a136d387f02ef004d3370547ac916"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/mcp_oauth.py: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44\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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26dbea129f8c1fb40a6c103b725416fc17e6563caafb4d3bd5f14fa32f41937"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAICompatProvider: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1492e67d4141653a1ed10b4b32456cd20b3e75d6c177cca86fcc057220c18eb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationChatBindingView.AutomationChatBindingView: FunctionTooLong \u2014 AutomationChatBindingView runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.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":"webui/src/components/settings/system/AutomationChatBindingView.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0173db605268373e4b9438b29460a8b85c6ec305697a44cf6b3ec0f1a3275299"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/bedrock_provider.py: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 207 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcb6141036883ec0e60c5d11bb29734c19fccb208e380c37d0f4cbf1505cd16"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaneWorkbench: ClassTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 165 over it, 1.41\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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74add88a49a2bd1c696d7b4c2bc1fb97cedf458da0a35ef732f2f06cca5fbbbf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai_grok_provider.py: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 204 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c1d7c17b9f7e8b3e1173d96d9fe3666b48e823afde2053b244682d47ede42"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenUsageCard.TokenUsageCard: FunctionTooLong \u2014 TokenUsageCard 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":"webui/src/components/settings/TokenUsageCard.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aed08283a0403e4f76735ca6fafa0f77384b30db90579e4761a55a4ab05fe33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TranscriptionSettings.TranscriptionSettings: FunctionTooLong \u2014 TranscriptionSettings 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":"webui/src/components/settings/capabilities/TranscriptionSettings.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bda595aeab2210bfa9ab0c4f3b952de1d27eba8fbb1bb03bda298071a027003"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Gallery.Gallery: FunctionTooLong \u2014 Gallery 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":"webui/src/dev/gallery/Gallery.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f066c16c55ceb30350de32c83fe226cbd4c96e080af6121f784da470afc59ee9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nanobot/update_worker.py: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 195 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":"nanobot/update_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"731b53aacad8ae1aa180377c1216ad0e1fa21a5c8e6602d3b3306ea635721c29"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationRunAtPicker.AutomationRunAtPicker: FunctionTooLong \u2014 AutomationRunAtPicker 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":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1fac3d067e228bcd7eea78b52cd6dd826e370c265d897dcfa6cf670b35921d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationsSettings.AutomationDetailPanel: FunctionTooLong \u2014 AutomationDetailPanel 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae0133a9e1e470de0fbcb20555e4e19425b96ba632a89265f657e76fc519d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptRail.PromptRail: FunctionTooLong \u2014 PromptRail 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":"webui/src/components/thread/PromptRail.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2f2b85bb45441f443625b5083ec141bcc0e86d8fce36fa78e9eae98faade46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/WorkspaceControls.tsx: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: WorkspaceProjectPicker (158-690). The bar is 500 significant lines; this is 192 over it, 1.38\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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d054dc91bc1db7d2d50a9ea48c25f18ec0446ed02f69d7be99cbc951fefc1bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationCalendar.AutomationCalendar: FunctionTooLong \u2014 AutomationCalendar 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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f535b3bb4750cefac358a8f3d237394c4b467d8285685116a44fbe3d682ba1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NanobotClient.handleMessage: MethodTooLong \u2014 handleMessage 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a76c4598c9f3654ea29a441d1c13d8b888583da2d003490d1f6c718c0739096"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_routes.py: FileTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 188 over it, 1.38\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":"nanobot/webui/settings_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1390af4a8d0f0837a56dd3ceb404ab49c6c3379c6c1a37defc987d68ce8cefd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/MessageBubble.tsx: FileTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 185 over it, 1.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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c8836e07e15f98170bf6ab2f4cc3fe284e6a50a55ad5b00e74a3a60c22c791"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsCatalogSettings.SkillsCatalogSettings: FunctionTooLong \u2014 SkillsCatalogSettings runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a56d909b594015e2ac17a3b39bc836a012d5f1fc1540034380e8c7567321be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SubagentManager: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"nanobot/agent/subagent.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ba48470ec7cba3bc63323ad42ccca5dcb4240da23829b51ef5e8b5b2e60fe7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.AuthForm: FunctionTooLong \u2014 AuthForm 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":"webui/src/App.tsx"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f98de3a4c9adff961f3d0244580a0b75cd57ead362eea81d3fb16bb5d56753c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.WorkbenchTabHeader: FunctionTooLong \u2014 WorkbenchTabHeader 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64337b2e41bd3766389206468e18a7dcfc95896170bd062000439fc1e285b90"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadMessages.MessageBlockMenu: FunctionTooLong \u2014 MessageBlockMenu 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"259c566342653c29a7db6125b8a6c3145dc6e622c6a52586cf679e31e95f52df"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptNavigator.PromptNavigator: FunctionTooLong \u2014 PromptNavigator 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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"61872ab6d41ce7a6e32c68a52b71e923ce391e3be0b4dfa20f4f78f51e3ab661"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/runtime.py: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 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":"nanobot/gateway/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d86f7e2bc145d35f3a7537b1261f0b11101f190b4c7761f5c3551b7e07a197c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/McpManagementDialog.tsx: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cebd75ee92fb60b40434cd4d4a95772920941e7ad173ab748932010b061ad93"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Transcript: ClassTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 134 over it, 1.34\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":"tui/src/rendering/transcript.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"212bd192f4e4ef4d6af4e20fae8972f853c80b14182559296616f1eff9007548"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Transcript: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a234ac20064f8209f05663938f58795bd36d7d26c89f6f92a4cc570cbd299bfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/anthropic_provider.py: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12f5514617ec84c1c8cd846880d5631d4d2038bb7d64d4a6ff688238a54c76d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenUsageModelTrend.TokenUsageModelTrend: FunctionTooLong \u2014 TokenUsageModelTrend runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"webui/src/components/settings/TokenUsageModelTrend.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d21dd0cb0a1b906715b9bcbc011a382759d858736ebdae962663bda51686ab1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSidebarState.useSidebarState: FunctionTooLong \u2014 useSidebarState runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"webui/src/hooks/useSidebarState.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d446f268ebc0c7c8b909968230e26d076f903c4fa889e145fa4795c2d6df2015"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RuntimeConfigSettings.RuntimeConfigSettings: FunctionTooLong \u2014 RuntimeConfigSettings 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e93d2e6646ef62b140bea14ff3a0ed069c2948b8bd415bea83bd57ae81b8380"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/helpers.py: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 152 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":"nanobot/utils/helpers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf4f273cde67d4107d31113986e975c5ddac45b0892a575c442cd4a60c6bd70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SkillsCatalogSettings.tsx: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 152 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ce4648c3dc9c7e196a6c8545370a7b24995695a8fa13a1d852dac50257de38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/fallback_provider.py: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfb0fb318b432ae26a8e63df17b49bbfad8258f34caaab0e7aa0e3b87cbd706"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/MarkdownTextRenderer.tsx: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 147 over it, 1.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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a499e7a27847d28c8ee4bca799323a4a2ff3bb38b2884acfb4084068340d144"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderSettings.ProviderAdvancedOptions: FunctionTooLong \u2014 ProviderAdvancedOptions runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e411b0272cea163140ba07399152e988b041ef9efbc6bbf3d5c2af5b8c386b94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai_oauth.py: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 142 over it, 1.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":"nanobot/providers/xai_oauth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"630468da95a20ce28f591f36e105e3fbcadde2de13d0cb905ff635c1497a6d23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useModelPresetDrag.useModelPresetDrag: FunctionTooLong \u2014 useModelPresetDrag runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"webui/src/components/settings/models/useModelPresetDrag.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be16ed043896ed1edd6a394cd622f29d31545449221cc843b694325cdf5633c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FileEditRow.FileUnifiedDiff: FunctionTooLong \u2014 FileUnifiedDiff runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"231bda704d646e0179c32528300ff970070b792c6f39632c858b95c0e553e35b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendering/transcript.ts: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: Transcript (111-782). The bar is 500 significant lines; this is 135 over it, 1.27\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":"tui/src/rendering/transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26191bc198d18737e13d6eb5ec9f5015e2507af89764fae6c82848e221b560f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MessageBubble.MessageBlockMenuActions: FunctionTooLong \u2014 MessageBlockMenuActions runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"41afeb7b01a6db32fdc2a953e69fb295bb6252637221e86ca0a362195822e633"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadHeader.ThreadHeader: FunctionTooLong \u2014 ThreadHeader runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.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":"webui/src/components/thread/ThreadHeader.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe2830aeb0286490652f575acf54ab806c7b7d420161ed40c004a2af8e4b05c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/webui_turns.py: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 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":"nanobot/session/webui_turns.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe661415dd47d62fb5b84e4c464e83dd9faf07670e3da6e362dfc569b06db753"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layout.createAppLayout: FunctionTooLong \u2014 createAppLayout 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":"tui/src/app/layout.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c773da1f2ac5eb9b3cd7bdc4625255cc6971b67a6686ebeebac87016554431a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelCatalogRow.ChannelCatalogRow: FunctionTooLong \u2014 ChannelCatalogRow 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":"webui/src/components/settings/channels/ChannelCatalogRow.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cd32cd74f70b000465dab1d83839ee4664e712a01e3100373a6bfd0134e12e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqliteSessionStore: 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b188b09dc264fb764dbfd149ab3ec3319e115a23f764186f736dfbb247b4c617"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: createSystemSettingsActions: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 91 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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bae8a5f0e50b8946dd8f7b6be1dd185612b998348596dd1dd897fa315391de8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SkillsMarketplace.tsx: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57127135f02daaaa58bdc3dd88612b18a6be01c0bf89dbbdd98c2e9f71e964"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useModelSettingsActions: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 89 over it, 1.22\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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15335a6d9620b4ef19575ebd5c97db2bdacbd1cdcd24aeb421689b867e2f689e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/sqlite_store.py: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22\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":"nanobot/session/sqlite_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11bf810063fc207f3647c01cf6ba85cd784c1cf683bf832ffd870712f7aba71"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RuntimeConfigSettings.useRuntimeConfigSettings: FunctionTooLong \u2014 useRuntimeConfigSettings 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"107b9539988c391fa2582b0f967fa8a165ce37488a8b9a30959f0c49b4a34cbf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionManager: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"nanobot/session/manager.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd9e42187dd8831443551b7cca2da12e377f294a57298055974cc91e688b7c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nanobot/process_runtime.py: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 100 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":"nanobot/process_runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a5ab3026ed742d4f5880b776009e3ed58393f40c129f3e07d567a99cd4e6d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useModelSettingsActions.useModelSettingsActions.saveModelSettings: FunctionTooLong \u2014 useModelSettingsActions.saveModelSettings runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"93872d745d3d0183579b1d79bc0dd6555d6e018b4c577546a0325bf4fb8aed0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ReadingSettings.ReadingSettings: FunctionTooLong \u2014 ReadingSettings runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/settings/overview/ReadingSettings.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7ffb579e4fcb57b7023ea098ba3b35cd4d3228373269798e66c96d51eb14e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: segmented-control.SegmentedControl: FunctionTooLong \u2014 SegmentedControl runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fed99f1d0d2c2a10f6f1bad14524afa0035d0a9be1ca5d8c37b8877d9cbf361"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/ModelControls.tsx: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: ModelIdPicker (187-583). The bar is 500 significant lines; this is 97 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb196044cd5bc679cc3bd32f1314891b168a566cd943c5fbffe429c5b671ae8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearMemberAccessView.LinearMemberAccessView: FunctionTooLong \u2014 LinearMemberAccessView 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":"nanobot/channels/linear/webui/LinearMemberAccessView.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"30442f9df2f54a92e790ba6d5db00740d050981d7e4c9facd882f22a411534ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WeixinPanelView.WeixinPanelView: FunctionTooLong \u2014 WeixinPanelView 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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b4c01ffeb880cde9671a122c342fd49e243c5ee0967c6822310a3dd9cf0b09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai_responses/parsing.py: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd734bb20bc205aac76b845f112016b70cc612f690b31614325ad636f4bd19ef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CronService: TooManyMethods \u2014 35 methods. The bar is 30 methods; 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":"nanobot/cron/service.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb659353470f3a8bb60174b0a29f02d7151c99b59e15f5a522a6a35a163a70a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteConnectionsPage: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 66 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"116c19658fee8154a4f4bff98b79a1a02c77e2d7f1acae1385fdd79ec7bfe1aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ModelPresetBadge.tsx: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 77 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"884d2522ad707c361804e168f26ec6e5ff1c7c09a8dbe5e38800286fedc15f73"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsSidebar.SettingsSidebar: FunctionTooLong \u2014 SettingsSidebar 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f465b765bba8ea98e1b43e0f86dff238334e144be8cdd690fdcee57250383a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/outbound_delivery.py: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 72 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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db70e0d8aae9f50a691b47f2963651002e2f4b13955a37863ab7e4bb725e3046"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSystemSettingsState.useSystemSettingsState: FunctionTooLong \u2014 useSystemSettingsState 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":"webui/src/components/settings/system/useSystemSettingsState.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d036f1e64e6b9e6c4ef757deff031f9fe6b06c30cea04e6497b5e512b13f018f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SandboxSettings.SandboxSettings: FunctionTooLong \u2014 SandboxSettings 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":"webui/src/components/settings/system/SandboxSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cd35887c830b504745ec8f8d90685a6fb60390901af27bf1fe2b7ddf6a4284"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentActivityCluster.ActivityTraceTimeline: FunctionTooLong \u2014 ActivityTraceTimeline 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"9137f58d502f411d38b17729b519e5256e4fddc7b417bd09d199f3076b849d88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transcription.py: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"nanobot/providers/transcription.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbbbaca7e5f553a71e92a6dadf3413f4631e2ddf444c217eb84e3daa4134406"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/createSystemSettingsActions.ts: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: createSystemSettingsActions (76-691). The bar is 500 significant lines; this is 57 over it, 1.11\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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1675fac532450a253b4a870721cabb8d1dfc784145e699b10f7032d04258d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/document.py: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 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":"nanobot/utils/document.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0359f54635cba35a9e00368b2f979045ebc21d8229d31cc770ebbe72f6da94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/desktop_target.py: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 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":"nanobot/cli/desktop_target.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bb19e80dfb7bbeec625c0477fcb8ac7717be450abbe0fce0b51c978cd379f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadComposer.CliAppMentionPalette: FunctionTooLong \u2014 CliAppMentionPalette 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb5c7fc0cb9505d16bde1be37d4eb2da0c1235aceac2b4a306956c6295a5109"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/useModelSettingsActions.ts: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: useModelSettingsActions (73-657). The bar is 500 significant lines; this is 53 over it, 1.11\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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"050efb32d5bc41bab2f952f4b42d4557ee7258bef12552509addbb2bf9831b67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FilePreviewPanelView.FilePreviewPanelView: FunctionTooLong \u2014 FilePreviewPanelView 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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f9faa4608c9cc7c3a415dfca952c0b26510cb872a0bb93bbb64ba89e1a947e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ImageLightbox.ImageLightbox: FunctionTooLong \u2014 ImageLightbox 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":"webui/src/components/ImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f514b3af660142a52fc75eecacaf16a047cd52bf6a9e6ab3a29d43292f190256"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: image-viewport.ImageViewport: FunctionTooLong \u2014 ImageViewport 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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"103235afc3d56d537fc31122835a7b0d5ca0946a161be12fabbcd5993e2bd229"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelPairing.ChannelPairing: FunctionTooLong \u2014 ChannelPairing 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":"webui/src/components/pairing/ChannelPairing.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b20265b10933ed0fe79f7e5c689d27199082a9939f9e3e9d2fe09f7223561f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/schema.py: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 44 over it, 1.09\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":"nanobot/config/schema.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cea10469369a94d6ac52a8eac2ba199fd62ab48b977cba687f6b2f5f851319c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/webui_support.py: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.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":"nanobot/cli/webui_support.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9380faf6721467b8a0a133f41dd4bf9268c9160ddcf63076925d9ad333db9c9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodeBlock.CodeBlock: FunctionTooLong \u2014 CodeBlock 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7fb79f356412e51db98c07ac0ce97014d91dc31f664a78d7e2b7ba9676d911"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MermaidBlock.MermaidBlock: FunctionTooLong \u2014 MermaidBlock 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":"webui/src/components/markdown-diagrams/MermaidBlock.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe7cf4e444b737cb6950d3db40d417986341d747e6374f274dfbc9a630e7a25"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BedrockProvider: TooManyMethods \u2014 32 methods. The bar is 30 methods; 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"388b1997ff47e55284e534cfaa55bfbdc1aa3e5316fbddd5e4110525aa135c22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearSecretField.LinearSecretField: FunctionTooLong \u2014 LinearSecretField 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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d2e2a5e7b17dbf76c92be19eefd527c1863060c7bab055823ce19c124c2cac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AssistantSelectionAction.AssistantSelectionAction: FunctionTooLong \u2014 AssistantSelectionAction runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/thread/AssistantSelectionAction.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd494dde7ab69a84dac9f517bf12c7b4d49eaff0c61418da887ced2e8f7215b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/manager.py: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 20 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":"nanobot/session/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3765c06d0d99312379564a4894cf7f1165fa6d001913603d4d581136d7e5eeaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.ProjectGroupHeader: FunctionTooLong \u2014 ProjectGroupHeader 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"55734958890193f736be07501f710c2c293ff19dc77f798f04b9bfe7470d6600"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuickPairSetupView.QuickPairSetupView: FunctionTooLong \u2014 QuickPairSetupView 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":"webui/src/components/remote/QuickPairSetupView.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8bcc59179ed17650f842fb667842c828c5dd133bc5fab8e8f3c2da3816bc88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelValidationProgress.ChannelValidationProgress: FunctionTooLong \u2014 ChannelValidationProgress 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":"webui/src/components/settings/channels/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"68300be90ce201c30e62709f93bd151b52b94b785b57a6cac6d50aa73c246ee0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThreadTranscript.project: MethodTooLong \u2014 project 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"778036fe6509d080abb2ff0267205f20b97c120cdc62ed5069c9ea79eb8a86fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentRunner: TooManyMethods \u2014 31 methods. The bar is 30 methods; 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":"nanobot/agent/runner.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"994634eeeac02b4197fd56621eeaf1f51cbba0160b6be7f32eef947436ae46cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsMarketplace.MarketplaceSkillRow: FunctionTooLong \u2014 MarketplaceSkillRow 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b8233819f18f65e2a99b2cc787f684f3635620cd8a0defd2500b9d0e56920f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_capabilities.py: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 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":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a61dfcd5bca8acbc96b94ca52980ff7c6e70b26d87d803a3b5a62532c527b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSidebarHostBridge.useSidebarHostBridge: FunctionTooLong \u2014 useSidebarHostBridge runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"webui/src/components/remote/useSidebarHostBridge.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb019f5db7b459cd379133efbe9508ae0836518a014f4d4d661bb5c106119ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: VersionCheckRowView.VersionCheckRowView: FunctionTooLong \u2014 VersionCheckRowView 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":"webui/src/components/settings/overview/VersionCheckRowView.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"60391fac3c0ab2acf9798b267cf0a236a0cb604a912c19660a4cb07775f72a6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ActivityStep.ActivityStep: FunctionTooLong \u2014 ActivityStep 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":"webui/src/components/thread/activity/ActivityStep.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"901b467a783eca2b4bdd447f724b57fd91dfaea990e05f04115485090e07eb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): nanobot/webui/skills_marketplace.py:121-156 | nanobot/webui/skills_marketplace.py:209-238 | nanobot/webui/skills_marketplace.py:247-274 | nanobot/webui/skills_marketplace.py:282-309 \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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f63ccd17dbc196da847f095497070a1ea58899ba0257ca86b72e28947d92cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): nanobot/context_graph.py:57-89 | nanobot/session/history_graph.py:117-142 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"nanobot/context_graph.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0028f422848427dad8119bf5ab1a1980b24e78587230afb6968dad81d4fa70cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): nanobot/providers/anthropic_provider.py:136-188 | nanobot/providers/azure_openai_provider.py:219-258 \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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0877c12209c75bb5dce50ec61d0e3337f516ef4c9da26a3e86f02acc6a9180aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): nanobot/agent/tools/web.py:733-769 | nanobot/agent/tools/web.py:772-813 \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":"nanobot/agent/tools/web.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eab4d48bc239e7fb286bf0d57d8d1789fdf67f1f695487e40f670570b687cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): nanobot/providers/anthropic_provider.py:437-499 | nanobot/providers/bedrock_provider.py:269-293 \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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f1895ee5cf133ab935a02508de48b6aeaab821edca4362a060d364b0ced441"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): nanobot/webui/cli_apps_api.py:58-84 | nanobot/webui/mcp_presets_api.py:136-164 \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":"nanobot/webui/cli_apps_api.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"33795f6c41db42fe923aff91f0fb0d671edbb46f96fcae4139829b35b44ff218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): nanobot/session/state.py:602-626 | nanobot/session/state.py:772-807 \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":"nanobot/session/state.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef49dd97bf52a4d3b2f4ba1e90ad9bfcbd9f4e6fb400432422d1380a9a2696c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): nanobot/webui/sidebar_state.py:298-325 | nanobot/webui/workspaces.py:110-138 \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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef75982d960d4513e22e4b0b07b13c0dc0e24598ed8f59df25245d16587977"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): nanobot/command/builtin.py:466-505 | nanobot/command/builtin.py:509-555 \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":"nanobot/command/builtin.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c31417ca31734c3f49af4c0d958ecf332a7d4f4f0e2385c7592189e9d0eb89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): nanobot/webui/settings_system.py:611-629 | nanobot/webui/settings_system.py:632-653 \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":"nanobot/webui/settings_system.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"a217241ff64b75f1e72e69844ed2347a8cbf7d87c610d5d9ce2cf5bb18cc5795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/cli/commands.py:461-481 | nanobot/cli/commands.py:489-504 \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":"nanobot/cli/commands.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"eead36a95821c520e655f42d317c29a6cd07822daa1e27026ad1ff4c39a5dbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/agent/context.py:157-176 | nanobot/agent/context_governance.py:313-328 \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":"nanobot/agent/context.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a938d1510960fb9439c14b319caaaf991e8895af4add4ea05006f5cc9836f4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/gateway/runtime.py:786-801 | nanobot/process_runtime.py:465-480 \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":"nanobot/gateway/runtime.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ba4da7f3e68ed43bf7324ce2e2c042b7e119c74560957b6e7e9daf73ac2f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): nanobot/providers/image_generation.py:1671-1708 | nanobot/providers/image_generation.py:1823-1860 \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":"nanobot/providers/image_generation.py"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c081436098aab9cdd8c29d66621e7def29e88abb2d3ff798e49c3f77607fe54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): nanobot/providers/image_generation.py:1027-1046 | nanobot/providers/image_generation.py:1718-1736 | nanobot/providers/image_generation.py:1870-1893 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"nanobot/providers/image_generation.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"452dcd032476a9ce7a0d0577164d4acaaf53656b91a733f3b853d0a9dafe2b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nanobot/webui/outbound_delivery.py:498-511 | nanobot/webui/outbound_delivery.py:517-527 \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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85fafe007d0d702b7dbd58f164b45bdf4653ebfb8675009838e38e7a68af67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): nanobot/webui/transcript.py:1221-1239 | nanobot/webui/transcript.py:1243-1260 \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":"nanobot/webui/transcript.py"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0dbbe3a7278b57c341e4ff18467e06ecce19d4930918308b7fa515c69bec510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): nanobot/agent/tools/mcp.py:865-882 | nanobot/agent/tools/mcp.py:939-961 \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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e788ece15453c5ddf2615db47e4c2ad888ab41e7266e15a23e844254cb7d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): nanobot/providers/fallback_provider.py:324-343 | nanobot/providers/fallback_provider.py:444-468 \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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d23b16c912319f244508457f4dabbdf83abc5842e77c5b517b8de6565c4e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): nanobot/webui/transcript.py:542-553 | nanobot/webui/transcript.py:1455-1466 \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":"nanobot/webui/transcript.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9316206be5981e9c532acb812fdec5bdd71559bceb64940df0f181f75d615745"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): nanobot/cli/provider.py:165-183 | nanobot/cli/provider.py:194-210 \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":"nanobot/cli/provider.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8279bf70226790a66528847ac4b22bb9a99ad1872a624f1180f6955e5bb69083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): nanobot/agent/skills.py:365-378 | nanobot/webui/skills_api.py:188-200 \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":"nanobot/agent/skills.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c49851724e20fc242c2cdc6be43de49aaade1f6bea467b444d74e9af6b64012"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): nanobot/apps/cli/service.py:477-497 | nanobot/apps/cli/service.py:506-527 \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":"nanobot/apps/cli/service.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"868659456e94be9137ca39318624956d6ca277a123225b47bad7490edff1679d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/agent/tools/filesystem.py:867-882 | nanobot/agent/tools/filesystem.py:938-955 \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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"90edfaa8f54e3fb3c667112f7dd8a7dae751cb4a066b0e3d10c1fbc3569ef4b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): nanobot/providers/openai_compat_provider.py:397-411 | nanobot/providers/openai_compat_provider.py:418-433 \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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17501e0500759147bbe9c4bc96401b404669de265fdb919118265e5262cd8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): nanobot/utils/atomic_file.py:132-144 | nanobot/utils/atomic_file.py:148-170 \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":"nanobot/utils/atomic_file.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6a1cd96e13f544177a190503b97dccf580cf2ecfa2b412e4b59d8e2c62e069"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): nanobot/webui/ws_http.py:1954-1977 | nanobot/webui/ws_http.py:1984-2004 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2f225524f87bb7e01072966031fc3cd7fbcc644448593d148a46cee49d402c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): nanobot/triggers/local_store.py:200-217 | nanobot/triggers/local_store.py:220-237 \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":"nanobot/triggers/local_store.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3718993dfa5a0c9661a217f2688aa2095d013107cf0a5c92f4859a75b7654ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): nanobot/webui/sidebar_state.py:225-237 | nanobot/webui/workspaces.py:94-106 \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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b983afc21cacb4e1b70afcad93848e78755d2083c32ac0f70c5476e2821325f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): nanobot/webui/outbound_delivery.py:391-405 | nanobot/webui/outbound_delivery.py:432-443 \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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f7dfa1cb5f6e9ed47b728e2d72eeae6eec32a40bb27d8077420df99b0201ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/webui/ws_http.py:1011-1026 | nanobot/webui/ws_http.py:1363-1380 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5fa29e79f579c7037f9d469624bf8f6e51c6415016a775f7ad4c8f79bf74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nanobot/providers/bedrock_provider.py:32-41 | nanobot/providers/openai_compat_provider.py:357-370 \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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2589cbd51a9c5757a41c227d5acad490217c903e2794b7d5116104117d789741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nanobot/webui/settings_routes.py:686-695 | nanobot/webui/settings_routes.py:719-728 \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":"nanobot/webui/settings_routes.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bdd5ec214ed1ba25dc771dbb0cd20b5eaafd0b670ded07b53fcab1f271dd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): nanobot/providers/transcription.py:198-224 | nanobot/providers/transcription.py:236-258 \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":"nanobot/providers/transcription.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"775c6e119a92316694c04d02141b70ebc358b75623be57f3357ee6e770181575"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): nanobot/webui/ws_http.py:1861-1877 | nanobot/webui/ws_http.py:1880-1893 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bd6614c2dbd896afc1ffd4399287065c439947084236a91d2a45f15e874221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nanobot/webui/ws_http.py:1486-1495 | nanobot/webui/ws_http.py:1498-1507 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f4b3d368db6a501ae9c54f150e1cb7689790345bd402abce02377be30e9284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): nanobot/cli/onboard.py:360-370 | nanobot/cli/onboard.py:1333-1340 \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":"nanobot/cli/onboard.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784ecd7a9d2e83834581fddd13331248c97dcc5946d986d8e21be8c2f074166"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nanobot/providers/base.py:150-174 | nanobot/providers/xai_grok_provider.py:500-508 \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":"nanobot/providers/base.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b05fc589682ae3c65869c8c1f0128af5033d9ad231784ce3e510602b0393200"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): nanobot/providers/base.py:61-76 | nanobot/providers/openai_compat_provider.py:236-247 \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":"nanobot/providers/base.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d6e967cf1665c9470ff1a51a65d887a1519a1633d756a1d763ec468f8bc0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): nanobot/providers/transcription.py:602-627 | nanobot/providers/transcription.py:650-666 | nanobot/providers/transcription.py:689-705 | nanobot/providers/transcription.py:726-742 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 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":"nanobot/providers/transcription.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b45f3e11773068b9a735a14afb25971f82dfca96f9b0d6ea19878dec2ae583"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): nanobot/webui/sidebar_state.py:103-111 | nanobot/webui/sidebar_state.py:115-124 | nanobot/webui/sidebar_state.py:128-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 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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"79da1dbc07c4d474316667f999a0b93d6367a54e5542eed06c776cd5fd9125a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nanobot/webui/settings_models.py:480-491 | nanobot/webui/sidebar_state.py:75-85 \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":"nanobot/webui/settings_models.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d37295a9b7416501c9486e2c05033aae09c46e4797527b622c4d564c72ed868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): nanobot/providers/openai_compat_provider.py:262-271 | nanobot/providers/openai_compat_provider.py:1234-1241 \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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4551643a394937eee616a8f2cbf7fcb023bc5c72d975004ba6a5cde9f13075aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): nanobot/agent/tools/mcp_oauth.py:200-205 | nanobot/providers/xai_oauth.py:780-786 \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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f2de5aa26f6f70d5bf8c239616c8ffe42f0b2edf2f791a8c8e4f5ce9fc3678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): nanobot/session/sqlite_store.py:491-496 | nanobot/session/sqlite_store.py:499-508 \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":"nanobot/session/sqlite_store.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"110ff6617ecaa4e75e63e992d4813c6f26dad0e35fc11bd9b5152ef18c0d3c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): nanobot/webui/ws_http.py:1810-1819 | nanobot/webui/ws_http.py:1822-1829 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ac87b11bbd27894ec2928ca6981081a50a718eb98c44f3dd3745a43a9c0739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): nanobot/session/sqlite_store.py:741-751 | nanobot/session/sqlite_store.py:756-763 | nanobot/session/sqlite_store.py:768-781 \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":"nanobot/session/sqlite_store.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67cba9e2bbbb0ac21350c59fb2e6c359cfe9485801a4370cf7d8cc252076712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nanobot/webui/mcp_presets_api.py:660-675 | nanobot/webui/mcp_presets_api.py:679-697 \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":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e80578d1dc9aeb78abfc4e17b335b511ab395f752d3fb93e993fc86f3b8c4bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nanobot/providers/azure_openai_provider.py:294-304 | nanobot/providers/azure_openai_provider.py:320-334 \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":"nanobot/providers/azure_openai_provider.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d975cf13d9021cb1ae92943bbcbe805db303c7cd1517196dcc188b3cf7c8c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): nanobot/agent/tools/registry.py:87-94 | nanobot/providers/openai_compat_provider.py:729-746 \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":"nanobot/agent/tools/registry.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac784bcf0ca360e3d1e92204a9f6d82e88f3c6a6b1061e76544fb0b1366c9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): nanobot/agent/tools/exec_session.py:215-221 | nanobot/agent/tools/exec_session.py:400-406 \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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9845a0ba5130630fc95796aaf36cbcf372108cc97b2f2f25039506084405db1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): nanobot/webui/remote_pairing.py:322-328 | nanobot/webui/remote_pairing.py:331-338 \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":"nanobot/webui/remote_pairing.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb5b3f161d4954be84227f9f17444bdd0cab8cd1fe8ba7e4c7d9d680382fd01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nanobot/webui/sidebar_state.py:241-250 | nanobot/webui/sidebar_state.py:254-262 \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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cbd402c529b99bc73f618b61d11becc9c55166eff7f416f06ed6299746eb4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): nanobot/__init__.py:81-88 | nanobot/cli/agent.py:37-44 | nanobot/cron/__init__.py: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":"nanobot/__init__.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2edd61bfce3c235613d0adf15d53401c06e97f63a3d3738f3f9ee837951853d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): nanobot/bus/runtime_events.py:217-230 | nanobot/bus/runtime_events.py:262-275 \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":"nanobot/bus/runtime_events.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3234b6f8917dd88a8b85e374199a271e710deac06c2c05c40787debd353eeb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nanobot/session/location.py:58-67 | nanobot/utils/atomic_file.py:119-128 \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":"nanobot/session/location.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a4d4197f75e15e3c5dbd76bce3ca83b297a7713d8be9ce801147dbc91308d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): nanobot/providers/openai_codex_provider.py:186-193 | nanobot/providers/xai_grok_provider.py:79-83 \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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd91791d591197d907730b6312a3d0f4fe7465c29eec85656b6b4c83ef8d9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nanobot/session/manager.py:106-114 | nanobot/webui/settings_models.py:517-526 \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":"nanobot/session/manager.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6c34862dfbb1e16a8deb2ee7e756b4b62fd12e56c9573863c9b30a2286a5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nanobot/webui/settings_system.py:1161-1169 | nanobot/webui/ws_http.py:1943-1951 \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":"nanobot/webui/settings_system.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b3cf2b0e86dc19978713f936ca0a05cd6cc485dad92a27b01eac7791b0e284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): nanobot/session/jsonl_migration.py:79-82 | nanobot/session/sqlite_store.py:55-58 \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":"nanobot/session/jsonl_migration.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"17363d698eb7062e2bd9647cb7c7dd8ce3585331b35ed8f1e5a02d8e0d9c307c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): nanobot/providers/github_copilot_provider.py:497-498 | nanobot/providers/openai_codex_provider.py:893-894 | nanobot/providers/xai_grok_provider.py:809-810 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ec08afc18684e0dc1c1ad53204e09351ef0bab277a4e74c19a78bed50701e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): nanobot/webui/settings_routes.py:203-206 | nanobot/webui/ws_http.py:298-301 \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":"nanobot/webui/settings_routes.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42fd599261820b65e983bc9de8e2b60bf0fb0df7637f3b730f051ec3a42967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): nanobot/agent/tools/mcp.py:124-126 | nanobot/providers/openai_compat_provider.py:256-258 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"95da29bca080544faf90206f85a4780daed6571c75f97dd85585cd83368de601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): nanobot/webui/session_access.py:28-29 | nanobot/webui/skills_marketplace.py:61-62 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"nanobot/webui/session_access.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e47f6152c7379dc0999b6e2cb9494f04459a1ac3b1c5ab70b79420bf1b2dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): nanobot/agent/tools/mcp_oauth.py:195-196 | nanobot/providers/xai_oauth.py:762-764 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"75aa5f22375064a5e8a57d1cd6768823b0d981b3ea4fcd8f239a6a4c92758032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): nanobot/webui/settings_models.py:1230-1260 | nanobot/webui/settings_models.py:1395-1425 \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":"nanobot/webui/settings_models.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb88db0472f9f606615366882e79abf7cf0294762c15579c20791c08f4aff02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): tui/scripts/conpty_smoke.py:65-86 | tui/scripts/pty_smoke.py:80-101 \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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e89e333fd03767114d97021e655e6992659c7549acffb77ed1060bcde21fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 2): nanobot/goal/tools.py:216-230 | nanobot/goal/tools.py:315-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. 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":"nanobot/goal/tools.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06f4a1b3dca80f6e3f33e737ebfa29df68021d928d8e75dd8836444ecf1b039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nanobot/providers/anthropic_provider.py:156-175 | nanobot/providers/openai_compat_provider.py:1492-1511 \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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"db39112f93e7d0451f419f9d5767142824ac428a495973e1c8eb2a3dc36304b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nanobot/command/builtin.py:488-505 | nanobot/command/builtin.py:538-555 \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":"nanobot/command/builtin.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0c7b50382459c5112594f2b5cb3ee4ce967df5b55cdd0cc494ae88bca1bea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nanobot/agent/tools/web.py:752-768 | nanobot/agent/tools/web.py:796-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. 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":"nanobot/agent/tools/web.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"68314cefd7b6a1991c0261221b1c6eaa34a3945500042d3e682a04bf0d1b7157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): nanobot/providers/transcription.py:561-575 | nanobot/providers/transcription.py:611-627 \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":"nanobot/providers/transcription.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2897f16ac7c3a1a5c01ff2ac38db3c8dc586701ffeb05d90c3cfeee68ada7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nanobot/webui/sidebar_state.py:309-325 | nanobot/webui/workspaces.py:122-138 \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. 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":"nanobot/webui/sidebar_state.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a104f34d881727e03b235de0f0fd488bc00af25d1cb99b47b8621834c5b45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): nanobot/agent/tools/filesystem.py:867-882 | nanobot/agent/tools/filesystem.py:940-955 \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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec4b49df06de374c57f62bf91d3cb7f1e941e8614f0c1747a486a4b59c8f717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): nanobot/providers/factory.py:169-182 | nanobot/webui/settings_models.py:1581-1596 \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 \u0060nanobot/providers/factory.py:169\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":"nanobot/providers/factory.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"57637d0e1fde4e641a56c8aba3a8916d5ac535b75792609fec506b70d334d330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): nanobot/providers/openai_compat_provider.py:1603-1618 | nanobot/providers/openai_compat_provider.py:1657-1672 \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 \u0060nanobot/providers/openai_compat_provider.py:1603\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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"700041f73c778263fbdfb7c53ae2945296a2097ff92ec15b91fecd62938a032b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nanobot/providers/image_generation.py:1223-1237 | nanobot/providers/image_generation.py:1307-1321 \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 \u0060nanobot/providers/image_generation.py:1223\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":"nanobot/providers/image_generation.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb04aaa36727f9b5f200e7b295752fed770d2af5be26fa25afcb2d408cd50c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): nanobot/providers/image_generation.py:1694-1708 | nanobot/providers/image_generation.py:1847-1860 \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":"nanobot/providers/image_generation.py"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7323a2f670ae3e85c4a941c57b46e1f7f91fdc5aa18d4a08b40fa777325568ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nanobot/providers/anthropic_provider.py:136-149 | nanobot/providers/openai_compat_provider.py:1476-1489 \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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae7efd7dba38973dd6436bcb79aa70cf02029e8220ace75964ca14849aac32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/agent/context.py:164-176 | nanobot/agent/context_governance.py:316-328 \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":"nanobot/agent/context.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e2647b9650bd0b51dcf0c68dff4b368ba06268f3123ff28f4df898dfcd5c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/agent/tools/schema.py:73-85 | nanobot/agent/tools/schema.py:107-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. 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":"nanobot/agent/tools/schema.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c3a1282c6bc12965f76f4a05f4e6c62e52322b33e20239273e559256a8f9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/cli/gateway.py:367-379 | nanobot/cli/gateway.py:390-402 \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":"nanobot/cli/gateway.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"255ebe8c144e27987db35bcaf406e8c04d19cc4df2e01ba32c716f3bbf923c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/cli/provider.py:169-181 | nanobot/cli/provider.py:198-210 \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":"nanobot/cli/provider.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"88557838d039f91aa7cd3198c0e57a4fc69ea0e2d5bff38dd174536125b6fd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/providers/openai_codex_provider.py:914-926 | nanobot/providers/xai_grok_provider.py:843-855 \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. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"89968de82230af9dbef8a17decb7052f6f4ae2280e5aa353a3717b0be621484b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/utils/document.py:198-210 | nanobot/utils/document.py:473-485 \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":"nanobot/utils/document.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e14dd329cb29555b99a178e476b0cc32e5092aa9faf01c4b407554c18c81fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/webui/recovery.py:331-343 | nanobot/webui/recovery.py:345-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. 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":"nanobot/webui/recovery.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f7b73d6c21fdbdbecae8ea6093265db42b98ca5098cafc61a936e07b69c37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): nanobot/webui/skills_marketplace.py:124-134 | nanobot/webui/skills_marketplace.py:214-225 | nanobot/webui/skills_marketplace.py:285-295 \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 \u0060nanobot/webui/skills_marketplace.py:214\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, \u0060nanobot/webui/skills_marketplace.py:135\u0060 calls \u0060set\u0060 and \u0060nanobot/webui/skills_marketplace.py:296\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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58e1a26923fc954a65b58a360572c94ad38e0cced9fb6343dd4e80d068ddc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nanobot/providers/image_generation.py:1030-1041 | nanobot/providers/image_generation.py:1720-1731 \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":"nanobot/providers/image_generation.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10e0517b3641e3088359afca2db64ef99fb0675e06cd3dfcfa6432ee6992d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nanobot/webui/skills_marketplace.py:213-224 | nanobot/webui/skills_marketplace.py:251-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nanobot/webui/skills_marketplace.py:213\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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa0c77e7cce591464004e5708336f02006e0e84371e5a42b0875736fd5954f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): nanobot/providers/image_generation.py:502-512 | nanobot/providers/image_generation.py:1030-1039 | nanobot/providers/image_generation.py:1720-1729 \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 \u0060nanobot/providers/image_generation.py:502\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":"nanobot/providers/image_generation.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66e8306c06d1fb654cbe6f9bd562fe0dd1ee7bfd2d806b7c36c56550c77f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/context_graph.py:58-68 | nanobot/session/history_graph.py:117-127 \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. 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":"nanobot/context_graph.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3f852142fc71e1f73d778e9b231ec0f7eeb3242551b2e5fdce21a34bbab3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/fallback_provider.py:328-338 | nanobot/providers/fallback_provider.py:453-463 \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 \u0060nanobot/providers/fallback_provider.py:328\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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"329858bda6479827886b0e7bf9b72876ef1d041d1baba719c9d469e50e794e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/github_copilot_provider.py:424-434 | nanobot/providers/xai_grok_provider.py:691-701 \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. 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dde84e1ad55aabeaa0ca119c687bfec6032d1e3fe4bd6f326b722f1a1564f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nanobot/session/state.py:615-624 | nanobot/session/state.py:659-668 \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":"nanobot/session/state.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3d41ace99f8035b3aabd560900f56f57948eadb59eba7087ca600cdf372949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): nanobot/webui/recovery.py:162-170 | nanobot/webui/recovery.py:316-325 \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 \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":"nanobot/webui/recovery.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fddb1a00a5f7d4c0987f31580ddd064096c00e33d59cc30ddaa5db0aff7d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): nanobot/webui/recovery.py:162-170 | nanobot/webui/recovery.py:278-286 | nanobot/webui/recovery.py:316-324 \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":"nanobot/webui/recovery.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ed7ca2b581619ef35355d1131ee4fb7d2c45211201d020b4d2daffdafac68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/webui/ws_http.py:1011-1019 | nanobot/webui/ws_http.py:1131-1139 \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":"nanobot/webui/ws_http.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa5488e49ae65efb3bf1f3fc82b26563fa7d50f44898cdd31d00ce6fbbb47b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): tui/scripts/conpty_smoke.py:125-132 | tui/scripts/pty_smoke.py:157-165 \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 \u0060tui/scripts/pty_smoke.py:157\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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d580a7b6fd5b2e93d0a54464900b20c98ffd3d3106d1bd7d15939398f4d607c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/cli/terminal.py:271-278 | nanobot/cli/terminal.py:315-322 \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":"nanobot/cli/terminal.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ea20cf8cd48b9bf42f07ff5c9df5c893389e80258710479c6b1edf4baa6e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/gateway/runtime.py:791-798 | nanobot/process_runtime.py:470-477 \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 \u0060nanobot/gateway/runtime.py:791\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":"nanobot/gateway/runtime.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e05e8df2ab31f46cee8068d57f51fa750796d9b698158a1a717c0620e135338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/optional_features.py:698-705 | nanobot/optional_features.py:775-782 \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":"nanobot/optional_features.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797d85f392d0ad2e6b4a7f4e286cd8a7017458bb8f8850a8fcdd88635c10e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/session/sqlite_store.py:742-749 | nanobot/session/sqlite_store.py:772-779 \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 \u0060nanobot/session/sqlite_store.py:742\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. 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b30cef2b313342464ca9f4a87ede14e88a028388e4f8460aad6c4b9d8ed83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): nanobot/session/sqlite_store.py:756-762 | nanobot/session/sqlite_store.py:768-775 \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 \u0060nanobot/session/sqlite_store.py:756\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. 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":"nanobot/session/sqlite_store.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f125b739125da92eed272d95e6845ab259e6fbb5f841f37f8cc7c84262ca327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): nanobot/agent/tools/web.py:591-597 | nanobot/agent/tools/web.py:762-768 | nanobot/agent/tools/web.py:806-812 \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 \u0060nanobot/agent/tools/web.py:591\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":"nanobot/agent/tools/web.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"549bc4c3aeb771930cc6dacf09b5e0f06f186cceffdbd4fc1d93a534bfabd960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nanobot/context_graph.py:77-83 | nanobot/session/history_graph.py:132-138 \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. 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":"nanobot/context_graph.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"11000352c1d09b5dfaf2a6b8882aabf02657120985d605dde30ba8fe73a52a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nanobot/providers/base.py:1427-1433 | nanobot/providers/fallback_provider.py:285-291 \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":"nanobot/providers/base.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c9b0bf55f1112296e17464b4f042260065a31d1afa1e66a2518bdf62aba200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): nanobot/cli/gateway.py:142-143 | nanobot/cli/gateway.py:292-297 | nanobot/cli/gateway.py:343-348 \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 \u0060nanobot/cli/gateway.py: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":"nanobot/cli/gateway.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9284239d22c2efc98c0725efdf4c3ecf374db660affdc6848b4f3e41b50a8dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/context_graph.py:66-71 | nanobot/context_graph.py:80-85 \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":"nanobot/context_graph.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed653c343a7ff657367b0ee5d201283ef7f8049fbe9ae65a10c33db2ead114a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/process_runtime.py:432-437 | nanobot/process_runtime.py:517-522 \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":"nanobot/process_runtime.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d3c1b67cebb90bb32dad756308fa8d4066eacd41deaa0485c4d20763c5fd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/providers/github_copilot_provider.py:423-428 | nanobot/providers/openai_codex_provider.py:839-844 \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. 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0336b009bba1c56c492e29f73bd375c32e056e6b8702e5008aa2ebb009bf8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/session/state.py:984-991 | nanobot/session/state.py:1085-1090 \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 \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":"nanobot/session/state.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa830d4c180b3f3e6f3e05264fc812e910de286e1bfadf6da14b6d895d8c33a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/update_uv.py:45-50 | nanobot/update_worker.py:91-96 \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. 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":"nanobot/update_uv.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8149ff81e5fa5831fd7f3a06a7bbefe3b72bed5f327703310bf75eb24ff98ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/agent/tools/mcp_oauth.py:131-135 | nanobot/agent/tools/mcp_oauth.py:146-150 | nanobot/agent/tools/mcp_oauth.py:151-155 \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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d594de08b9fa22a0cb25c905e133771ced93da4240794ba2e27140f7b407952f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/context_graph.py:65-69 | nanobot/context_graph.py:79-83 | nanobot/session/history_graph.py:134-138 \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. 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":"nanobot/context_graph.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ddf34b9ef61be1b9b3968d039860568c951f786d2de70902a63f267a28c70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/agent/skills.py:373-378 | nanobot/webui/skills_api.py:195-200 \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. 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":"nanobot/agent/skills.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f889d44b1a8f1edd052ff30e7c0ab17e2edcb96e111a4904eda6e25a44f776b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cli/commands.py:475-480 | nanobot/cli/commands.py:499-503 \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 \u0060nanobot/cli/commands.py:475\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 \u0060name\u0060 to \u0060str = typer.Argument(..., help=\u0022Feature name (e.g. weixin, matrix, bedrock)\u0022)\u0060 in one and \u0060str = typer.Argument(..., help=\u0022Channel name (e.g. telegram, matrix, slack)\u0022)\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":"nanobot/cli/commands.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"ececaf4ac1f44cb65094c70d7be0eec90763748c735e71778ce53e95fab6d7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cli/gateway.py:263-267 | nanobot/cli/gateway.py:280-284 \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 \u0060nanobot/cli/gateway.py:263\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":"nanobot/cli/gateway.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ced4aed3d1e37a0307cdff075ce3bbf40da086fd749f7f7fbbcc5b22c5f5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/providers/image_generation.py:400-404 | nanobot/providers/image_generation.py:814-818 \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":"nanobot/providers/image_generation.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c777c822082f0984fbdaffc7693234cc7ec66739b613c139756db8024169f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/utils/atomic_file.py:35-39 | nanobot/utils/atomic_file.py:75-79 \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, \u0060nanobot/utils/atomic_file.py:67\u0060 calls \u0060RenameInfo\u0060 and \u0060nanobot/utils/atomic_file.py:33\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":"nanobot/utils/atomic_file.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c9199b49368acb3a3b879de1a559725e6b3d47ee11ef74c1a3fb8f0358bf3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/utils/helpers.py:705-713 | nanobot/utils/helpers.py:763-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"def707bc757076f2d59244e1ee16a3e30814f2011293d7a58be1008e8257de0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): nanobot/agent/__init__.py:38-47 | nanobot/agent/tools/__init__.py:41-50 | nanobot/config/__init__.py:44-53 | nanobot/llm_usage/__init__.py:29-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/__init__.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3a5b821add590a6a1ee5a49df440fb7a803ddf97a3e3124e2c6d122859b042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/providers/github_copilot_provider.py:506-510 | nanobot/providers/openai_codex_provider.py:898-902 | nanobot/providers/xai_grok_provider.py:818-822 \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. 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, \u0060nanobot/providers/github_copilot_provider.py:501\u0060 calls \u0060_catalog_mapping\u0060, \u0060cast\u0060, \u0060isinstance\u0060 and \u0060nanobot/providers/openai_codex_provider.py:894\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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4187d022b61fa941ff3c3ea97be627c36a6d6081ea02ecb8787426bb1b1aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/providers/github_copilot_provider.py:514-518 | nanobot/providers/openai_codex_provider.py:906-910 | nanobot/providers/xai_grok_provider.py:826-830 \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. 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3074da303b9f2750fd5a41de162884e07f235318ae441c1ea02cbacd7f13b18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/openai_codex_provider.py:760-770 | nanobot/providers/xai_grok_provider.py:640-650 \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. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"59710f3350f5784ac41db7d9e346b0f8231389b6525d25f0ea3f2f6a5e84be5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): nanobot/webui/cli_apps_api.py:49-54 | nanobot/webui/mcp_presets_api.py:123-128 | nanobot/webui/sidebar_state.py:66-71 \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. 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":"nanobot/webui/cli_apps_api.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d81270700e41907db29e6dcd16f01bb7f9461ade9cf7fa53c58a7722778981f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/agent/cron_turns.py:47-51 | nanobot/triggers/local_turns.py:45-49 \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. 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":"nanobot/agent/cron_turns.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2f7e6500f1776dacd52497d654fabebc36a84622d0947fc1c4d1b87e4780e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/agent/loop.py:2595-2599 | nanobot/webui/workspaces.py:230-234 \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. 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":"nanobot/agent/loop.py"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0b2df94e4354707e7393527aa7c16964423b5ada987ad773bf95ef64fc5376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cron/session_turns.py:56-60 | nanobot/triggers/local_session_turns.py:45-49 \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. 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":"nanobot/cron/session_turns.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d86fa86aaa423fa7cf3ad42ddde20e9bf5661d600adf22700e3a3f17cc9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/agent/tools/web.py:528-533 | nanobot/agent/tools/web.py:667-672 \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 \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":"nanobot/agent/tools/web.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6715efae50e8919cdb02d9a4ab9b7f2fed0eb6946eae6dab5306cbc3ecf36ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): scripts/release_candidate.py:41-45 | scripts/release_plan.py:20-21 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"scripts/release_candidate.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91eefcd1dcb83631703ca96d7c43460449339ab73d424fef90210f548fd681c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/docker_compose_smoke.py:142-153 | scripts/docker_compose_smoke.py:187-197 \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":"scripts/docker_compose_smoke.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a9aaa9b7dc173d6c25255501bb9c4ae8598a43b203e09be4e92d9a3d4fe3f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/release_candidate.py:79-84 | scripts/release_candidate.py:115-120 \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":"scripts/release_candidate.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a4ab4689fa83b1b12b5f6d520e89c96dd2fdf1d79515e1030f0bb1992bb373"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MCPOAuthStorage (LCOM4 5): MCPOAuthStorage\u0027s methods fall into 5 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 5 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":"nanobot/agent/tools/mcp_oauth.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb47378ca560418867c5c9df26967ab266fa6d502f9af47916c80c79ca979636"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ContextGovernor (LCOM4 4): ContextGovernor\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":"nanobot/agent/context_governance.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb9b8afb8c03951d62ac50ee8ffae0fa2ec6672cf317ff95edeef8491f8965f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reselecting the detected language saves it: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/browser/gallery-language.spec.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a70967d640fba97c4cf0944a64a727f0517f13014eeaf73c4b584b47f0265d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: keeps clipboard failures visible while an agent turn is active: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/composer.test.ts"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"504f47c3ac7b21810e514e19ecd1d1b646eb7500d5af6f163a97d9982cdbde7c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: refreshes the bootstrap token before REST settings auth expires: 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 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":"webui/src/tests/app-layout.test.tsx"},"region":{"startLine":4582}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0730369d820845847c5549635574f984eeeab3f0aae4076fb80634c44170c1"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: opens a conversation\u0027s existing actions from the row context menu: This test sets up 5 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":"webui/src/tests/chat-list.test.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4112f331742920b6de154229f885b81d4d6033ec6a6ae752af933b4fe7ffc54f"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows temporary chats separately and lets the user reopen or close them: This test sets up 6 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":"webui/src/tests/chat-list.test.tsx"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc5616b3aeebed64eec5a2f405b649670c625c783460d1c841c3202abaea063"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: ignores late metadata from a previous session: 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 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":"webui/src/tests/file-actions.test.tsx"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f49ebb09387b9010fbbad031d78f090b691fe0f6b2a8aedad57a021b52cb4d1"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: bounds regular replay tails but retains temporary events until discard: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 2 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":"webui/src/tests/nanobot-client.test.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9cfbcebb5fb8e44c11b07d3fde7f356ce188e48b3bd3c7c0de8629dc1a2218"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: uses the host socket bridge for native host URLs: This test sets up 5 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":"webui/src/tests/nanobot-client.test.ts"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fe85928da715b2acc9df4634a330499f9f41285c512bb1f42af92e0318a230"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: buffers transcript events independently of live observers: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 2 real object(s) of its own, and its only verification is 7 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":"webui/src/tests/nanobot-client.test.ts"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59046360692e57c69af1c9e42ee7b244267c738efaef0ea8593bd62e3eb3cb7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: notifies run status subscribers and replays running chats: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 2 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":"webui/src/tests/nanobot-client.test.ts"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00ee3334b8be1027b7421f5d7d5b50c5391f9f1eeb1320c6665db88b58fde48"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: buffers after unsubscribe until the chat is subscribed again: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 2 real object(s) of its own, and its only verification is 7 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":"webui/src/tests/nanobot-client.test.ts"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08e8099f341f8d094ef3b2bc7b2c6da2304591567c8472c06b28cd997767353"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: keeps a retargeted pane surface in the same physical motion: This test sets up 5 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":"webui/src/tests/pane-workbench.test.tsx"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4fea131b1cd2b92b79d951cc5a9be132db29d4cfbd8c27b3dda3cdfcc8318c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not start work when mounted only for the closing animation: This test sets up 5 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":"webui/src/tests/quick-pair.test.tsx"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9630aa253d3958f2a765e3d74c657a4a84b7be29b5c3b6cdf46a30c7e05f82a5"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: cleans up an invitation arriving during the closing animation: 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":"webui/src/tests/quick-pair.test.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cebe266490f85d94d5517d4db171c34dbb64c144120a0d0fc5b31d97387e620"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: cleans up an invitation returned after closing the dialog: 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":"webui/src/tests/quick-pair.test.tsx"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"87262dfc0f07696a485212078fb1bce308958e9c2b96f42980e8b35cbc0de85c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: reviews a returned receipt without generating another key or connecting automatically: This test sets up 7 test doubles (for example \u0060vi.fn\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":"webui/src/tests/quick-pair.test.tsx"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eca7b90469c793f3ad60c7d82b15009db0cd96f41ab460ff80635bfc3809e18"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: renders an invitation from caller-owned state and delegates actions without claiming it: 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":"webui/src/tests/star-prompt.test.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"127efbf0b645bd8a3f3d290971ab27adf384d58ae1a4be10cdb3f8ee2a9a0dc0"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: focuses the original tab without reloading its connection or drafts: 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 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":"webui/src/tests/sw.test.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"703dd83311a5897f9459b6d359a18d10c9447b805e9b80e202664e8942bf3a93"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: opens the destination when the source closed, even if an older page is still open: 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":"webui/src/tests/sw.test.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab729b65d46018341cdc9a42990d2392922b1882f3b902526ab4bb81572be56"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: offers a follow-up action for text selected within one completed answer: 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":"webui/src/tests/thread-messages.test.tsx"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0498b8f3a03bea733ffc66392ac28bec2831b09f84db5cab98b7743b176e659"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: webui/src/tests/thread-shell.test.tsx::ThreadShell starts a fresh trace-detail read after leaving and returning to the same chat: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"421d76752d1d024df5199868deed09845ebcc3a8b1b288d35db3038dfe845601"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadComposer.tsx: webui/src/components/thread/ThreadComposer.tsx changed 74 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 474 in ThreadComposer.ThreadComposer at line 549. 39 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ThreadComposer.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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc582cdcc20335cb2d379ea0933c57c5826bd73d4c1b843b249db94b5f84b10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/App.tsx: webui/src/App.tsx changed 75 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 312 in App.Shell at line 821. 39 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/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":"webui/src/App.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"05412cf80850dfb52a7cff4b422a01adb17fb4078869d9ebbabb4d8864cb81bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadShell.tsx: webui/src/components/thread/ThreadShell.tsx changed 83 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 277 in ThreadShell.ThreadShell at line 359. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ThreadShell.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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4efa05aede94863a67bee3ae4b594d24c2fb35766df8947a323011e19d8bced"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadViewport.tsx: webui/src/components/thread/ThreadViewport.tsx changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 301 in ThreadViewport.ThreadViewport at line 271. 31 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ThreadViewport.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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"893ca5c45e41374d9b65774d77be0f041e4365736b90e0ee02f222e5e24ba018"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/app/app.ts: tui/src/app/app.ts changed 86 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 130 in NanobotTui.handleKey at line 1320. 3 of those changes were fix/bug commits, and the other 83 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/app/app.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":"tui/src/app/app.ts"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"053420e2c35d0c526c6af50ae968fc8c164eae77f8a25e912997723ef47386a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/WorkspaceControls.tsx: webui/src/components/thread/WorkspaceControls.tsx changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 274 in WorkspaceControls.WorkspaceProjectPicker at line 158. 23 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/WorkspaceControls.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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c40142f8646d172cc12a84d42b11954ddeb3018178f58aca226ba051fa68dc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useNanobotStream.ts: webui/src/hooks/useNanobotStream.ts changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 153 in useNanobotStream.useNanobotStream at line 118. 24 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useNanobotStream.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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7019befdf3a2cbc2e84e115ec3a2f9db7b0e44d76e063e9a2f348f8e7cbd2c09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/ModelsSettings.tsx: webui/src/components/settings/models/ModelsSettings.tsx changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 157 in ModelsSettings.ModelsSettings at line 202. 18 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/ModelsSettings.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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"867c4adc9576480069f2e9e6efd3387fe673b3c63bb2335d2e6490e1c7683048"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/api.ts: webui/src/lib/api.ts changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in api.parseThreadProjectionEvent at line 322. 13 of those changes were fix/bug commits, and the other 35 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/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":"webui/src/lib/api.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f80772bec50269209219621e1ae47ec8a68af2db8a80a2ff9de790418ed3d55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ChatList.tsx: webui/src/components/ChatList.tsx changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 175 in ChatList.ChatList at line 272. 11 of those changes were fix/bug commits, and the other 16 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ChatList.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":"webui/src/components/ChatList.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e212b905076976758fae88855410dad3795f0464456d1bc4fe3ce53d5f2f49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/loop.py: nanobot/agent/loop.py changed 86 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in AgentLoop._run_agent_loop at line 1092. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/loop.py\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":"nanobot/agent/loop.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39bd5ab2d0a9db20085f923a2b7561dab9959f275bbdbb3371a02941e0979ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SettingsPage.tsx: webui/src/components/settings/SettingsPage.tsx changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in SettingsPage.SettingsPage at line 80. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"620da3c5563ecb80c88c2002b17e23f3013d310f522a1d8c89557af8a5122e28"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/RemoteConnectionsPage.tsx: webui/src/components/remote/RemoteConnectionsPage.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 247 in RemoteConnectionsPage.RemoteConnectionsPage 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/RemoteConnectionsPage.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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"241072d395400bbc8bdbb3db26b900af3a9e055d3ed1c82ce7a1e2ae88721c90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/runner.py: nanobot/agent/runner.py changed 50 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in AgentRunner._run_core at line 400. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/runner.py\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":"nanobot/agent/runner.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe9ddd70528f117e020bb346471134c94d0dcd39493694753d233830ef0616c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/transcript.py: nanobot/webui/transcript.py changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in transcript._client_projection_event at line 1469. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/transcript.py\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":"nanobot/webui/transcript.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ec19deb9ec7e9210a881889a74f45438e76b6d1bab81a7fc6dd008c755eba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/thread-event-projection.ts: webui/src/lib/thread-event-projection.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 150 in thread-event-projection.reduceThreadEvent at line 893. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/thread-event-projection.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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"abde7d956cf23b51e00d5bd4a9efed8d6cc1f507267aa0546e367da8874f2e54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/ProviderSettings.tsx: webui/src/components/settings/models/ProviderSettings.tsx changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in ProviderSettings.ProvidersSettings 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/ProviderSettings.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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd378c0f6ac548e4e5c9f8e58ce15b988c0897729f1c872df904873171f5db5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/ws_http.py: nanobot/webui/ws_http.py changed 54 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in GatewayHTTPHandler._handle_webui_automation_action at line 1597. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/ws_http.py\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":"nanobot/webui/ws_http.py"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e310e549f64a7c959d7919cb316700516f9194ce38abd2df0794e70bd499043"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_compat_provider.py: nanobot/providers/openai_compat_provider.py changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in OpenAICompatProvider._build_kwargs at line 837. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/openai_compat_provider.py\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":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"995b4c079dd676771747cbcb083d010036e777d7c49ef8a74e41041170285f08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/nanobot-client.ts: webui/src/lib/nanobot-client.ts changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in NanobotClient.handleMessage at line 903. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/nanobot-client.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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7632c9e5977155976163245f46b23119f767ac3bc94adfd22d691a82cbb7d73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/workbench/PaneWorkbench.tsx: webui/src/components/workbench/PaneWorkbench.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in PaneWorkbench.PaneWorkbench 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/workbench/PaneWorkbench.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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0164e3068230a9be080e4a3282eeb145f7fa0bae93e14c426596d44c47c9a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadMessages.tsx: webui/src/components/thread/ThreadMessages.tsx changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in ThreadMessages.ThreadMessages 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ThreadMessages.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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3778348359fe1c745177ea0d5b6efdbe1f0474c9aa80716e0a2fb126a7d2e817"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/inbound_commands.py: nanobot/webui/inbound_commands.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in WebUICommandRouter._dispatch_message_once 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/inbound_commands.py\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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7434c92691ae12b6eceb227e12d8a1a90a262219f19cec5cbd882969d7521a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ModelPresetBadge.tsx: webui/src/components/thread/ModelPresetBadge.tsx changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in ModelPresetBadge.ModelPresetBadge at line 106. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ModelPresetBadge.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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e11d20b601423480ef63fe7740f7b2fb3efb2454727838af5a8ebcd5e15fd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/thread-transcript.ts: webui/src/lib/thread-transcript.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 285 in ThreadTranscript.accept at line 554. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/thread-transcript.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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd9a2cd887a2db2725e920ebf11af08813a0ce2d2ff27d6c84882b87738e44a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/MessageBubble.tsx: webui/src/components/MessageBubble.tsx changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in MessageBubble.MessageBlockMenuActions at line 151. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/MessageBubble.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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e572fcf1ca11dcc3b9521b8dd72005009bb867f1f2c2425397ff32fdd9ec2d37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/ModelControls.tsx: webui/src/components/settings/shared/ModelControls.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in ModelControls.ModelIdPicker at line 187. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/shared/ModelControls.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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"54faaa6086435efd964d1913039c9bd7da0f6d54adaf88679b0fe85b07c7dac8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AppsSettings.tsx: webui/src/components/settings/system/AppsSettings.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in AppsSettings.McpAppsCatalogRow at line 501. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/AppsSettings.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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f6b8c9155c4324ab7248f8a8525568a35bf93b3fb880bf47b52c0275a9325"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_models.py: nanobot/webui/settings_models.py changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in settings_models.update_model_configuration at line 1367. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/settings_models.py\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":"nanobot/webui/settings_models.py"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8639e871f893879e4718c0f37d4292d5705585103ee6d7d05fe035767e2a850a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/RemoteInstances.tsx: webui/src/components/remote/RemoteInstances.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in RemoteInstances.RemoteInstances 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/RemoteInstances.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":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8dee1d20970ae304ce1145f9ccea5c89e024d333b5659a132f8cbb6806caa2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/manager.py: nanobot/session/manager.py changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in Session.get_history 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/session/manager.py\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":"nanobot/session/manager.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7a559cfcbb36b6ea2ce87952977b2b525904d65ff2077da986f7c81b302f08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_codex_provider.py: nanobot/providers/openai_codex_provider.py changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in OpenAICodexProvider._call_codex at line 208. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/openai_codex_provider.py\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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c73f8cf24667db22a2732951274dcb5c0b45bab7f8ca366a920430ec92e6e98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_responses/parsing.py: nanobot/providers/openai_responses/parsing.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in parsing.consume_responses_events at line 369. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/openai_responses/parsing.py\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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caec55ec6aa1fcdc59b9ff755fd4f0d4f5e03ef485666c179b188712bb28fbd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/fallback_provider.py: nanobot/providers/fallback_provider.py changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in FallbackProvider._try_candidates at line 489. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/fallback_provider.py\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":"nanobot/providers/fallback_provider.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"3166af9f85a8ae1febd3d9f9745630f2b59e9aef649764dfcafd5b7f7f4f3944"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AutomationsSettings.tsx: webui/src/components/settings/system/AutomationsSettings.tsx changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in AutomationsSettings.AutomationsSettings 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/AutomationsSettings.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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe32ad0fd40fbc0083519df2f3285b7176fc70a30c68e11d4131ca97c40056"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/base.py: nanobot/providers/base.py changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in LLMProvider._run_with_retry at line 1585. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/base.py\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":"nanobot/providers/base.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"921540147d72e98126c01a1b193f5d6aa35d6e0c64295dc228b624d2ea4731cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/MarkdownTextRenderer.tsx: webui/src/components/MarkdownTextRenderer.tsx changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in MarkdownTextRenderer.MarkdownTextRenderer at line 525. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/MarkdownTextRenderer.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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5678221dc05cf4556f77d48df47945acb7ccfa6126e6c01a19269ceecf11ffd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/remote_instances.py: nanobot/webui/remote_instances.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in RemoteInstances.action 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/remote_instances.py\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":"nanobot/webui/remote_instances.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9516222605d1c6e638fb8cf772bcbd03a836ca5081b3b8f92c23a77e667ef0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/memory.py: nanobot/agent/memory.py changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in MemoryArchiver.archive at line 783. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/memory.py\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":"nanobot/agent/memory.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"b889db8928b002636c84a5eb10a5f63ac734241c90a4f4b063cb633e398a6981"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/filesystem.py: nanobot/agent/tools/filesystem.py changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in EditFileTool.execute at line 1079. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/filesystem.py\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":"nanobot/agent/tools/filesystem.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"26163a320fda25194fcbfb0e096476ac0fd7c28701a37409edcaa77e2b7f6229"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/useModelSettingsActions.ts: webui/src/components/settings/models/useModelSettingsActions.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in useModelSettingsActions.useModelSettingsActions.saveModelSettings at line 169. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/useModelSettingsActions.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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d2c0c5f0c7b8213e2b1b78c13726e746fe8be6905dcb34d8d54088df5fdb89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/AgentActivityCluster.tsx: webui/src/components/thread/AgentActivityCluster.tsx changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in AgentActivityCluster.FoldedAgentActivity at line 233. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/AgentActivityCluster.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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6103188ed8e102793756ba531f276cbe9f7953d8a2a9c68ec4c7d60b080117f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/browser/fixture.tsx: webui/browser/fixture.tsx changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in fixture.RailFixture at line 120. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/browser/fixture.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":"webui/browser/fixture.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b37eaa1575cf2add8b7284f69e9f6b8a62c37647c9417568f0e8dacadd7da10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/dialog.tsx: webui/src/components/ui/dialog.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in dialog.DialogContent at line 77. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/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":"webui/src/components/ui/dialog.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac0af25a5531d3ccf36cc413e13b1b122da2c645aaea255b84146a1f317c3df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/webui.py: nanobot/cli/webui.py changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in webui.webui at line 68. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/webui.py\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":"nanobot/cli/webui.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc45424109304c7a305f579825b4e94d1904046de0b7138b4847b1d4f67584c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/SubagentTasks.tsx: webui/src/components/thread/SubagentTasks.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in SubagentTasks.SubagentTasksProvider at line 56. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/SubagentTasks.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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd010bbb7e7481fc80382508979406fbd1cef8eec39e021f55e4885f7a76dc4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/useSettingsController.ts: webui/src/components/settings/useSettingsController.ts changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in useSettingsController.useSettingsController at line 75. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/useSettingsController.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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2ac1c707b8898f1c03bee5400229ca493495f702078e95d479f313bf3e7147"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/gateway_runtime.py: nanobot/cli/gateway_runtime.py changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in gateway_runtime._deliver_to_channel at line 66. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/gateway_runtime.py\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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0868af505848e8f651a60d08af9b2a51d79baa5bd2d1b94ebc115ac906391"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/RuntimeConfigSettings.tsx: webui/src/components/settings/system/RuntimeConfigSettings.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in RuntimeConfigSettings.RuntimeConfigSettings at line 174. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/RuntimeConfigSettings.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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6557f8cd56d15c941d1619fc61bc93d41ab50848da46f56c9e898d940e6372"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/webui_turns.py: nanobot/session/webui_turns.py changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in WebuiTurnRoutePolicy.__call__ at line 384. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/session/webui_turns.py\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":"nanobot/session/webui_turns.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"825299ec082bdea5e504669c17f685748ee01dfc913f2e5dd95832b33eade832"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/Sidebar.tsx: webui/src/components/Sidebar.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in Sidebar.Sidebar at line 117. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb0a954047a9f58ba5a93ca672c86c10ef64bfb32cc69a41862f0ba103e8825"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/rendering/transcript.ts: tui/src/rendering/transcript.ts changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Transcript.prependHistory at line 271. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/rendering/transcript.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":"tui/src/rendering/transcript.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3936391fde985df278ffd7ac3ced98720bf0846b55f85aeef6e104b836c06a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/FileReferenceChip.tsx: webui/src/components/FileReferenceChip.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in FileReferenceChip.FileReferenceChip at line 49. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/FileReferenceChip.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":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6b8f126d572cc89afc4b3d8efb6cf79d6c86bedac5c53417f1f6d34087cfd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/turn_delivery.py: nanobot/agent/turn_delivery.py changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in TurnDelivery._publish_event at line 467. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/turn_delivery.py\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":"nanobot/agent/turn_delivery.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd3dccad417138a55569bcd7eba0cfdf816a0d1ea19c1098cd0c06b0dcb8e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/shell.py: nanobot/agent/tools/shell.py changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ExecTool._prepare_command at line 349. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/shell.py\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":"nanobot/agent/tools/shell.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc55b54cc65b2f37db940e50e3abf9cf37743d4c66f9099afeacb31869fe902"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelSetupPanel.tsx: webui/src/components/settings/channels/ChannelSetupPanel.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ChannelSetupPanel.ChannelSetupSurface at line 163. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelSetupPanel.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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b86a3d90e0af4abc91e8505b128a078d3990f8aad3cf2005dab36fe7ebedbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_system.py: nanobot/webui/settings_system.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in SystemSettingsHandler.handle at line 505. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/settings_system.py\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":"nanobot/webui/settings_system.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadee58d238185e6759c1cd831b6ce4e12a7e45244fff1b4f75215f24a8b73d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_routes.py: nanobot/webui/settings_routes.py changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in WebUISettingsRouter.dispatch at line 282. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/settings_routes.py\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":"nanobot/webui/settings_routes.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69a543dfeec84b87605e4c137111cba0b1307e2ccc4a64cd3a83bfadc3d83b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/xai_grok_provider.py: nanobot/providers/xai_grok_provider.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in XAIGrokProvider._call_xai at line 101. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/xai_grok_provider.py\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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a575eb487906201f79d79a1de32c508f17ad2e90952253b0e6fd0a709b44f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/factory.py: nanobot/providers/factory.py changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in factory._make_provider_core 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/factory.py\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":"nanobot/providers/factory.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c648318147d90cc9fe36d882543afefb96e1b9261831e435cb245eb83e60ab8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ComposerUsagePopover.tsx: webui/src/components/thread/ComposerUsagePopover.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ComposerUsagePopover.ComposerUsagePopover at line 25. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ComposerUsagePopover.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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e4711e96a3c1d1304fe27a3c84cefa194b56e25a6b037bb26b6c9096234e5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/linear/webui/LinearPanel.tsx: nanobot/channels/linear/webui/LinearPanel.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in LinearPanel.LinearPanel at line 22. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/channels/linear/webui/LinearPanel.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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d54b8ddd713bf42d4ec0fbd1c36aa4daad8631ef1d3e9b108e0398db885a1bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/web.py: nanobot/agent/tools/web.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in WebSearchTool._search_deepseek at line 815. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/web.py\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":"nanobot/agent/tools/web.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae92ad00ba3f858876eff6b205f76a679e8f9f41d4d25444512018438bb46bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/recovery.py: nanobot/session/recovery.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in recovery.restore_runtime_checkpoint at line 323. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/session/recovery.py\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":"nanobot/session/recovery.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb557323fd376f1cd2a0800a4c9c7a9e7dafdb1ac0276f00bea3e5173521fce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/search.py: nanobot/agent/tools/search.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in GrepTool._execute_sync at line 680. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/search.py\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":"nanobot/agent/tools/search.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ad57340a0aa96d66a06a36acae14f4a034f6a16d6e3dfb9d95f54036d4ed5e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/utils/helpers.py: nanobot/utils/helpers.py changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in helpers.split_message at line 594. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/utils/helpers.py\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":"nanobot/utils/helpers.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"301ba6bb5c223e41bd6d72cc762a4507eea74a894c593ec7270895a725409310"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SkillsMarketplace.tsx: webui/src/components/settings/SkillsMarketplace.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in SkillsMarketplace.SkillsMarketplace 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/SkillsMarketplace.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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"99be0e1f332c052923913e140df939132cf078e00d0678fb77179ba6b7df1fc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/subagent.py: nanobot/agent/subagent.py changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SubagentManager._create_task at line 581. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/subagent.py\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":"nanobot/agent/subagent.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e644c411cf51bec7cbf24c6b94942ef6ca2a8ea6fb1383021eb98d87bd395d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SkillsCatalogSettings.tsx: webui/src/components/settings/SkillsCatalogSettings.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in SkillsCatalogSettings.SkillDetailSheet at line 279. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/SkillsCatalogSettings.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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bab11fbc4a20a1d0dc8521110c6940edfd97b79bc70d81d9f1f961a3d202e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_runtime.py: nanobot/webui/settings_runtime.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in settings_runtime.update_runtime_config at line 82. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/settings_runtime.py\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":"nanobot/webui/settings_runtime.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6a0dbeb30be080925c77c08e0ec84956740b980a56b28258889562129fda7f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/ChannelsSettings.tsx: webui/src/components/settings/system/ChannelsSettings.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in ChannelsSettings.ChannelsSettings 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/ChannelsSettings.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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"33907ec8672856aa4c0710339158f0e736a34ff49c47b1699ea0007855086548"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/CodeBlock.tsx: webui/src/components/CodeBlock.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CodeBlock.CodeBlock 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/CodeBlock.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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4d4561f390f7644abb3effa290214ac2c52c222e5b9c606fc8baf717249609"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/QuickPairSetup.tsx: webui/src/components/remote/QuickPairSetup.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in QuickPairSetup.QuickPairSetup at line 12. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/QuickPairSetup.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":"webui/src/components/remote/QuickPairSetup.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d6b0aa8baf2d7d1396937611dfc38374ceef83f3092a3fec4e091cbf8fb92d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/mcp.py: nanobot/agent/tools/mcp.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in _MCPWrapperBase._request_with_recovery at line 574. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/mcp.py\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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33b9c69e09dd5612240f5e950016e2e9432af7388c3db05ad37b5c9dd814fac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelQrConnectFlow.tsx: webui/src/components/settings/channels/ChannelQrConnectFlow.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ChannelQrConnectFlow.ChannelQrConnectFlow 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelQrConnectFlow.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":"webui/src/components/settings/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0171097e7a2d29b6e504a8815f2a4edf541e005091c02be2f831cd0f167da1ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/PromptNavigator.tsx: webui/src/components/thread/PromptNavigator.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in PromptNavigator.PromptNavigator 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/PromptNavigator.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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c110c9daa5f6d82db3de750c46090a768f2eed2890ada9e8d11433f2545d58e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/generic-tool-model.ts: webui/src/components/thread/activity/generic-tool-model.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in generic-tool-model.activityLabel at line 209. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/generic-tool-model.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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17827906fb40093becc1870bb6f166e627efdb4766705d28ae98b3ef46eec43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/github_copilot_provider.py: nanobot/providers/github_copilot_provider.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in github_copilot_provider.login_github_copilot at line 80. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/github_copilot_provider.py\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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f99ca30a8a7b8e005aa7ec4e495735f59e9eebff38cf15672389ef34b4e4e0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cron/service.py: nanobot/cron/service.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CronService.update_job at line 858. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cron/service.py\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":"nanobot/cron/service.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3c6bf53bdb855995182b499cc398ee11970dd7e5c54d9c58a7c39c0b56562"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/message.py: nanobot/agent/tools/message.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in MessageTool.execute 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/message.py\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":"nanobot/agent/tools/message.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"03de679d6b23e24823018b6ddf59583c55a5d209a4726176fbee33505a402265"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/routing.py: nanobot/providers/routing.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in routing.resolve_provider_route 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/routing.py\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":"nanobot/providers/routing.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8d70e78b52384ca1b70f9f7d7624ad091fa9f65288098101eb929fc59d3ac5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/ActivityStep.tsx: webui/src/components/thread/activity/ActivityStep.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ActivityStep.ActivityStep at line 31. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/ActivityStep.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":"webui/src/components/thread/activity/ActivityStep.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"918a5bb01876157e3d0d9e1a004e446d84207fcac48fc7973cf13729076903e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/CredentialForm.tsx: webui/src/components/settings/channels/CredentialForm.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in CredentialForm.CredentialForm 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/CredentialForm.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":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"116cd94dc38a4f6756172cedaab11e2fc79d4c2067859433ba1aac0fc00b5907"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/recovery.py: nanobot/webui/recovery.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in RecoveryCoordinator._recover_session at line 257. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/recovery.py\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":"nanobot/webui/recovery.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"49876544377c6b4087adfe72bb183b46f5f22a38264f3602a82dc6c6f51c7f3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/outbound_delivery.py: nanobot/webui/outbound_delivery.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in WebUIOutboundDelivery.send at line 274. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/outbound_delivery.py\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":"nanobot/webui/outbound_delivery.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e9b70a62bc598b5a6d98d72771e41214c5b8a78437d82c6edd20216b906840"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/PromptRail.tsx: webui/src/components/thread/PromptRail.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in PromptRail.PromptRail at line 22. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/PromptRail.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":"webui/src/components/thread/PromptRail.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff071a8b1a81f6dd31e308e6dc47616d09a97bf025cafef9880a4fbb9cbf27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/views/usage-panel.ts: tui/src/views/usage-panel.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in UsagePanel.render at line 110. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/views/usage-panel.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":"tui/src/views/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdbd0fdc27657f64605f6921bff12b77622ba879e1f43351e8b6b2b0d7139f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/browser/skeleton-additions-fixture.tsx: webui/browser/skeleton-additions-fixture.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in skeleton-additions-fixture.SkeletonSurface at line 115. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/browser/skeleton-additions-fixture.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":"webui/browser/skeleton-additions-fixture.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb3bc55a81bdf8a8b2147c9273ab0e90bda4ecf470f520c07c7f411e782f55d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/views/footer-hints.ts: tui/src/views/footer-hints.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in footer-hints.hintsFor 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/views/footer-hints.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":"tui/src/views/footer-hints.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86fd173de1cff895986da9d5a1b40520222c6212de2c95513c3572b66f85ba0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/SettingsControls.tsx: webui/src/components/settings/shared/SettingsControls.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SettingsControls.RestartSettingsFooter at line 245. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/shared/SettingsControls.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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1515ab1764ac2c7cd74dd2295967391e0eb2280b9ac2c1477761cdf9b4152962"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/McpManagementDialog.tsx: webui/src/components/settings/system/McpManagementDialog.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in McpManagementDialog.ConnectionPanel at line 535. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/McpManagementDialog.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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfa02337d47328cf6f0db5ed629a6457976fb14e26e1871873913ade2487cfe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/ModelAPIControl.tsx: webui/src/components/settings/models/ModelAPIControl.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ModelAPIControl.ModelAPIControl at line 12. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/ModelAPIControl.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":"webui/src/components/settings/models/ModelAPIControl.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a3752aba2d035313987c355b51b31e1ff6b049074f293fbda6f167ede1c21a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/exec_session.py: nanobot/agent/tools/exec_session.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ExecSessionTool._wait at line 854. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/exec_session.py\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":"nanobot/agent/tools/exec_session.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60bc1cbdd4d925a48105156ae6d75e228d7acfb19c860910a0394c8e14f654"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/CliAppMentionText.tsx: webui/src/components/CliAppMentionText.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in CliAppMentionText.splitCapabilityMentionSegments 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/CliAppMentionText.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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad1019c36f7c7717df386a8879f5e2851422cac8917b45683d2eb54e07b524"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/SessionSearchDialog.tsx: webui/src/components/SessionSearchDialog.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in SessionSearchDialog.SessionSearchDialog 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/SessionSearchDialog.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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10485c1f771be4b84e2a2d7f32e4026a74a7a62085c0d0ea16801bff2597fac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/usePromptHistory.ts: webui/src/hooks/usePromptHistory.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in usePromptHistory.usePromptHistory at line 51. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/usePromptHistory.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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e639ee6507bce3a761c9cd08460469f0ecad6b1118079f1cb13350fadfce78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/verify_packaged_update.py: scripts/verify_packaged_update.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in verify_packaged_update.run_serial at line 875. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- scripts/verify_packaged_update.py\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":"scripts/verify_packaged_update.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc962b5fa06ba6e06cce4805e017fe5cffff183893d302b22f53080015b8e4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/menus/picker-menu.ts: tui/src/menus/picker-menu.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PickerMenu.render at line 145. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/menus/picker-menu.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":"tui/src/menus/picker-menu.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5c9066a03be45530ca89d43cb62a7a8ca226279f4a95071736f053861c83ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/useHostSessions.ts: webui/src/components/remote/useHostSessions.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in useHostSessions.useHostSessions 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/useHostSessions.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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"508bdd4cba681f70658ff059ac083b530849f1c81ebd16fc0d6b733f0fb94291"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/sqlite_store.py: nanobot/session/sqlite_store.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SqliteSessionStore.append_history at line 588. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/session/sqlite_store.py\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":"nanobot/session/sqlite_store.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7da44ec738cee12564c5267f928f14f7cdd9671d571960fbe159e19e2930e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/vite.config.ts: webui/vite.config.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in webuiManualChunk at line 87. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/vite.config.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":"webui/vite.config.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2b27c34ae895c9347a0e0a68fa82404fb797c85b47f2f1d833b5be862eecc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/client-run-ledger.ts: webui/src/lib/client-run-ledger.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in ClientRunLedger.applyObservation at line 230. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/client-run-ledger.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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6674083a26b795d1d5af424f1dc6ffbbe3b4f9f7e946e8ae7ec2f25f447270d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/WebSettings.tsx: webui/src/components/settings/capabilities/WebSettings.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in WebSettings.WebSettings at line 77. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/capabilities/WebSettings.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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5b069e287ae35e9be0eedebd92f167c8b78481866accfe4a3e5130f5f969d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/segmented-control.tsx: webui/src/components/ui/segmented-control.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in segmented-control.SegmentedControl at line 50. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ui/segmented-control.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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8362fc143cb1353ff944240e8a5c44956eef8a46537ce8f325fec27eca6bac3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/FileEditRow.tsx: webui/src/components/thread/activity/FileEditRow.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in FileEditRow.FileUnifiedDiff at line 155. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/FileEditRow.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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49fc208a4a86d70becf6fdde9e6f9d64a7d8b068c0633fbd18f46f698c5d5eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/views/diff-viewer.ts: tui/src/views/diff-viewer.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in DiffViewer.render at line 251. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/views/diff-viewer.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":"tui/src/views/diff-viewer.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c09b3782ffa5a78240011c94bf0eed3491c498641d968c2e7db97e1e45fab02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/ThinkingReasoningShell.tsx: webui/src/components/thread/activity/ThinkingReasoningShell.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ThinkingReasoningShell.ThinkingReasoningShell 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/ThinkingReasoningShell.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":"webui/src/components/thread/activity/ThinkingReasoningShell.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7d29442518a98d654f0d781f69fdec30fc15e3d9ba1e9a2305a0917566feed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SettingsSidebar.tsx: webui/src/components/settings/SettingsSidebar.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SettingsSidebar.SettingsSidebar 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/SettingsSidebar.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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a14783c196690e24c79ba5dc3e750123dd52b97c91eb2c67400031d032b3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/SandboxSettings.tsx: webui/src/components/settings/system/SandboxSettings.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in SandboxSettings.SandboxSettings 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/SandboxSettings.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":"webui/src/components/settings/system/SandboxSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"299cadec1f813e24fa55bb0c1a34bc432f163aac2f2f05b0db43309c43f61f8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/thread-motion.ts: webui/src/components/thread/thread-motion.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ThreadMotionCoordinator.flushGeometry at line 453. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/thread-motion.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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3184abbe4d770c2b9e5ed186e31012122fabf13b922db31f7cc2fc8cb35da4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/scripts/pty_smoke.py: tui/scripts/pty_smoke.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in pty_smoke.smoke at line 77. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/scripts/pty_smoke.py\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":"tui/scripts/pty_smoke.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe451bcdcf19218a18b90019178996ddf18c3e384bfa1a7442911b6a4b7e37b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/useSidebarHostBridge.ts: webui/src/components/remote/useSidebarHostBridge.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in useSidebarHostBridge.useSidebarHostBridge at line 7. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/useSidebarHostBridge.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":"webui/src/components/remote/useSidebarHostBridge.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd3b851244a0c82b1354169c7a8afcc340059deb4d6448e45b3b275aa46fe9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/anthropic_provider.py: nanobot/providers/anthropic_provider.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AnthropicProvider.chat_stream at line 767. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/anthropic_provider.py\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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c3a93ff19ed6dbdcd9688736a8b5758103965fb3cca494233a6f531586624c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useAttachedImages.ts: webui/src/hooks/useAttachedImages.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in useAttachedImages.useAttachedImages.enqueue at line 274. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useAttachedImages.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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f075f48090424d2a7b2327a9d0b2abe76fae14bd7b790f36b26716f9515c11d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/AttachmentTile.tsx: webui/src/components/AttachmentTile.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AttachmentTile.AttachmentTile 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/AttachmentTile.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":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e42c8e55c01e02cb56d596dd9461cb7cd91b3f6273d2ea11d4e2e834c6cc7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/useSystemSettingsEffects.ts: webui/src/components/settings/system/useSystemSettingsEffects.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in useSystemSettingsEffects.useSystemSettingsEffects 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/useSystemSettingsEffects.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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ed5f055201cdc363edcbe06a39bf0cca0457479629593fbd645a3ac4ecfc42"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/activity-timeline.ts: webui/src/lib/activity-timeline.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in activity-timeline.projectOrderedTurn at line 144. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/activity-timeline.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":"webui/src/lib/activity-timeline.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc566912b893df134cd7141013ea288af637c3b49e6d0084e62571376a442d52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/execution.py: nanobot/agent/tools/execution.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in execution._execute_tool_call_inner at line 136. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/execution.py\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":"nanobot/agent/tools/execution.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"118b64fa14215e8671c3984a373809261d87ef7876ac7790d93f0dd52ba585eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/thread-display-projection.ts: webui/src/lib/thread-display-projection.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in thread-display-projection.projectWebuiThreadMessages 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/thread-display-projection.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":"webui/src/lib/thread-display-projection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee38fd55246bce441ff5ac3274f8b966b3e42c87cf3c9b3c7ca87e3cf4e2466"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/overview/ReadingSettings.tsx: webui/src/components/settings/overview/ReadingSettings.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ReadingSettings.ReadingSettings at line 12. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/overview/ReadingSettings.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":"webui/src/components/settings/overview/ReadingSettings.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fff1b393c26bedc79baedbcf889dde50b5106ca463d441e11d2840173677f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/remote.py: nanobot/cli/remote.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in remote.pair at line 163. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/remote.py\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":"nanobot/cli/remote.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf23fb94cd1e867097f3ac2ceca58041e64879e9c87918c6b50c92a4bbb399e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AutomationCalendar.tsx: webui/src/components/settings/system/AutomationCalendar.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AutomationCalendar.AutomationCalendar 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/AutomationCalendar.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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d25757bab405643bb49786a9ff53c212435a5eeaf2fc706b62a5c539634e193"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx: webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in ChannelSetupSurfaceView.ChannelSetupSurfaceView at line 51. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelSetupSurfaceView.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":"webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f53b96d87454f73847c777835be685488b76ec3a365303acb67d112c57b041"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/llm_usage/store.py: nanobot/llm_usage/store.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LLMUsageStore.usage_payload at line 403. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/llm_usage/store.py\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":"nanobot/llm_usage/store.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e473ce5b17034f596fadd912e53ca4dbf6d681425c6e015eead84cb64398aac0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/ImageGenerationSettings.tsx: webui/src/components/settings/capabilities/ImageGenerationSettings.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ImageGenerationSettings.ImageGenerationSettings at line 49. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/capabilities/ImageGenerationSettings.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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"43241047b93420004ddd0e18fc426ea853ee40e81e4b1e8da280e2421e5aff16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/image_generation.py: nanobot/agent/tools/image_generation.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ImageGenerationTool._provider_client at line 115. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/image_generation.py\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":"nanobot/agent/tools/image_generation.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47586413a3c2e6d813a10e9df59b79ab9f388c99794db6664a969e9becbe5d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/SessionInfoPopoverView.tsx: webui/src/components/thread/SessionInfoPopoverView.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in SessionInfoPopoverView.SessionInfoPopoverView 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/SessionInfoPopoverView.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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa31c9e9c335d6202d008244dd61c64a635aaba693a416120509e367313d2a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/SettingsFeature.tsx: webui/src/components/settings/shared/SettingsFeature.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SettingsFeature.SettingsFeature at line 25. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/shared/SettingsFeature.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":"webui/src/components/settings/shared/SettingsFeature.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0787514db0029914088b8f6e36a16dc6b0e9f5c871e167246d7f16fda71417c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/goal/tools.py: nanobot/goal/tools.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UpdateGoalTool.execute at line 290. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/goal/tools.py\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":"nanobot/goal/tools.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad42deea53fda5155bb9ec8ed1979c63d4d81a9c0a7f440a7225320d3cd27db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ContextInspector.tsx: webui/src/components/thread/ContextInspector.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in ContextInspector.ContextInspector 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ContextInspector.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":"webui/src/components/thread/ContextInspector.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8523771807145e27f659e831a2cc6352de545451a985851d4555b31f5c2d0a4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/FilePreviewPanelView.tsx: webui/src/components/FilePreviewPanelView.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in FilePreviewPanelView.FilePreviewPanelView 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/FilePreviewPanelView.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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"85522dc2834485ab4fa05c7c6b0c5b4940ab4bca22b0a2b28ea93c521f575729"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/remote/SSHHostPicker.tsx: webui/src/components/remote/SSHHostPicker.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SSHHostPicker.SSHHostPicker at line 12. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/remote/SSHHostPicker.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":"webui/src/components/remote/SSHHostPicker.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"431a29715ad52250a70ba71e10cc1d82b328cb76b17ceab46db4711c641a795f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx: webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in ChannelQrConnectFlowView.ChannelQrConnectFlowView at line 49. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelQrConnectFlowView.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":"webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d35f184281eee2fb32e9360ace787a4d7167a68f043200c0c95706eaa65698"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/PreviewPane.tsx: webui/src/components/PreviewPane.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PreviewPane.PreviewPane at line 14. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/PreviewPane.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":"webui/src/components/PreviewPane.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa1838bc0508a1487c48bf712d193342dbd2814b6d16f87aa899eb286f7aa5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_responses/converters.py: nanobot/providers/openai_responses/converters.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in converters.convert_messages at line 13. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/openai_responses/converters.py\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":"nanobot/providers/openai_responses/converters.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5f1bae4a8938aa71203379c5f5d16b7cdec98a0a6f7d1540acbce726e900b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/skills_marketplace.py: nanobot/webui/skills_marketplace.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in skills_marketplace._skillhub_skill at line 820. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/skills_marketplace.py\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":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddb80e234bd5d9029666110c20522624698de2864cbbda7d11d0563a2ece725"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/docker_compose_smoke.py: scripts/docker_compose_smoke.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in docker_compose_smoke.main 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- scripts/docker_compose_smoke.py\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":"scripts/docker_compose_smoke.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e96a50b020c176c894d22ccac1dcf7d60375c0f7ff61720528afaa2aed2518"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/weixin/webui/WeixinPanel.tsx: nanobot/channels/weixin/webui/WeixinPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in WeixinPanel.WeixinPanel at line 22. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/channels/weixin/webui/WeixinPanel.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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"286460688cf7e16bf8c337bf04b65e73e9dc5b6ffcbb4c914f3e12876ec6491a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/remark-tex-math.ts: webui/src/lib/remark-tex-math.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in remark-tex-math.tokenizeMathFlow at line 301. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/remark-tex-math.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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca41e38ac996a378273711ca7f214afcaf20bd2dee6d9a89d6cb3eeea77d495"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/terminal.py: nanobot/cli/terminal.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in terminal._maybe_print_interactive_progress at line 351. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/terminal.py\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":"nanobot/cli/terminal.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"98772908a35d64f5ea09e57217f5272373483b3286152d0b91c0feca7d0347d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/RecoveryNotice.tsx: webui/src/components/thread/RecoveryNotice.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RecoveryNotice.RecoveryNotice 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/RecoveryNotice.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":"webui/src/components/thread/RecoveryNotice.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6415598a5ddf96dac8eaee478f35fddad3f53a12afaeae2c9fb0a5e857c5c06e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts: webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in useCapabilitySettingsActions.useCapabilitySettingsActions.saveWebSearch at line 146. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/capabilities/useCapabilitySettingsActions.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":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4512af1bdbd4480a8cc48de3cd8daef03ddfa838b6e21c24bb948164c6f5716e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/TokenUsageModelTrend.tsx: webui/src/components/settings/TokenUsageModelTrend.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in TokenUsageModelTrend.TokenUsageModelTrend at line 13. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/TokenUsageModelTrend.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":"webui/src/components/settings/TokenUsageModelTrend.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"501dd5fdc3735b1de4c4b097d721806a5db100f4d414c7f7290634dd7a1e740b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/FileActions.tsx: webui/src/components/FileActions.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in FileActions.FileActions at line 26. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/FileActions.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":"webui/src/components/FileActions.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba4ae8bb9c24ed2cf9f291db70e7814b4bc649e1f94ab2918770d671fddcffa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/scripts/conpty_smoke.py: tui/scripts/conpty_smoke.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in conpty_smoke.smoke 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/scripts/conpty_smoke.py\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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4515bd361556c423162be445218b7a996790c28effaac2b182296e5a5e1e62a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ImageLightbox.tsx: webui/src/components/ImageLightbox.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ImageLightbox.ImageLightbox 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ImageLightbox.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":"webui/src/components/ImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84a97f9946fb58e5714c9356302849c11867610b79be3b1760f9e7e97e79b1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/rendering/tool-renderers.ts: tui/src/rendering/tool-renderers.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tool-renderers.toolLabel 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/rendering/tool-renderers.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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b92db65651893378c1e8a9fe8f827b4824e5f94d2c87482b16ba340c960afe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/loader.py: nanobot/agent/tools/loader.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ToolLoader.load 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/loader.py\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":"nanobot/agent/tools/loader.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6738b56d5cf51e470d861184f62e01ef0b7422a8bed836802f7cc6522b205b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/browser/history-boundary-fixture.tsx: webui/browser/history-boundary-fixture.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in history-boundary-fixture.HistoryBoundaryFixture at line 14. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/browser/history-boundary-fixture.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":"webui/browser/history-boundary-fixture.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbc296bde26fe7d289408ac8595e43566ec21c1bac4ead9f47d8361734c4383"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/image-viewport.tsx: webui/src/components/ui/image-viewport.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in image-viewport.ImageViewport 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ui/image-viewport.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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c59903e92c6f705967775a3b40ce3f741a45dd3175975d04e74ae7e062722b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hatch_build.py: hatch_build.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WebUIBuildHook.initialize 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- hatch_build.py\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":"hatch_build.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f07772e211655bf6da8ca4a1011b3aaaf46ecac6249b1b8f4378cdc41c516d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/browser/skeleton-fixture.tsx: webui/browser/skeleton-fixture.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in skeleton-fixture.SkeletonFixture at line 25. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/browser/skeleton-fixture.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":"webui/browser/skeleton-fixture.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8196f000e86b8e4732704abcf834625556f827ec1a604d996bf39b5098b42123"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/automation_chats.py: nanobot/webui/automation_chats.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in automation_chats.automation_chats at line 31. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/automation_chats.py\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":"nanobot/webui/automation_chats.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c09b4cb525e84a92494bddb9d99517a203eabcb6915c08873295780bab19120"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/StarPrompt.tsx: webui/src/components/StarPrompt.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in StarPrompt.StarPrompt 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/StarPrompt.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":"webui/src/components/StarPrompt.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab35abdf743f6df66801006e1e21e4d151f54d2c5572ba24370b5b37e982b31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/remote_ssh.py: nanobot/webui/remote_ssh.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Tunnel._stream at line 267. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/remote_ssh.py\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":"nanobot/webui/remote_ssh.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5659c19d01f750537644f34b27efe7a69ab56f1fb728fcdb1d33be5d638af1f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/trace-activity-model.ts: webui/src/components/thread/activity/trace-activity-model.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in trace-activity-model.describeTraceLine at line 18. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/trace-activity-model.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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d85c484a570cce3baa656377488a04428264c97e4598013883b1fd39046b47d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/rendering/latex.ts: tui/src/rendering/latex.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in latex.mathSpanAt at line 382. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- tui/src/rendering/latex.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":"tui/src/rendering/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c363024f68dd5dea1b6740d8a909f0bcc0c01b0daac7cb26991cbaa0337c64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/CatalogSkeleton.tsx: webui/src/components/settings/shared/CatalogSkeleton.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CatalogSkeleton.CatalogSkeleton at line 4. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/shared/CatalogSkeleton.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":"webui/src/components/settings/shared/CatalogSkeleton.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfffa0695c7bafbbdc2c480a7ea91d098fde7f8041c1626c13b2ead885ca330f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/sidebar-panel.tsx: webui/src/components/ui/sidebar-panel.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in sidebar-panel.SidebarPanelContent at line 42. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ui/sidebar-panel.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":"webui/src/components/ui/sidebar-panel.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04b100ce49fc187f964cfc24c424ac7190cee7caeae2d40b3ecd7beebd2a147"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/client-events/attachments.ts: packages/client-events/attachments.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in attachments.uploadAttachments 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- packages/client-events/attachments.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":"packages/client-events/attachments.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c625510f45db19b976ec9b3c2864354e10b386139871ca97b3682ac893ca49"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/gateway/runtime.py: nanobot/gateway/runtime.py changed 23 times in last 90 days and 16 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 runtime._gateway_health_ready at line 58), 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(gateway): reuse Windows-safe atomic lease I/O\u201D; \u201Cfix(gateway): request graceful Windows shutdown (#6353)\u201D; \u201Cfix(gateway): recover degraded WebSocket listener (#5544)\u201D; \u201Cfix(runtime): preserve interrupted turns on gateway exit\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/gateway/runtime.py\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":"nanobot/gateway/runtime.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c70765c3792331e8f3a641c960b667af500ac323cf041e06c04a7d0613727d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/tui_launcher.py: nanobot/cli/tui_launcher.py changed 24 times in last 90 days and 13 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 tui_launcher._download_release_tui at line 248), 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(tui): surface chat connection failures (#5543)\u201D; \u201Cfix(gateway): recover degraded WebSocket listener (#5544)\u201D; \u201Cfix(release): package TUI compliance materials\u201D; \u201Cfix(gateway): preserve shared runtime identity\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/tui_launcher.py\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":"nanobot/cli/tui_launcher.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6fd25f0cb397bd7fc80b1fa933fa161c07ce7ceacebe6c70dc8d9f5b1f5012"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/webui_support.py: nanobot/cli/webui_support.py changed 18 times in last 90 days and 13 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 webui_support._ensure_local_webui_channel at line 374), 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(webui): support WSL browser launch and clearer startup output (#6150)\u201D; \u201Cfix(cli): avoid duplicate WebUI config announcement (#5988)\u201D; \u201Cfix(webui): make headless login self-explanatory (#5735)\u201D; \u201Cfix(cli): protect Windows browser credential handoff [skip ci]\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/webui_support.py\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":"nanobot/cli/webui_support.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b91a44ac7cc98793f12fa0cb516a9bc80151be36e4e99ba49759ada037d7ac8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/process_runtime.py: nanobot/process_runtime.py changed 16 times in last 90 days and 11 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 ManagedProcessRuntime.status at line 182), 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(runtime): stop Windows identity polling memory leak\u201D; \u201Cfix(gateway): request graceful Windows shutdown (#6353)\u201D; \u201Cfix: improve log reliability and correlation\u201D; \u201Cfix(gateway): preserve runtime identity compatibility\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/process_runtime.py\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":"nanobot/process_runtime.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c156397578adcd073f6da4a83b57d9edccada199f1cc98c71ec824ac90ecc6e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/gateway.py: nanobot/cli/gateway.py changed 12 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 2 (its worst body is gateway._resolved_config_selector at line 38), 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(gateway): avoid restarting stopped systemd services\u201D; \u201Cfix(cli): reject misplaced gateway instance selectors (#6229)\u201D; \u201Cfix: improve log reliability and correlation\u201D; \u201Cfix(gateway): prevent lifecycle races\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/gateway.py\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":"nanobot/cli/gateway.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"100fcbbca1a62e87b135d026a0f6c2135f5a8fd181fe30a9778baa0e6b416231"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/hooks/useSessions.ts: webui/src/hooks/useSessions.ts changed 15 times in last 90 days and 9 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 useSessions.useSessions.refresh at line 54), 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(webui): avoid remounting outgoing conversations (#6540)\u201D; \u201Cfix(webui): keep saved topics bound to their project (#6509)\u201D; \u201Cfix(webui): admit history without dropping live output (NAN-311)\u201D; \u201Cfix(webui): show route-aligned skeletons from first paint (#6303)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useSessions.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":"webui/src/hooks/useSessions.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ce6491f12817f4b85d3c6ceeacf7c781e0b751d6a3f481a9188b050749a286"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/events.py: nanobot/events.py changed 13 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is EventSink.accepts at line 110), 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(sessions): preserve cross-session input ownership and history (#6613)\u201D; \u201Cfix(webui): update usage and tool progress during active turns (#6553)\u201D; \u201Cfix(agent): preserve streamed replies after model failures (#6494)\u201D; \u201Cfix(webui): recover model failures and align chat controls\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/events.py\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":"nanobot/events.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"83691f057be8292509b7e82326eab880e3ac5194c81b637816ebee7c70d45869"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/agent/tools/base.py: nanobot/agent/tools/base.py 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 4 (its worst body is Tool.validate_params at line 141), 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(tools): validate arguments with jsonschema without coercion (#6648)\u201D; \u201Cfix: decode nested JSON tool arguments by schema\u201D; \u201Cfix: use JSON equality for enum validation\u201D; \u201Cfix(tools): accept integral JSON numbers for integer parameters\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/base.py\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":"nanobot/agent/tools/base.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac354e327a473115c55b6705505aad2ef1760a421db483239639e02792b31d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/utils/document.py: nanobot/utils/document.py 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 10 (its worst body is document.extract_pdf_pages at line 455), 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(documents): preserve complete PDF pages across reads\u201D; \u201Cfix(grep): preserve XLSX cell locators for literal tabs\u201D; \u201Cfix(documents): skip chart-only sheets when reading XLSX files\u201D; \u201Cfix(documents): preserve empty PPTX table columns\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/utils/document.py\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":"nanobot/utils/document.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d31581eda48b3e781a70ef55be769be292e4db859446cb7be6ae2e105b77ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/settings/system/AutomationChatBinding.tsx: webui/src/components/settings/system/AutomationChatBinding.tsx changed 8 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 4 (its worst body is AutomationChatBinding.AutomationChatBinding at line 10), 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(webui): refine automation chat review layout\u201D; \u201Cfix(automations): clarify chat review and scheduling choices\u201D; \u201Cfix(webui): keep automation change-back state accurate\u201D; \u201Cfix(webui): use consistent chat names for scheduled tasks\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/AutomationChatBinding.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":"webui/src/components/settings/system/AutomationChatBinding.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"110f6d53f02cb0095d6a3c7387c0c122e6f2ba3ebeac83660a76791864f2f74e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/lib/provider-brand.ts: webui/src/lib/provider-brand.ts changed 7 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 14 (its worst body is provider-brand.inferProviderFromModelName at line 271), 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(webui): keep model management available and bundle core provider logos\u201D; \u201Cfix(webui): align provider icons across compact surfaces\u201D; \u201Cfix(webui): finish provider icon fallback and tile audit\u201D; \u201Cfix(webui): use compact MiMo and Copilot brand marks\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/provider-brand.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":"webui/src/lib/provider-brand.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"830816eaa05841135224f7ea3f4fe9ad17762a941abc2ff7a38f35a7d822b017"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/dev/gallery/conversation.tsx: webui/src/dev/gallery/conversation.tsx changed 9 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 8 (its worst body is conversation.SandboxPreview at line 255), 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(webui): name the gateway sandbox launcher in setup guidance\u201D; \u201Cfix(webui): keep context sidebar owned by the pane layout\u201D; \u201Cfix(webui): keep permission hints outside locked-thread drafts\u201D; \u201Cfix(webui): localize the component gallery\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/dev/gallery/conversation.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":"webui/src/dev/gallery/conversation.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d8142c37b0bb9623fe2eb0fda75dbb8347732ea803ab98de73ffc5999dd65e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/settings/overview/AppearanceSettingsView.tsx: webui/src/components/settings/overview/AppearanceSettingsView.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 4 (its worst body is AppearanceSettingsView.AppearanceSettingsView at line 15), 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(webui): reorder appearance settings and trim preview\u201D; \u201Cfix(webui): move appearance help to hints and smooth theme preview\u201D; \u201Cfix(webui): refine browser notifications (NAN-227)\u201D; \u201Cfix(webui): make browser notification failures actionable\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/overview/AppearanceSettingsView.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":"webui/src/components/settings/overview/AppearanceSettingsView.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01956ee6b1f91bb6c9016624fbd2a3ca0196250b9cadab274f1ca4e0de6dd85"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/bus/notification_delivery.py: nanobot/bus/notification_delivery.py 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 6 (its worst body is notification_delivery.notification_is_deliverable 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(webui): update usage and tool progress during active turns (#6553)\u201D; \u201Cfix(channels): preserve explicit compaction feedback and silent delivery\u201D; \u201Cfix: stop sending context compaction notifications\u201D; \u201Cfix(ui): surface model retry status (NAN-34) (#5504)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/bus/notification_delivery.py\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":"nanobot/bus/notification_delivery.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"357233a434dbfdd82014de6b6b46cbe2a399ba87cab8e1c0b28c4edd7ab37766"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/ui/sheet.tsx: webui/src/components/ui/sheet.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 4 (its worst body is sheet.SheetContent at line 74), 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(webui): keep sheet close focus rings keyboard-only\u201D; \u201Cfix(webui): scope sidebar autofocus to mobile navigation\u201D; \u201Cfix(webui): prevent mobile sidebar tooltip and double-tap navigation\u201D; \u201Cfix(webui): simplify mobile composer controls and context sheet\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/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":"webui/src/components/ui/sheet.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"860360077e3749af1b6e9fc6578b8b9951bb08044df8f9d88e8b4cc6f36979c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cron/bound_runner.py: nanobot/cron/bound_runner.py 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 5 (its worst body is bound_runner.run_bound_cron_job at line 62), 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(channels): retain scheduled results across pre-send outages\u201D; \u201Cfix(channels): preserve recovery order and adapter ownership\u201D; \u201Cfix(channels): retain scheduled results across pre-send outages\u201D; \u201Cfix(webui): show per-run automation replies and simplify details\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cron/bound_runner.py\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":"nanobot/cron/bound_runner.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6236b8ccf906d2021d974bc618afb7c9568f78004167aec3f82f7779fb05e2b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/lib/thread-message-cache.ts: webui/src/lib/thread-message-cache.ts 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 3 (its worst body is ThreadMessageCache.readLoadedMessages at line 29), 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(webui): preserve session caches during history revalidation (#6636)\u201D; \u201Cfix(webui): admit history without dropping live output (NAN-311)\u201D; \u201Cfix(webui): preserve answer checkpoints and stream order (#6368)\u201D; \u201Cfix(webui): cache and defer thread history\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/thread-message-cache.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":"webui/src/lib/thread-message-cache.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07128612985dc3cfbce5942a6f5da4801e6e0e9148b385f2154fa060e90e35c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/thread/ModelFallbackNotice.tsx: webui/src/components/thread/ModelFallbackNotice.tsx 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 5 (its worst body is ModelFallbackNotice.ModelFallbackNotice at line 8), 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(webui): recover model failures and align chat controls\u201D; \u201Cfix(webui): align fallback notice and clarify settings action\u201D; \u201Cfix(webui): show provider logos in model notices\u201D; \u201Cfix(webui): identify OAuth reauthentication behind fallback replies\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ModelFallbackNotice.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":"webui/src/components/thread/ModelFallbackNotice.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0e688a8e34e05a79d8d5371863c0810884d7da8a410117c0ff1b9cd7287a24"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/agent/tools/registry.py: nanobot/agent/tools/registry.py 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 7 (its worst body is ToolRegistry.prepare_call at line 120), 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(tools): validate arguments with jsonschema without coercion (#6648)\u201D; \u201Cfix(agent): make tool error guidance neutral (#6227)\u201D; \u201Cfix(agent): wait for exec sessions without polling (#5526)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/registry.py\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":"nanobot/agent/tools/registry.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e5da65311eed149a0afd128ebb36603c7dd46b446f1b62ae1c95679148eea6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/icons/product-icons.tsx: webui/src/components/icons/product-icons.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 product-icons.productIcon.Icon 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(webui): simplify workspace picker icon\u201D; \u201Cfix(webui): refine sidebar icon consistency and spacing\u201D; \u201Cfix(webui): restore symmetry of the settings gear (#6298)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/icons/product-icons.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":"webui/src/components/icons/product-icons.tsx"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cbe158ee66ac0e4e1a29c2d6510eb29dfc746ad098b8ad6f62be4c61f0daca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/lib/webui-thread-cache.ts: webui/src/lib/webui-thread-cache.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 13 (its worst body is webui-thread-cache.reloadPayload at line 7), 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(webui): preserve session caches during history revalidation (#6636)\u201D; \u201Cfix(webui): retain system context graph after compaction (#6608)\u201D; \u201Cfix(webui): reconcile turns after reconnect (#6211)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/webui-thread-cache.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":"webui/src/lib/webui-thread-cache.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"58336e2a61c3b3e84286a3fe5e3d4a88ece50b8a4d4356ec49cd780fc31461c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/providers/openai_responses/backend.py: nanobot/providers/openai_responses/backend.py 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 9 (its worst body is ResponsesBackend.sdk_request at line 275), 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(compaction): retain native state across retry and recovery (#6558)\u201D; \u201Cfix(providers): tighten tool calls and compatibility fallbacks\u201D; \u201Cfix(providers): prepare inline image batches and recover Codex transport (#6107)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/openai_responses/backend.py\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":"nanobot/providers/openai_responses/backend.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6be997ef81d5f98332702ee8fbcb2994170752460d9d6c8d69c89cae6bf2e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/desktop_target.py: nanobot/cli/desktop_target.py 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 13 (its worst body is desktop_target.dispatch_bare_desktop_target at line 85), 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(cli): simplify Desktop picker controls [skip ci]\u201D; \u201Cfix(cli): make Desktop target selection keyboard navigable [skip ci]\u201D; \u201Cfix(cli): harden attach-only Desktop selection [skip ci]\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/desktop_target.py\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":"nanobot/cli/desktop_target.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"da23d4604fae6593cd9f2135da7bf6c0a9dee69c3bf436d07aa6fd259498cad4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/client-events/notifications.ts: packages/client-events/notifications.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 14 (its worst body is notifications.decodeNotification at line 70), 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(agent): preserve streamed replies after model failures (#6494)\u201D; \u201Cfix(webui): recover model failures and align chat controls\u201D; \u201Cfix(ui): surface model retry status (NAN-34) (#5504)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- packages/client-events/notifications.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":"packages/client-events/notifications.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6f3c2c56d52e8bcd03b448f69235a8fc05a58810e9552b6c0b4cc9d2dbec0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/thread/StreamErrorNotice.tsx: webui/src/components/thread/StreamErrorNotice.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 5 (its worst body is StreamErrorNotice.resolveCopy at line 62), 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(webui): recover model failures and align chat controls\u201D; \u201Cfix(ui): keep theme text and selections readable (#6226)\u201D; \u201Cfix(ui): surface model retry status (NAN-34) (#5504)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/StreamErrorNotice.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":"webui/src/components/thread/StreamErrorNotice.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b69a1f25ec35820676a948341204931d350e535f33cff2d4c6a77c9b89090d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/WebLink.tsx: webui/src/components/WebLink.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 9 (its worst body is WebLink.parseWebLink at line 3), 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(webui): gate website preview actions by browser capability\u201D; \u201Cfix(webui): preserve native touch menus with message link actions\u201D; \u201Cfix(webui): preserve previews during credential renewal\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/WebLink.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":"webui/src/components/WebLink.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ff74b4c3d92ef625542b9d7b6fc2283faddf31042307c1b65f6c0ffaeccd35"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/index.html: webui/index.html 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 14 (its worst body is index.html.normalizeLocale at line 157), 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(webui): show route-aligned skeletons from first paint (#6303)\u201D; \u201Cfix(webui): provide iOS PWA top-edge color surface\u201D; \u201Cfix(webui): keep iOS PWA controls inside safe area (#5477)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/index.html\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":"webui/index.html"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17bdbdd9605fb972be56e456ebad04e623c681e13e8b8a1152f6d993bc143e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/channels/linear/webui/index.tsx: nanobot/channels/linear/webui/index.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 1 (its worst body is index.LinearPanel at line 8), 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(linear): clarify setup actions and MCP configuration\u201D; \u201Cfix(webui): align channel logo presentation\u201D; \u201Cfix(linear): refresh setup UI and preserve channel lifecycle state\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/channels/linear/webui/index.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":"nanobot/channels/linear/webui/index.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce319f6c5e68797975b740e8a5f3adb86b914224a8108862061d2f8ce23f068d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/settings/shared/SettingsTextEditor.tsx: webui/src/components/settings/shared/SettingsTextEditor.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 15 (its worst body is SettingsTextEditor.SettingsTextEditor at line 9), 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: preserve config import order and restore editor focus\u201D; \u201Cfix: isolate preset requests and confirm parameter saves\u201D; \u201Cfix(webui): polish remote setup and simplify connection dialogs\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/shared/SettingsTextEditor.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":"webui/src/components/settings/shared/SettingsTextEditor.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2876cd05ebb0d75eeb600b83e3d857d83b9729926b57e5143a6468a1de913557"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/lib/remote-instances.ts: webui/src/lib/remote-instances.ts 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 8 (its worst body is remote-instances.groupRemoteProfiles at line 43), 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(webui): scope remote health checks to visible demand (#6657)\u201D; \u201Cfix(webui): polish remote setup and simplify connection dialogs\u201D; \u201Cfix(remote): group verified instances without dropping authorizations\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/remote-instances.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":"webui/src/lib/remote-instances.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2f62db4c4205009081835203e065282820cb5e79186d845d853fd185d65423"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/thread/promptNavigation.ts: webui/src/components/thread/promptNavigation.ts 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 9 (its worst body is promptNavigation.userPromptAnchors at line 15), 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(sessions): preserve cross-session input ownership and history (#6613)\u201D; \u201Cfix(session): prevent consumed follow-ups from replaying after restart (#6299)\u201D; \u201Cfix(webui): navigate complete prompt history with bounded pages\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/promptNavigation.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":"webui/src/components/thread/promptNavigation.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eafca2a391f8081342bc782f022e7eacc3442f524a1b320f07cdab399ad23a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/utils/media_decode.py: nanobot/utils/media_decode.py 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 8 (its worst body is media_decode.save_base64_data_url at line 53), 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(media): accept data URLs that capitalize the base64 token (#6464)\u201D; \u201Cfix(media): keep upload filenames within the UTF-8 byte limit\u201D; \u201Cfix(webui): upload TUI and WebUI attachments over binary HTTP (#5980)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/utils/media_decode.py\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":"nanobot/utils/media_decode.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b811421d73f52b846eda91f6c33d3155b8f0b76a06209d6ff030a4a8761b4b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/LanguageSwitcher.tsx: webui/src/components/LanguageSwitcher.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 9 (its worst body is LanguageSwitcher.LanguageSwitcher at line 9), 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(webui): follow browser language on first visit (#6591)\u201D; \u201Cfix(webui): streamline the connection screen\u201D; \u201Cfix(webui): show language names only in their native form (#5646)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/LanguageSwitcher.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":"webui/src/components/LanguageSwitcher.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bd79b8614943a584b88fa4244fd2f3077f7d3797c14f308709f98e41a26ff1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/providers/request_overrides.py: nanobot/providers/request_overrides.py 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 9 (its worst body is request_overrides.apply_request_overrides at line 25), 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: compare request scopes at their actual routing boundary\u201D; \u201Cfix: preserve config import order and restore editor focus\u201D; \u201Cfix: isolate preset requests and confirm parameter saves\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/request_overrides.py\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":"nanobot/providers/request_overrides.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc206dbc41723f2a81fda257c999ff35dba62bdfc3fbc31e797bf3d58e649ea2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/dev/gallery/shared-views.tsx: webui/src/dev/gallery/shared-views.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 8 (its worst body is shared-views.MessagePreview at line 45), 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(webui): localize the component gallery\u201D; \u201Cfix(webui): use file-type icons in file change activity\u201D; \u201Cfix(webui): give media gallery components distinct examples\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/dev/gallery/shared-views.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":"webui/src/dev/gallery/shared-views.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6854b0fe60b36f936f4e9531ea2cf7dc65a5c92a39dbc1b461dbd518860b64a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/settings/models/useModelSettingsEffects.ts: webui/src/components/settings/models/useModelSettingsEffects.ts 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 useModelSettingsEffects.useProviderOAuthPolling 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(webui): save settings when editing completes (NAN-323) (#6384)\u201D; \u201Cfix(webui): complete Copilot device sign-in in the browser\u201D; \u201Cfix(webui): surface OAuth model catalog authorization failures\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/useModelSettingsEffects.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":"webui/src/components/settings/models/useModelSettingsEffects.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfc0e11cf68f4630625039c2a3d81a4141ba61d236b714a7015e56472deff09"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/settings/models/ProviderParameterFields.tsx: webui/src/components/settings/models/ProviderParameterFields.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 14 (its worst body is ProviderParameterFields.ProviderParameterFields at line 30), 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(webui): align provider parameter row typography\u201D; \u201Cfix(webui): localize missing request secret errors\u201D; \u201Cfix: isolate preset requests and confirm parameter saves\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/models/ProviderParameterFields.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":"webui/src/components/settings/models/ProviderParameterFields.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9771162f31314227127af9fb0a729dfb5e45d2987651dea12b95a8889a2b7d23"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/thread/thread-camera.ts: webui/src/components/thread/thread-camera.ts 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 5 (its worst body is ThreadCameraController.moveTo at line 115), 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(webui): respect middle-click autoscroll (#6612)\u201D; \u201Cfix(webui): show latest button for hidden content (#6605)\u201D; \u201Cfix(webui): bound explicit scroll navigation duration\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:32:10 \u002B08:00\u0027 --until=\u00272026-11-14 00:32:10 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/thread-camera.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":"webui/src/components/thread/thread-camera.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"753709d42db480fdb9b7c2d2172887d214426c289d5c64401307ec36b9636961"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 87 significant file(s) lose their only recent owner: webui/src/lib/thread-event-projection.ts, nanobot/agent/tools/mcp_oauth.py, webui/src/components/settings/system/McpManagementDialog.tsx, nanobot/webui/recovery.py, tui/src/rendering/latex.ts, nanobot/llm_usage/store.py, tui/src/client/api.ts, webui/src/dev/gallery/shell.tsx (\u002B79 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cfe1833abc76dd6531cc4b0cb2830cce514cfd58fed69291f2afa78a7ab9e99e"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 17 significant file(s) lose their only recent owner: nanobot/webui/skills_marketplace.py, nanobot/cli/desktop_target.py, nanobot/webui/remote_ssh.py, nanobot/webui/remote_pairing.py, nanobot/webui/remote_pair_server.py, scripts/build_tui_wheels.py, nanobot/cli/desktop_tui.py, webui/src/components/remote/useSidebarHostBridge.ts (\u002B9 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"782a0bf55d4e17194fb1f9f2fdb4cdfb45c9e790bedfb57f6f140c426c6012fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(0.5.0): Remove legacy WebUI history import and startup hooks; retain throughout 0.4.x. \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":"nanobot/webui/history.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f167a04c62f2e61bb4ece23dd07ff03e20be0dca667798efcace45ff237fef8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: ## [TODO: Replace with the first main section based on chosen structure] \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":"nanobot/skills/skill-creator/scripts/init_skill.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64a169566d4c51b8a2396da8166994429f45d6f982b850b850fd9be6c85101c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add actual script logic here \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":"nanobot/skills/skill-creator/scripts/init_skill.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"404f3c296186a16b0903c5d5d7399451d0094a8a4ce73ab819539fa878cf1e7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(0.5.0): Remove JSONL import and backup finalization; retain throughout 0.4.x. \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":"nanobot/session/sqlite_store.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead365d58008328bc63bcc18ba9eec700a54ea4fc17337d31af38fb4917f2387"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(0.5.0): Remove legacy proxy migration and its Config validator; retain throughout 0.4.x. \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":"nanobot/config/network.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af1f17bd091a956e31bf1f552e2e61c7acda0071cfd7b3c97361adcdbaf246d"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. The recognised ADR directories in this tree were read \u2014 \u0060webui/proposals\u0060 \u2014 and none of their files is a decision record (a README, index or template page does not count). 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 \u0060pyproject.toml\u0060 makes this repository a deployable product (line 127)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 3 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (133782 LoC, 1057 module-visible types across 35 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":"D27","level":"note","message":{"text":"Pass-through layer: MentionMenu: all 6 public methods forward their arguments unchanged to picker and add no behaviour \u2014 an extra hop (and usually an extra interface) to trace through. Call picker directly, or give the layer a job."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/menus/mention-menu.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9ff697d9e08d25fe1fb72bc8be42af773db6a239a03482e91f494d8dd28d25"}},{"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"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":"9545660e6add0322e3f7b23092a9bdb2b9ecacff6395f93e694cf9dc97bdaaa2"},"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":"9a4694634fcc293590fee9e2191767b55a632013523e5569a7db2972085e85fc"},"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":"c8381cdd9539330ccdf5f2819fb2f0ec8e0d20d645b1467a3e5e48700a37b69b"},"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"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":"ee6da1b051ddff31eece62e737e90827fa671274985f5a26bd0f59d7c044006f"},"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":"b7d0141152c5300ba863d47573fe0b6384121aac3afaa70381eea83bdc15cefe"},"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":"ebac61d292e4757946ff83f15293e2fa751db1ae0044345ec1ca160a7804b230"},"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":"82a1893f62fe8dee3fcdaad2e3da3e94b86729172346ee8d336b86cb9d8780c6"},"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":"594ba20856faebb900e8f635978e37e019356a968254d953432a089b831a6265"},"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":"f111002e2525392c0879ddeba142f5ea3792612730893df23c0e16f625064596"},"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":"17c766048720a8335fe9cee4b5c94d175d687786ce4fe5ac15a7d88cc7deda62"},"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":"6b562a86ba4fad32d6ccdcd6ca2d4c34c2236a59e5d8276adbfb83a1790cdee0"},"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":"7b6204852d53b9a16d0801698384193a5b48dfb345f6fe7929e989992645ef36"},"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":"ab979ab2dc46515c14a5a4f004fc991e04e40404eedb88f91aeaa5242f0df4a2"},"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":"3d9966b23381bbe2b60b096ada3de93c0ddf8027d1c2f85e36d0ccd9e3d70aff"},"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":"cc4313e08c448232f318be35b7241d4b93cdb38b46607e6d9e1235238dd8f561"},"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":"c4014e7719155abad9ee780737c6a29d8c31bcf1e70b94286734d74edc799576"},"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":"e6d02e405e7152392bf0694b8f111cdf7966f767ddb336f920b3eb30ab004917"},"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":"9efc61085c90fbe1ede50aca3f9690f82fe1c1cc9bd1ace2abe757c1e913f452"},"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":"958d4abe0376dbd29ad22deac42da4dd1c7272133d26a369ed188ff72a75e6fb"},"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":"2ba1bd8cd7cc00ffea37dae7b5e07643f624b23874e3cb0759fc3e4878f73406"},"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":"613343d1b752f35745826fe8d15b453cf20383607c0f92f58d6658c1e8f77558"},"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":"89122daa9eadbee0becf88df1842c3687c4e4ff108e4e21aa3f49bb2edfed292"},"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":"1fe915542e9ef9e0e2030d13e5e967c9edc93ad44e0043112709e63c307bce8b"},"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":"76db2b2a52d8748c2516d8183cd5f0979675a44c03b8af1dd4b6c155849fbaaf"},"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":"2ecc0f0a2a920558f4625db6ef7305c2e5ccd66c359aa96405acddaf6cc579bf"},"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":"8604b00de2058bf90f79a8b0fb6ac12ce26c78c1b8791630c9b36933128179a3"},"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":"d3ec3f4f838c45339381351aa440db7d5555786d29045db699ecd6d736bd6aea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"75d1bd0899e894a157e6a5227d7f650901f036685f4c55311e1333d76dfae340"},"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":"9952cec8452b6927ec4893a9658a96d8804a3b4ac66690a220e225d2922c84b6"},"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":"c0fcb26b48aec921e55ea3b1e3dcd825e08fcb11544545ac579e42f5885b9a89"},"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":"e11f1736ef48b567eb14723cc10c98c5f2da510b151a14da481fce2ad91662b3"},"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":"5541fc53c40fd22f93e87f5088543bc03a6adac17805b184cdc89e21f919df29"},"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":"5fec3a0b08746df740c28eaca52efbeb378a846a08770febd6e8889225bef750"},"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":"c8cfb0997a3ba7bbe3ec72b2acc6df4526e162865c89f7b4dbd30ff6411d7336"},"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":"817e5554e17b5cdcebe193d3d4f0d700a67c38c5f7f007ee6a8a2e92c3e4c711"},"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":"124e527a334cd5d4919694b22cf0d0ae14f7170d724734c70db88ad4ef4d72b5"},"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":"48cce48ab480e1c15454662b937c6919b209179e3902284c673455a6c57d351c"},"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":"b71df5687b7017cfe426eee55f3448da40dab8338d34b43078cb92731409330c"},"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":"e32646a1c1b1372f96acc97b26c80c1a56f231d60bf9f0f1dd1dc90d168b47ae"},"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":"f9cc91e07da82f76a596397702a9e6b759f0cd89a0abe1eb8a14968f6cd223c8"},"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":"c8a746e384abccd9bf8aad82aa46c79cab09676472cbb294f8de535804df7265"},"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":"04acf8b251a72d65785f397a21b3f8f858de1ed62e44fc1f839258742e6b40e7"},"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":"e5b398c9b7a45b8441aecb63c65319c3c6743f57edfd3b52f09a6b7819e9ccc3"},"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":"e5fa691d131f6bff1cc24504a1b55e0fdf1976c838232c9b5cba146320244010"},"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":"58aa56a07f3da6f926b63c47f0a5dba6f7998cff29a2ed4888eb7e89cc8ba9a2"},"taxa":[{"id":"CWE-78","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":"e3e5819d3f76120a73ea4f58ba38e92c3acd5b2a5dc1a4566e49a3e0b3bf203f"},"taxa":[{"id":"CWE-78","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":"ee599093470dd8ff7fbf711dda1d0357f71000202fbd52bd6a4adcc1402bee70"},"taxa":[{"id":"CWE-95","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":"4e48ba2b30cacf6b10bed1395c5151903e5976983415601a857337920055b977"},"taxa":[{"id":"CWE-95","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":"f04f56dc38acc364b08d62f26932033509ed510e6132e1ae8a8ba4ed690ebf3d"},"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":"1723f58b595a74ff90f9719791edda3c5666826ed75330c12a25db31008e40a7"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"be2a6e64d4ad5a12b1ba4b84dc5c2b76ecd89349202ee7dc34fe74d533a9475e"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"c0b8dbdf6e1bd68400796a6e34db96435aaea40f59fcb2718a161e1b32cb3bec"},"taxa":[{"id":"CWE-78","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":"0d3301e86a4de5c4731a0ef27272f3c8025a923fd91566a29645c5d46c9bdc64"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"05fdb51510ccb0336e3605887ce64b1b5804c1a4ca16c5d239509c68ee5ae540"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"0c977c71d57c2cb0207fafca5fe02ddbab1f6c7a3eb6402d8415aed2c4e19245"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"3ea22d2309c6abec5206bd0e4fbe9bfeea10a79da8d1cc250de3182fddd6049d"},"taxa":[{"id":"CWE-116","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":"0eecbce008969e38c11cf78bab94681bc8d4f5db9a552afaeb8d2528c628688a"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"92ff156e43fd4aa5a9ed7b96ae24e64199cb15067a5ca63a0c3a34cbf8d84aea"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"109c697c1e14877b1fdffa1b3648d59ac6cab5fc69b822e3fe1799216f86ad0e"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"a1be7bf4058d4e62018b9282a8a30d2f99b0b34beff77e5156a0d185afb18383"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"f26b2698b19881323e039f3ca778f0f56864a615b369c8e9d42b08f6d932e3a6"},"taxa":[{"id":"CWE-345","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":"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":"df454194b9e783e6e7a1d886e553f1a569606dbf62bb659a09f889fe1a97a5c0"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8b8b1aaf11935a7e7db68a9f1cca75b565cae1bfe7f2a3d23f1c8c89d1dc4ff3"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"01f5924d3a81acd94b8832c5944a01a0d1eaf53784200ba8ab63212ceb465258"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"2d162ddb9cfb42751116d1f7121495a18cc39c8a30ff74681bfab4bc740e29b6"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"d12feb0af1f045235e8dc97a2405d41e84296a3a66dcd1aba2ce5a7771e8351f"},"properties":{"dependency":{"package":"certifi","version":"2026.7.22","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"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":"5c600b655a2e6823819f0443f97330a52b9d980f972c948f7a898eea8106d33c"},"properties":{"dependency":{"package":"happy-dom","version":"16.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"webui/src/tests/app-layout.test.tsx","line":4}}}},{"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":"61aac370054567e02bec38bb00142634fbc251ba68eec1f464cb73f58f026c5c"},"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":"94505541a18aec923446ca580ca09b4f0252c3b90878d1af19c4c6342f0916ca"},"properties":{"dependency":{"package":"vitest","version":"2.1.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"webui/src/tests/setup.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":"9f35b364ab796b847c2f76409cde83065bd46923edddaff21e5ebbea6b28c087"},"properties":{"dependency":{"package":"pyasn1","version":"0.6.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"cb1a9354d48719ec9173f6b5c6e3b95f0e047c020e8cc78a25af2b89254e9cd9"},"properties":{"dependency":{"package":"dnspython","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"ac75cd57221d6292c9f973fe125477e4a7cd20ddde3ca868b4651a7826490842"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA 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":"d7f3c9f276e213f9374f8e385b50558714b67cfdeeba7dec0630eaec59dfb6f2"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"9538cb90c43821e228f03993dcb6e9dc345b17f7a5e7ca1ef59110199bf3dec4"},"properties":{"dependency":{"package":"browserslist","version":"4.28.2","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":"4332f27ad33ad03a563bb032eca9a839af19da0979d55b74529a16d05aaacf9a"},"properties":{"dependency":{"package":"glob","version":"10.4.5","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":"0db1c19c237ce844c0eb17bbaeda7ac8635cb17fdd592b2c2e25e02a165fa3b5"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.4","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":"8c7eec6d17b9a73193a9fa60cbd21e1e8a97bdbb786f8e3fd06e4516c1e61b16"},"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":"071b3d9736032683fcdfd31a4c0572bdcac81f7dc2a59bc6dca20c7780293301"},"properties":{"dependency":{"package":"postcss","version":"8.5.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"webui/src/tests/channel-ui-registry.test.ts","line":4}}}},{"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":"aede0631072d7fb9da5350b1f1997428b9b633b82dfbed17ebee0ad52d9bb6c2"},"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":"aa2255f7914c5d94017ff95db201917d9602b266cdc8a76ef669374b26ab6d3d"},"properties":{"dependency":{"package":"vite","version":"5.4.21","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]"],"reachability":{"kind":"production","file":"webui/src/dev/gallery/inventory-plugin.ts","line":4}}}},{"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":"a2db2c68eeb23c7e191dc5e04e0d867ac3f8017ec6b4eceabf773367c0374ece"},"properties":{"dependency":{"package":"zod","version":"4.4.3","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":"acea42feaa71d0ce715f026d428d49445871dc73dc2cde5519cec7aaeb1746d7"},"properties":{"dependency":{"package":"glob","version":"10.5.0","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":"298b092a307db7d6e0f878f3103154ec663785e2acfd494f3705fb8d52c0fab3"},"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":"48b04c0d0b2ba372e09ee8512c29abd82c91cda72559a4c7f911c9c7d435c52e"},"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":"672c37c5800cb9c68ccdfc1ca60cc460e46faa17ccbe2e7b955d9bd0a3e3c52d"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","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":"4391745131e424494febe28dad84e2656c0c9fa0c732421a859fa4f962577c0e"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","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":"208995638871416f1ea10a1aac524026b2af976b36f24e86a6c49612d1b5fa7e"},"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":"b27c68adb9a123b90a8a5501c1af636f3432f792f145f381caf52a3af709ac4e"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.0.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"6b43a710bebddbedb45602af0f686932e7fbeca2ba7f392c70e213fc3f36447c"},"properties":{"dependency":{"package":"@babel/core","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"ef8fde4d2b7832bcb9e189605fa4149d493f94227923a93c129a08571dc9c930"},"properties":{"dependency":{"package":"katex","version":"0.16.45","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"webui/src/lib/markdown-math.ts","line":1}}}},{"ruleId":"D31","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":"0fdeeca554792c351f6e943bb32c7bd5f57f5798f241e6290c4d9cffe2836af2"},"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":"D31","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":"396b4dc4479d1c81ae0b077d4b26c8d7e7730bdc02f631a82b57b188cbe18ae7"},"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":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D32","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":"fda813c8d6c4079add5dff04932004a464ca03148ee88c07caa9390c02c9c825"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 650 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; 650 of the 1038 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: nanobot/skills/skill-creator/scripts/init_skill.py. 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":"nanobot/skills/skill-creator/scripts/init_skill.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7d9065ebecaf70ea7972f4a8c6da1fc198a862696f0ad879e03d96e76dc4b9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings_models.py \u2194 useModelSettingsActions.ts: \u0060nanobot/webui/settings_models.py\u0060 and \u0060webui/src/components/settings/models/useModelSettingsActions.ts\u0060 change together 91% of the time (10 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 10 shared commits counted here, the most recent 3 are \u006028d73b69\u0060 perf(webui): streamline model preset saves (#6631); \u00601066adb1\u0060 fix: isolate preset requests and confirm parameter saves; \u0060d4b01285\u0060 feat(models): add per-preset request overrides \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"799a7d3e870be84359da8ad93eb30d88b065b42466a2c79b8690b7100b3df230"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: inbound_commands.py \u2194 ws_http.py: \u0060nanobot/webui/inbound_commands.py\u0060 and \u0060nanobot/webui/ws_http.py\u0060 change together 67% of the time (8 of the 12 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 8 shared commits counted here, the most recent 3 are \u0060219dd13f\u0060 fix(webui): enforce workspace authority across queued inputs; \u006080ac41b1\u0060 refactor(sessions): persist archive state in SQLite (#6536); \u00604a14faa4\u0060 fix(webui): keep saved topics bound to their project (#6509) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/inbound_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69913d6222a796b7a5076ad24c87d3fd7a41f6b4b60ac3d15aa7742ccacb6c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tui_launcher.py \u2194 index.ts: \u0060nanobot/cli/tui_launcher.py\u0060 and \u0060tui/src/index.ts\u0060 change together 64% of the time (9 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 9 shared commits counted here, the most recent 3 are \u006048e7c4f6\u0060 feat(cli): attach terminal clients to the selected Desktop [skip ci]; \u00603a62b0b7\u0060 fix(tui): surface chat connection failures (#5543); \u006026764f24\u0060 feat(tui): add /detach command (#5461) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/tui_launcher.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02225ebdb4c54fd1213777427e7b589dbcf2d83383ef6cfd12548ab310341e8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: runtime.py \u2192 runtime.py, runtime.py, runtime.py, commands.py: \u0060nanobot/channels/mochat/runtime.py\u0060 changes together with 4 other files \u2014 \u0060nanobot/channels/discord/runtime.py\u0060, \u0060nanobot/channels/feishu/runtime.py\u0060, \u0060nanobot/channels/telegram/runtime.py\u0060, \u0060nanobot/cli/commands.py\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":"nanobot/channels/mochat/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabeed785a165cb1cbc9721f06d348ec155ba7c01977331a76448caf66118b00"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings_models.py \u2194 useSettingsController.ts: \u0060nanobot/webui/settings_models.py\u0060 and \u0060webui/src/components/settings/useSettingsController.ts\u0060 change together 62% of the time (8 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 8 shared commits counted here, the most recent 3 are \u006028d73b69\u0060 perf(webui): streamline model preset saves (#6631); \u006023941355\u0060 feat(images): reuse named connections and image request settings; \u00601066adb1\u0060 fix: isolate preset requests and confirm parameter saves \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa653a100ab77752848b50ff1454600423a2b203a7479bfb1ebcabde8a7b7263"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: commands.py \u2194 stream.py: \u0060nanobot/cli/commands.py\u0060 and \u0060nanobot/cli/stream.py\u0060 change together 57% of the time (8 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 8 shared commits counted here, the most recent 3 are \u00603fab7362\u0060 fix(cli): keep trace output under assistant header; \u00603a27af00\u0060 feat(cli): display model reasoning content during streaming; \u0060d630ac90\u0060 fix(cli): prevent TUI content duplication via transient Live and rend\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66092f4f9fd9e2fd9b1675ecf523dba981b78b79d5ef13734db5ab2ce71f263"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings_routes.py \u2194 types.ts: \u0060nanobot/webui/settings_routes.py\u0060 and \u0060webui/src/lib/types.ts\u0060 change together 53% of the time (9 of the 17 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 9 shared commits counted here, the most recent 3 are \u00608af6313c\u0060 fix(webui): refresh pairing prompts on gateway changes (#6401); \u006073a27e07\u0060 feat(webui): show resolved Auto API in preset selector; \u00602ac802b2\u0060 feat(usage): add unified provider usage backend \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de106b90e57a0b827f5ed150f27b042e95c73df4ba31748ebaf85e67e3b52dd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ThreadShell.tsx \u2194 useSessions.ts: \u0060webui/src/components/thread/ThreadShell.tsx\u0060 and \u0060webui/src/hooks/useSessions.ts\u0060 change together 50% of the time (15 of the 30 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 15 shared commits counted here, the most recent 3 are \u0060c1ed649b\u0060 fix(webui): avoid remounting outgoing conversations (#6540); \u00604a14faa4\u0060 fix(webui): keep saved topics bound to their project (#6509); \u0060b37a2369\u0060 fix(webui): admit history without dropping live output (NAN-311) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"373880079d37cce92097c1b7568ff6b2598b7a7be330e22e2c36e980e9f17887"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: app.ts \u2194 picker-menu.ts: \u0060tui/src/app/app.ts\u0060 and \u0060tui/src/menus/picker-menu.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 \u00602850114e\u0060 feat(tui): surface session activity states (at that commit the files were still \u0060tui/src/app.ts\u0060 and \u0060tui/src/picker-menu.ts\u0060); \u00607e60d52f\u0060 fix(tui): prevent terminal cell artifacts (at that commit the files were still \u0060tui/src/app.ts\u0060 and \u0060tui/src/picker-menu.ts\u0060); \u0060a6320171\u0060 fix(tui): keep runtime controls interactive (at that commit the files were still \u0060tui/src/app.ts\u0060 and \u0060tui/src/picker-menu.ts\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7beea3bcd4aa8f6b67acfb020c4338866bdd38b192d6494a92b99db459a8d993"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: sessions.py \u2194 session_access.py: \u0060nanobot/agent/tools/sessions.py\u0060 and \u0060nanobot/webui/session_access.py\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 \u006049043054\u0060 refactor(session): decouple history tools from WebUI replay (#6017); \u00606e9ae5bd\u0060 refactor(session): remove request-scoped access grants (#5238); \u0060d99f589a\u0060 refactor(session): clarify reference boundaries \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/sessions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f3c8caf25e8825ec22d42e8f181f3169e386783d5520b4796c94c05e723b1f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: commands.py \u2194 evaluator.py: \u0060nanobot/cli/commands.py\u0060 and \u0060nanobot/utils/evaluator.py\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 \u0060dcb37259\u0060 feat(heartbeat): custom evaluator prompt; \u0060a50b3ac0\u0060 fix: harden cron session automation flows; \u0060e3df3103\u0060 fix(heartbeat): skip when HEARTBEAT.md has no tasks and fail closed o\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7469a4c4789a3c49b22a3ccf197baa530ac34592752a807c1191a1896c7e0657"}},{"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":"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":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c83402ac3c5dae84c64838455e51b0420db6f9d7909ceda2175afde3951578a"}},{"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":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a50d7190504ad95dd4c0275494f85a94ffa08edd97d2ea9a3bf2247f096cd4"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CNumberInput\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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1cf48f0d28cccd1f02f4deb58ab813ed3dd25eee829f8626c8251993c533fe"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CNumberInput\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":"webui/src/components/settings/capabilities/TranscriptionSettings.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b41514e4c946620fedfaac102b7eca0409a1fdd835618a96f3f1b442ba6c1f"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CNumberInput\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":"webui/src/components/settings/capabilities/TranscriptionSettings.tsx"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d405113e346d908f90a6b3720ec7d880049183f77b1eaf588094828c85b449"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CNumberInput\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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7cad542091e09d9acda31e061a3403afd9af5f744ddc3241544a40c9c81bfb"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CNumberInput\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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"079799e8232b68efac76a24573789a4d26bfe63566859c0771c79aab0c0f7998"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"febf4b9012cd73df941f523c1533a3aaf14a932b2244f8d511aad70927595036"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch1\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"882b7dbd5e6c91002b3f507be1d912aaffd2d342d0146df09f80b1fe1e6d4043"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea5395fca94e75a62e88e74d6593cd17336ba8b925dcb081df4a9ea6a524ba0"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds pointerdown, pointerup, pointermove and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1606c56e59f6e1cbdf3b38398e9264c137148c14d32209210a8b85ecfa31d1a0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cli\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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"675e700aa12fa87ed468531ac6a16879acdca8223d10d9ea87d092284059ca70"}},{"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":"webui/src/dev/gallery/shell.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f950cbb6fd9a750b764d836bfa935a0b0482745f8bfc2b42779fee61b8af0725"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cspan\u003E moves \u2014 its \u0060animate-ping\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":"webui/src/components/ConnectionBadge.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc7d5cbf5a4c34885ca9f4ddc48a3521dea2c8a8df541d1e5e0e475cac3c5b5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7e6d999916f818c091a3215e56a75e2d4c52123ef87fc8d39410c98c12b478"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6ef7ce5775db4952dd38a5d57c58b35e92a53041f2783ea2e1452a8e3a934b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (2.5:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c041457853d9d7832025e64154bb40ecb6eeb3667ef68d40ba00f73668723b"}},{"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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecbc3ec61fbf749c773b455aa6344e885f2ed762ccbb18edcd175559790cbba"}},{"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":"webui/src/components/PreviewPane.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fe8e4a0a34e38d2d527fc51871315175671fd764611fdfeccaf9d1b72cde74"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\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":"webui/src/components/PreviewPane.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6306bfe2b9b5cfefba4f6f73b2c022eeaa92b479499e494496a47e47b74cd6c2"}},{"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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c808ae0f394d2901dad90fbfc7f92f2392b3bed8494840286f4d255362a429ef"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\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":"webui/src/components/SidebarResizeHandle.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0d46a9b6abbb89282d994e62c566ed7f3d3b1c952c889e2ca8d011482d306c"}},{"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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6083f6f16c8418f3ba77e8098b84d2cd4adc6c7dc5ba178c21bfd720d38492"}},{"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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9c4529bec13f65c46d32b1ed3ede3baad971f3d8c5687dd08d9752700cbf38"}},{"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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefe87bc616f98d41658ababf3536667ea05733ddbeba09ee8a9c6a5ff695dba"}},{"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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"231aab00edca567b48d5c17589e611a51666b2f795734d5d8212dde6c5926433"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8d56b5da6cb324dce57ed048729ae5191a7ac4b5090588964c858edd233dd4"}},{"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":"webui/src/components/ui/input.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf1cc59da471ebd21c02b9c297781fd489c5968adb8fa3ddb6bffab5f6248e3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.settings-list-row: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":"webui/src/globals.css"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3b086b5733489db240da65e8d61685f4db932dd8850e4b3a7f23297db1c4d0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.goal-island-panel\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":"webui/src/components/thread/goal-island.css"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06d9720a41f1c971838863c943be70bbd5086f9128ae5c8e3cae0983eced42c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.remote-dialog\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":"webui/src/components/remote/remote-layout.css"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d02dc93cc3a27d3a345d17c4d6beeedf12e07a4fb9c36fea308e9004dc957ff"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.composer-status-strip[data-state=\u0022enter\u0022]\u0060 moves (\u0060animation: composer-status-strip-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both\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":"webui/src/globals.css"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2326eaffefda1e1ba2d53cc8e41b15888a7055e5ac67c36b92c10f8341f12f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.composer-action-glyph\u0060 moves (\u0060transition: opacity 140ms ease-out, transform 180ms cubic-bezier(0.2, 0.8, 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":"webui/src/globals.css"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f207f749a7dc988c4da71a3c6cf622215a4fa20c541d281da82f4b46bd240ec"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sidebar-selection-highlight\u0060 moves (\u0060transition: transform 300ms ease-out, width 300ms ease-out, height 300ms ease-out,\n    var(--theme-paint-transition, background-color 0s)\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":"webui/src/globals.css"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7874557141d573c219d1b6dd7c524d2521314254ecae0b415a726861e41e25"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.star-prompt-decoration\u0060 moves (\u0060transition: opacity 120ms ease-out, transform 180ms 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":"webui/src/components/StarPrompt.css"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de640096bc639a57375c7d89cec93ce362bba55e0354b82aa24dbdead83f721"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.star-prompt-action:focus-visible .star-prompt-decoration\u0060 moves (\u0060animation: star-prompt-pop 640ms cubic-bezier(.22, 1, .36, 1) both\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":"webui/src/components/StarPrompt.css"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e63538cb1e38bd1676ce0e8d977c990e1d67cfd2495408eca8be9658d3adaf1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.star-prompt-action:focus-visible .star-prompt-sparkle\u0060 moves (\u0060animation: star-prompt-twinkle 420ms ease-out 250ms both\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":"webui/src/components/StarPrompt.css"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb7b0ac5f6c2bdfd782fb261e88367584629feb74ce446ae39f549e94246166"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.star-prompt-action:hover .star-prompt-decoration\u0060 moves (\u0060animation: star-prompt-pop 640ms cubic-bezier(.22, 1, .36, 1) both\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":"webui/src/components/StarPrompt.css"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82eecf61a43bb8731a326a868492ab2a1ec49c4be53f0caa76445c9a06f0f7a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.star-prompt-action:hover .star-prompt-sparkle\u0060 moves (\u0060animation: star-prompt-twinkle 420ms ease-out 250ms both\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":"webui/src/components/StarPrompt.css"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc27311a5190f698b07dd289594d40edafce8a8357d2858587f540d211608f3c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.goal-island-panel[data-state=\u0022open\u0022] .goal-island-panel-content\u0060 moves (\u0060animation: goal-island-content-in 200ms ease-out 100ms both\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":"webui/src/components/thread/goal-island.css"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6eefd48db2760ee719336b5cace33bf6da7ade173d6bb30d8fbb76e063b83d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.goal-island-panel[data-state=\u0022closed\u0022] .goal-island-panel-content\u0060 moves (\u0060animation: goal-island-content-out 80ms ease-in both\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":"webui/src/components/thread/goal-island.css"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0866ebf9958c2c0afbf31a2795f585f1dac13e517a2948ce13f37b8a2242f3a"}},{"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":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060hatch_build.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060tui/package.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":"tui/package.json"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1917295c90d61bd762c530d002c39e234f96da77a1640ba215de2a0ee71dd6a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/telegram/validation.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de6143e8329b96b16835d1e4329eac1237acebb7b243be4e05868caba823bff"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82ed18e6d975d20d8e5312af787b5daedf0bf4d04fe78921a76bd59bdf3a796"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.AsyncClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_responses/backend.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8beb2f2dcc0e4d03d0792e2c81fd61cd26842f84e15ad258017b779c835c5f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"7496ed92eb79d80ce5bd17bf31e81ab12beff6f16307de44ef03665bca61f4c5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060verify_installed_release\u0060 is async and calls subprocess.run \u2014 a blocking call inside async code stalls the event loop \u2014 every other task on it waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_installed_release.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d70420d5b075a190394a391096c9277b7446add76c8a632c3760c5a2778a1c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (19 clone groups): 19 duplicated blocks under webui/src/ have copies in at least two of the sibling directories components, dev, hooks, lib, providers, workers \u2014 11 of them are reported below, and 8 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 19 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 19 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 19 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e7786e1797d049dc00d0811ff640c1b973b4088e56c87dd7f705c76e54bde9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (17 clone groups): 17 duplicated blocks under webui/src/components/settings/ have copies in at least two of the sibling directories capabilities, channels, models, notifications, overview, shared (\u002B1 more sibling(s) not listed) \u2014 7 of them are reported below, and 10 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 17 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 17 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 17 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d4bfd325c44ab3750031c96b9d21d972430b040877c335882d0db467d40c1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (13 clone groups): 13 duplicated blocks under the repository root have copies in at least two of the sibling directories nanobot, tui, webui \u2014 9 of them are reported below, and 4 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 13 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 13 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 13 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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b654e38da6bdfa434ae0855a47c1b79eeb1b0ae5ce5ac16f3220a7079fe5b55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (12 clone groups): 12 duplicated blocks under webui/src/components/ have copies in at least two of the sibling directories pairing, remote, settings, thread, ui, workbench \u2014 5 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 12 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 12 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 12 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5527d79f6388c2866c9ce41d1a061c30d872f2a36739b056245dd9d26b41261e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (5 clone groups): 5 duplicated blocks under webui/ have copies in at least two of the sibling directories browser, src \u2014 1 of them are reported below, and 4 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 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 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 5 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":"webui/browser/code-highlighting-fixture.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9ed64cc3538a9b1a7c6e9eaca37ce38f02fb2bf66a5a50d651dd14a0d18465"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2 locations): webui/src/components/CliAppMentionText.tsx:174 \u00B7 webui/src/components/CliAppMentionText.tsx:243 \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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c935760b8c32ea6c32a159f3cc5525401259a0eaa6666fb452330b16b5e9d00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): nanobot/channels/linear/webui/member-access-store.ts:24 \u00B7 nanobot/channels/linear/webui/workspace-store.ts:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 478 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":"nanobot/channels/linear/webui/member-access-store.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d628c1be72bc843f9fb16df2a6fbbab6cf0d17fdfe8e6f8506e89deb0dc576c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1134 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1237 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f05556f3228af92f3daa78ea267ff7f051075c8e8bdf1f57dcff2e8bca99d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (45 matched lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:2607 \u00B7 webui/src/components/thread/ThreadComposer.tsx:2758 \u2014 the two spans are one implementation copied and then locally edited \u2014 199 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb945a634823bacfe4bb6c32b63ab4bd6eae316ad0a0a1b9d1a920ed1b4d87eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): tui/src/menus/mention-menu.ts:6 \u00B7 tui/src/menus/skill-menu.ts:6 \u2014 the two spans are one implementation copied and then locally edited \u2014 327 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":"tui/src/menus/mention-menu.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b95070ddb205310865582d1a2865d13b6904583452aa6fce7f75614c8335493"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (38 matched lines \u00D7 2 locations): webui/src/components/settings/capabilities/ImageGenerationSettings.tsx:120 \u00B7 webui/src/components/settings/capabilities/TranscriptionSettings.tsx:100 \u2014 the two spans are one implementation copied and then locally edited \u2014 276 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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fdb1b50232d1a87ea795da11567b193ab3cb0492c5b83ee905d37bebb5ba77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): webui/src/components/settings/overview/OverviewSettings.tsx:213 \u00B7 webui/src/components/settings/shared/ModelControls.tsx:611 \u2014 the two spans are one implementation copied and then locally edited \u2014 131 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f51cd271e361959e4c486de88170220c529c0acc25dc527a354f8d5eca26a3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (33 matched lines \u00D7 2 locations): webui/src/components/ChatList.tsx:229 \u00B7 webui/src/components/Sidebar.tsx:50 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is inside a TYPE DECLARATION, not executable code. There is no function to extract and no call site to call one from, so do not read this as an extract-a-helper row: the collapse a type offers is a generic \u2014 name the shape once, parameterised over the part that varies, and have each copy instantiate it. First check what actually differs between the copies: where they are a MATRIX of cases (one entry per input, differing precisely in the case each one pins), the repetition IS the enumeration and collapsing it would delete cases rather than de-duplicate anything \u2014 leave those alone. Reported because the copies that are not a matrix drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/ChatList.tsx"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9145b352d0347a7ca4b294a3fdece6a9835938571968465cf527b1a56598ac97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1112 \u00B7 webui/src/components/ChatList.tsx:1587 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca303665b0b81be4a52cb58a2e91ec41f52473f0d63a7f179b7c523707bc57f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): webui/src/components/thread/activity/generic-tool-model.ts:364 \u00B7 webui/src/components/thread/activity/trace-activity-model.ts:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 169 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b222f4165e63a31d804c251472e465da41fc3f739baf6b707b9d2bc61a7b4c96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): webui/src/components/settings/system/useSystemSettingsEffects.ts:50 \u00B7 webui/src/components/settings/system/useSystemSettingsEffects.ts:133 \u2014 the two spans are one implementation copied and then locally edited \u2014 181 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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7327545d01233c1e71654da8ee478436d391e8ef8c986e2706dd8a05c9a54109"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1423 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1500 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe523b3403a11acec873536acfa57e3c85f426da8dc89b19f649061debbbf52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): nanobot/channels/weixin/webui/WeixinPanelView.tsx:112 \u00B7 webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx:113 \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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"742a375da43a157c176523cab5860dc27d2c09e69a807abeea95b53540647f39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): webui/src/components/settings/system/AppsSettings.tsx:1379 \u00B7 webui/src/components/thread/ThreadComposer.tsx:2715 \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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7225b87ebcb78a74713c63a1e9d628d819825dcbcd4963fcf9c6bc0004ba28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1376 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1452 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac79c107d0ef932c2b6ade40eceeb63d8d92792c9d9a0d76242f5056f75eddb2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): webui/src/components/settings/shared/SettingsTextEditor.tsx:18 \u00B7 webui/src/components/settings/shared/SharedProxySetupDialog.tsx:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 132 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":"webui/src/components/settings/shared/SettingsTextEditor.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c98c026cf9f069ea4bb3c47c59d95029327efd50b68f7912a75028c0dc492a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): webui/src/components/settings/channels/ChannelIdentity.tsx:179 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:1513 \u2014 the two spans are one implementation copied and then locally edited \u2014 78 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":"webui/src/components/settings/channels/ChannelIdentity.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8601a431e7ec01ba3b7252694fd6a0ca8fccf71e4219075990395491af77089f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:1197 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1218 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d9e441f22bed3f027444178942c6e5dd8ac9b96980d2da7bf86877ab4367b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:1790 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1814 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfbdd9aac85a60f18ba43a376871ee298cfa6da3618f160151bf2642320687e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): webui/src/components/MessageBubble.tsx:585 \u00B7 webui/src/components/MessageBubble.tsx:618 \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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8c53cd363296cf23fda4cddb9c2522057538a8775e8a125e8b92112edacf76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): tui/src/client/nanobot-client.ts:255 \u00B7 webui/src/lib/nanobot-client.ts:655 \u2014 the two spans are one implementation copied and then locally edited \u2014 105 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3660449651373b35caa6471c8923eb0f22a99ba7b60896e3e85a418b5a11a37a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): webui/src/components/settings/SkillsCatalogSettings.tsx:298 \u00B7 webui/src/components/settings/SkillsMarketplace.tsx:127 \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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab0573c7bfcac1ba93841fbfb50e0680062516c8aeb579b9bfb93a78bf8585b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): webui/src/components/workbench/PaneWorkbench.tsx:461 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:571 \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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b72366d91f6dedcbfb3dfbe302bdbc1c6661eb86eb2ab35d04a13acfea73899"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1029 \u00B7 webui/src/components/ChatList.tsx:1511 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"033b4e4ab5e0b66516e17af0174af77b59bbffa28d819ac8bd0a6cb2da2bdf57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): webui/src/components/settings/channels/ChannelQrConnectFlow.tsx:81 \u00B7 webui/src/components/settings/channels/ChannelQrConnectFlow.tsx:187 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 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":"webui/src/components/settings/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0f2c17ab3fde35bf38dcca00b16ab61cacc44b5ec9e95c54f940170be899bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): webui/src/components/settings/models/ProviderSettings.tsx:478 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:495 \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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0ee5c872bdd425fa52f857d01d767a305256a9a6d09aa18dc1038feccd980a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): webui/src/components/thread/ThreadShell.tsx:1328 \u00B7 webui/src/components/thread/ThreadShell.tsx:1381 \u2014 all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49114f0875354b12bfc072125140cebe86ebbe7d0aafdb28780e66f5c028413"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): webui/src/lib/api.ts:644 \u00B7 webui/src/lib/api.ts:1044 \u00B7 webui/src/lib/api.ts:1068 \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":"webui/src/lib/api.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce357ccb89d8d5292fa92c236a98245b369f34fe6e1810ccda0a411016616b3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): webui/src/components/settings/capabilities/WebSettings.tsx:203 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:849 \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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69139fb45f07e99d5620de7f468078f5213814c255aee98cb9ae04d2530740f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): webui/src/components/settings/models/ProviderSettings.tsx:920 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:1052 \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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2795fec9effa751c9f8efa687845a07e76c4c6088d2ced6c7d966b8af6d8286"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:2578 \u00B7 webui/src/components/thread/ThreadComposer.tsx:2742 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dbed4f05c51ddcc24e51df4f7b2055bb9db2945661d9f6cd9954e0c608328f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:727 \u00B7 webui/src/components/ChatList.tsx:742 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f18d069a4698865e4d18fa7d14c174cc8acba2e27a3c737b66c745568e10fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/LanguageSwitcher.tsx:16 \u00B7 webui/src/components/settings/models/ModelAPIControl.tsx:72 \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":"webui/src/components/LanguageSwitcher.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1e28576ffc012b0e610ec03041479f9f2ad9f402f550466df3ef2f44580b65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/workbench/PaneWorkbench.tsx:445 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:552 \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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"2732b6793752afbea39665b4c71a932a67510adc691055983ed93e7a2b301873"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/workbench/workbench-layout.ts:304 \u00B7 webui/src/components/workbench/workbench-layout.ts:319 \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":"webui/src/components/workbench/workbench-layout.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a092ad0d357a32f716decac546156da134e1bc3fed77b6dd8e0f47647ed2f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): tui/src/app/app.ts:1414 \u00B7 tui/src/app/app.ts: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":"tui/src/app/app.ts"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c2aaac7ec80b11ae21f2de2a2acbf273dda65f3d31ea37b906ef97af4ab305"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): tui/src/app/app.ts:2107 \u00B7 tui/src/app/app.ts:2263 \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":"tui/src/app/app.ts"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9abb15e3528bdb589330deb845f0fa42a127686fddf557a51c3819c274a632d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): tui/src/client/api.ts:308 \u00B7 tui/src/client/api.ts:335 \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":"tui/src/client/api.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca42bec5bb56400f7dc529dc9cba94d0f1271e0349215e7f9c4f8e6ec408cbb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): webui/browser/fixture.tsx:237 \u00B7 webui/browser/fixture.tsx:257 \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":"webui/browser/fixture.tsx"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e94aac866fef9264fb2f7cb66c77d815230bb991b3b9a9df6956090cfa27382"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): webui/src/App.tsx:541 \u00B7 webui/src/components/thread/ThreadComposer.tsx:445 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 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":"webui/src/App.tsx"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"489ae296a97d05824fd6f1526696f2b9abdec9e892e251dc0ac25a0ac2471302"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1063 \u00B7 webui/src/components/ChatList.tsx:1545 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc724666895bef1be866945024c34792262492683d51b6d64cada8d9db97e319"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1974 \u00B7 webui/src/components/ChatList.tsx:1989 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a01845ea2d7d41da6d61745db94e0f876c0d0d9eb2a656a75b7b4afd0ae7c39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): webui/src/components/settings/models/ProviderSettings.tsx:848 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:1023 \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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a563a7ec1265c825145ca269a285c431d3d7894104d1ea594085f642ac831a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:833 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:848 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8f9dbdc44ba2d779398c4e8d8403e33599f8a8f66495bb3d1fd3eef55c0c6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): webui/src/components/thread/ThreadShell.tsx:1308 \u00B7 webui/src/components/thread/ThreadShell.tsx:1362 \u2014 all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e274a3f4ce2b7714b56874eba108a3f79f61f3d9876d817eb886ed2d4171d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): webui/src/components/thread/session-transition.ts:22 \u00B7 webui/src/hooks/useTheme.ts:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 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":"webui/src/components/thread/session-transition.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdf20ea03ecd9b465d3c7abe674861f1721783d23d16745e1d6f93cefe4a370"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): webui/src/hooks/useAttachedImages.ts:163 \u00B7 webui/src/workers/imageEncode.worker.ts:101 \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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5d9036622715e6873fdeb47bc536a2eeb7f4047d208ff9d025cb739800ef2f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): tui/src/app/app.ts:1383 \u00B7 tui/src/app/app.ts:1395 \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":"tui/src/app/app.ts"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"194f0c324592c4d4a4799e5aaa8851a1f6b93d959d89a7f8e26096d419fd0897"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): tui/src/rendering/transcript.ts:230 \u00B7 tui/src/rendering/transcript.ts:449 \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":"tui/src/rendering/transcript.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3a3dcd048959cb1f7615ba9507b54bc806b7ae7c1b3ec14a3643148103611c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1576 \u00B7 webui/src/components/ChatList.tsx:1863 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c18a75f50041a8af18860a277a7842b9ee1136bd1e50cb36afb14b0a7bf32f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): webui/src/components/settings/system/AutomationsSettings.tsx:143 \u00B7 webui/src/components/thread/ThreadShell.tsx:781 \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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5b65b1d9ca2b28c61f837c5961a713a86836d3a805cdff5fcff0594a0f6cd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): webui/src/components/settings/system/useSystemSettingsEffects.ts:199 \u00B7 webui/src/hooks/useSessionAutomationJobs.ts:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 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":"webui/src/components/settings/system/useSystemSettingsEffects.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9075e47e6eca51f6e8abf507a8afe7c1fc521c0a59a4d9c347da6eefeff8c894"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): webui/src/lib/api.ts:1447 \u00B7 webui/src/lib/api.ts:1465 \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":"webui/src/lib/api.ts"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a6851a7fa0adf27afe4464257e943785f76ba99a37d352c211d57d648de0d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): webui/src/lib/nanobot-client.ts:764 \u00B7 webui/src/lib/nanobot-client.ts:782 \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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"819b7142b8dd82e97105c1cd3ccd7c26eab9f9be3db016e6c1aaeaec31b6a990"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): nanobot/channels/weixin/webui/WeixinPanelView.tsx:99 \u00B7 nanobot/channels/weixin/webui/WeixinPanelView.tsx:145 \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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"460dcf344061fb047c001ec7bab95ad6b01309985293739ffea761891d5fd6f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): tui/src/app/theme.ts:156 \u00B7 tui/src/app/theme.ts:212 \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":"tui/src/app/theme.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"671d78180965e9504889dc391c1d31b95805ed7b6353c9c65a325aec2622e685"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): tui/src/rendering/mermaid/block.ts:170 \u00B7 tui/src/rendering/mermaid/viewer.ts:240 \u2014 the two spans are one implementation copied and then locally edited \u2014 104 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":"tui/src/rendering/mermaid/block.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd619fae2504c809db43a7f865dade3389bdedd7d76159c591769b6dab6e3b7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/App.tsx:1601 \u00B7 webui/src/App.tsx:1642 \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":"webui/src/App.tsx"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb111b8fde5ff22d4a90ba28ae59b8d219fb48eea793f6a0d826587d9b5c2e31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1391 \u00B7 webui/src/components/ChatList.tsx:1884 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce3f5fc6cf102e77c8b3ceaca7db1d22516648bf65fd15fdc854a7749e576c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/components/DeleteConfirm.tsx:158 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:1252 \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":"webui/src/components/DeleteConfirm.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb96a7a46b25fd6020b6bc84b61d0976d359d93d524cbf457e2b6d20d3b0f5fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): webui/src/components/settings/models/useModelSettingsActions.ts:584 \u00B7 webui/src/components/settings/models/useModelSettingsEffects.ts:45 \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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"02986a6e5fc5f2d03456af24d799e6803e83f8e46368eb8b1f5d26f9caaf3d96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:880 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:891 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"45558f0f0d22ce8c7c41da654d34cfb6b9536aff76c089372545157476e56a0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:739 \u00B7 webui/src/components/ui/expandable-text.tsx:23 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"643b3ff605e1fc8da1089aadde01ff49fce14bea2fbc3a4927de5e05aa0ef81b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): webui/src/components/thread/ThreadShell.tsx:329 \u00B7 webui/src/hooks/useSkills.ts:43 \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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06699db1ee0d7f685c924a4c4760e5e19620acab4a0b0567f3c5ec751ae405c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/hooks/useSessions.ts:123 \u00B7 webui/src/hooks/useSessions.ts:156 \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":"webui/src/hooks/useSessions.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2b6b83fd868da32bb6edf8bde36a991ffa37b21c5135713d130dd832d5b347"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): webui/src/lib/thread-event-projection.ts:741 \u00B7 webui/src/lib/thread-event-projection.ts:822 \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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf975224755c5ff86cff4be2a2fdff6b2522013167e7d2487b92595d3184df3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearPanel.tsx:147 \u00B7 webui/src/components/settings/channels/ChannelSetupPanel.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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"af57c6226b2d72deb060846c69886ad54efcdf7d637f4171974d393489467c45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearPanelView.tsx:122 \u00B7 webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx:138 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3f9da45806810fd63c207ba43a77326c1eb337ba9d7538be8f60c19c11f4a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): nanobot/channels/weixin/webui/WeixinPanelView.tsx:51 \u00B7 webui/src/components/settings/channels/ChannelSetupPanel.tsx:120 \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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4900ff14649acd912d8841ece2ada9ed1bf01946daedde1e64ad87878facffd0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): tui/src/menus/session-menu.ts:134 \u00B7 tui/src/menus/skill-menu.ts:61 \u2014 the two spans are one implementation copied and then locally edited \u2014 95 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":"tui/src/menus/session-menu.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c287b92e435b1bdd504234d2807b06e9aa96f9ab00c1739d958f82f3612fd68d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): tui/src/views/runtime-controls.ts:229 \u00B7 tui/src/views/runtime-controls.ts:252 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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":"tui/src/views/runtime-controls.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd4fad557089e10efdfc5116d38e5427ee9379efb3edffe080c762dfc6fb5c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/browser/fixture.tsx:254 \u00B7 webui/browser/fixture.tsx:266 \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":"webui/browser/fixture.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb0b82c6fd4c9aea3204a77cec18bac401e9fb80f3ce2a38b58fe0e0aa3ffaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:897 \u00B7 webui/src/components/ChatList.tsx:907 \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":"webui/src/components/ChatList.tsx"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c0e9fd27365c3d460076b71d18daa7dc1a9379d5bc489555622ff91efcff86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/components/CliAppMentionText.tsx:22 \u00B7 webui/src/components/CliAppMentionText.tsx:33 \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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8782435128e4eaa0e97b596a965031b3b8786776bc4cf437aaeacdc6d21ebef2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/components/settings/system/AppsSettings.tsx:1066 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:1076 \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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"74606622952cb117a9279266eb573b5e43d2f38a92eed8728b1c97616bf89762"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/components/thread/SessionInfoPopoverView.tsx:246 \u00B7 webui/src/components/thread/SessionInfoPopoverView.tsx:258 \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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d969951aaf452ae22de2d39d0cf36d6c002c2117ab40bdfce380c23c3d462512"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/components/ui/dropdown-menu.tsx:30 \u00B7 webui/src/components/ui/popover.tsx:24 \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":"webui/src/components/ui/dropdown-menu.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f87aed800b1fd8bd86cd18c9b80ecf3ac9768fc31caf41958f978881951c508"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): webui/src/components/workbench/workbench-model.ts:210 \u00B7 webui/src/components/workbench/workbench-model.ts:240 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"webui/src/components/workbench/workbench-model.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b2ac49a2387c07ff817819ad0f16ca455bad0e2b2acbef8e309db8499365e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/lib/remark-tex-math.ts:142 \u00B7 webui/src/lib/remark-tex-math.ts:219 \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f335e337191f3b41eaf9bfa1ef9d339130feca4ddcac7c623d64f76691567434"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/lib/remark-tex-math.ts:311 \u00B7 webui/src/lib/remark-tex-math.ts:415 \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d95a0e1792b5c273b955f3a1a5a650c59673934599a180b668106324cc3113"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): webui/src/lib/thread-transcript.ts:864 \u00B7 webui/src/lib/thread-transcript.ts:874 \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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0ee3e2ec94481a4e4fdbf34a962b09dac8aa8ceeb97a9b01b0286be7090c72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): scripts/check_client_import_boundaries.mjs:175 \u00B7 scripts/check_client_import_boundaries.mjs:231 \u2014 the two spans are one implementation copied and then locally edited \u2014 105 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c22dd8bf37a02aa1ec01f536bbe576928455f184ab4ea05b1ec169dad7a4c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): webui/src/components/ChatList.tsx:606 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:323 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:355 \u2014 the 3 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb18f242dad967b6a88e6dafa74232704f21d336a2e5806aa5957127e005d48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): webui/src/components/settings/system/createSystemSettingsActions.ts:357 \u00B7 webui/src/components/settings/system/createSystemSettingsActions.ts:426 \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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90c1884081fd59de5577f2d3ce5226e3c666f3d24aed29855bd34b6a6b111d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): webui/src/components/thread/SessionInfoPopoverView.tsx:357 \u00B7 webui/src/lib/format-time.ts:76 \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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9036e0416b54dc4e41afe3766547e0dd2523288dbe428b2e3543d41d34682e9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8 locations): webui/src/components/ui/alert-dialog.tsx:23 \u00B7 webui/src/components/ui/alert-dialog.tsx:81 \u00B7 webui/src/components/ui/alert-dialog.tsx:93 \u00B7 webui/src/components/ui/alert-dialog.tsx:105 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 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":"webui/src/components/ui/alert-dialog.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f073eb4fefb5f73ce2b31521d9a6749335d977de2a6b94a028ac79dff28b0301"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): webui/src/hooks/useAttachedImages.ts:155 \u00B7 webui/src/lib/imageEncode.ts:51 \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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a9ea62479a9b4c2f96f1a94133805ec38ad4626e5208e135af0ee6d22fb2a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): webui/src/lib/remark-tex-math.ts:224 \u00B7 webui/src/lib/remark-tex-math.ts:309 \u00B7 webui/src/lib/remark-tex-math.ts:413 \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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"75af8f50cf8d083a288907ad604a94ed85319de1c53b3947f4ca982eeb0f5c74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearPanel.tsx:48 \u00B7 webui/src/components/thread/SubagentTaskDock.tsx:34 \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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8192b376952c5effc3871bb6d7836319efa3a08733c16c530bc447a5c9230c70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): tui/src/client/api.ts:490 \u00B7 tui/src/client/api.ts:507 \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":"tui/src/client/api.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a249db793c0f64b89b9f9ccb6d0fd56bf015fb7ef7701b9499dba0f3d9ed041a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): tui/src/client/validation.ts:46 \u00B7 tui/src/client/validation.ts:56 \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":"tui/src/client/validation.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79b473a288faeb6449da91fc88f5cf1937ece10ee2ad14444e34cb49abfe7ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): tui/src/menus/command-menu.ts:132 \u00B7 tui/src/menus/command-menu.ts:142 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"tui/src/menus/command-menu.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57bf7095b639798bd010d3fbdeffdd9829da971eb208e5fe1fe6937780900d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): webui/public/sw.js:159 \u00B7 webui/public/sw.js:178 \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":"webui/public/sw.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abc1a85a43b8eaa42cf8295e5bdfd0adfacda9e8f225cf3808a527f10a860b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): webui/src/components/settings/capabilities/ImageGenerationSettings.tsx:81 \u00B7 webui/src/components/settings/system/RuntimeSettings.tsx:30 \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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"26feb0855ac289bc8bfe6138ae3fcb750f26e582c913c46153866ed155b84a49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): webui/src/components/settings/system/AutomationsSettings.tsx:761 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:818 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:847 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:858 \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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"56eaac9ea2a4826dde1a4aadd6db06d5b909e8bf315ed45feb87db26bb08273a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): webui/src/components/settings/useSettingsController.ts:210 \u00B7 webui/src/components/settings/useSettingsController.ts:339 \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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e0a6c17b3dd77a3a9a5dd033930ee845a8122603e8e23b8f0aeb94869827de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): webui/src/components/thread/AssistantSelectionAction.tsx:120 \u00B7 webui/src/components/thread/AssistantSelectionAction.tsx:130 \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":"webui/src/components/thread/AssistantSelectionAction.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d664ff577f5944ad2df55695f9770237b6ea136cddd6b21aa5b4199ddce67676"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): webui/src/components/thread/ThreadComposer.tsx:1141 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1264 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1272 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad60c47c13c4fde02e59280ca9d1a6f78bac3333bbc74dc84b6c79899362cdb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): webui/src/hooks/useNanobotStream.ts:439 \u00B7 webui/src/hooks/useNanobotStream.ts:453 \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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb09a84fa8e44fdfc766ab6659a7c26b004876b309ad862d9b74385a46e5c47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): webui/src/lib/cli-app-events.ts:5 \u00B7 webui/src/lib/skill-events.ts:11 \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":"webui/src/lib/cli-app-events.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1696fbba4b55a66e8f3dbc014d2ca26ec0022a8b42f8d92a86b73090a339e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): nanobot/channels/weixin/webui/presentation.ts:104 \u00B7 webui/src/components/settings/channels/ChannelIdentity.tsx:138 \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":"nanobot/channels/weixin/webui/presentation.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fb5cb5906e17a5c7b300ecfa68b125beded1604593a14745748a7fa0b1f24a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): tui/src/client/validation.ts:60 \u00B7 tui/src/client/validation.ts:67 \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":"tui/src/client/validation.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22f96cc789bae09bc18721a26fc3206e0b7640099407669079b5d1910fb03ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): tui/src/menus/branch-menu.ts:27 \u00B7 tui/src/menus/mention-menu.ts: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":"tui/src/menus/branch-menu.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fae2ae02c73cc8b52c365b2bf67435291b8b52fdaba952adb7498563d849c7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): webui/browser/answer-order-fixture.tsx:25 \u00B7 webui/browser/subagent-dock-fixture.tsx:137 \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":"webui/browser/answer-order-fixture.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c54dc0070be64d471f2cafd64333c88cfab6ebdc2bb42060412084c4981dfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): webui/src/App.tsx:541 \u00B7 webui/src/components/thread/useQueuedPrompt.ts:142 \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":"webui/src/App.tsx"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eb44042cb5906a4b9bdf68658125afc009d161c5269158f2d329d53ddea939"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): webui/src/components/settings/channels/ChannelCatalogRow.tsx:34 \u00B7 webui/src/components/settings/shared/SettingsControls.tsx:272 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:193 \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":"webui/src/components/settings/channels/ChannelCatalogRow.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2a5f70b686ce0f5f87d3b513f5a6ca81d2c4953f1d1f9e4f7e9391e5bc0252"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/components/settings/overview/AppearanceSettingsView.tsx:62 \u00B7 webui/src/components/settings/overview/AppearanceSettingsView.tsx:76 \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":"webui/src/components/settings/overview/AppearanceSettingsView.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c0cf1957f94a855f8e77bd2c1dd41ec0fbb03e059899f2477fb258d372bda6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/components/settings/system/AppsSettings.tsx:1371 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:1491 \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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a22c1943b1bf0a90f0505251c919812ffb4519aec59448d6b7f8eff4b1f6ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): webui/src/components/thread/ComposerUsagePopover.tsx:59 \u00B7 webui/src/components/thread/SubagentTaskDock.tsx:83 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"44419a41cbcb4076c74f9ccd22c7fd5b9366ade3e0ebafe141a90bb460c0a28a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/components/thread/WorkspaceControls.tsx:191 \u00B7 webui/src/providers/UpdateFlowProvider.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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5afc9c74382c849afb6e65ea5f68038e0af531cce72e8c9b5132846ffd9199"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/components/ui/alert-dialog.tsx:99 \u00B7 webui/src/components/ui/alert-dialog.tsx:111 \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":"webui/src/components/ui/alert-dialog.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"170094c3944f963717b9a3583d2377aae9757200066d2c1b340a68cb3c8ae6e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/components/ui/sidebar-panel.tsx:20 \u00B7 webui/src/components/ui/sidebar-panel.tsx:47 \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":"webui/src/components/ui/sidebar-panel.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4bbb139923a73851b067a89056ab9c3711fb4859226ae22f9f2a8f13cb2fd2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/dev/gallery/conversation.tsx:250 \u00B7 webui/src/dev/gallery/conversation.tsx:289 \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":"webui/src/dev/gallery/conversation.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44e85efec6fb419c8c6cadebca25b24b8386499ba071f54e34962e38c039c24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): webui/src/hooks/useSidebarState.ts:35 \u00B7 webui/src/hooks/useSidebarState.ts:60 \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":"webui/src/hooks/useSidebarState.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4281b0c945adc4339668a176da80c491582f3cb11e7ca683578b30cf89d4f778"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearResetConnectionView.tsx:16 \u00B7 nanobot/channels/linear/webui/LinearSecretField.tsx:16 \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":"nanobot/channels/linear/webui/LinearResetConnectionView.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aaa7cf5e70ba5ee10b4dee42c557b74e3f9190ba8c342085943358a0439f43a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): nanobot/channels/linear/webui/LinearSecretField.tsx:19 \u00B7 webui/src/components/thread/WorkspaceControls.tsx:171 \u00B7 webui/src/providers/UpdateFlowProvider.tsx:36 \u2014 the 3 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. 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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a8b987130a75bbd68ac2830c3a3812334f498283144982cfec829eb2e22a2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/browser/skeleton-additions-fixture.tsx:57 \u00B7 webui/browser/subagent-dock-fixture.tsx:55 \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":"webui/browser/skeleton-additions-fixture.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6dd529802ad501cc0d328bfbc6f76234fd28ec6045134079b48c3965016b06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): webui/src/components/CodeBlock.tsx:104 \u00B7 webui/src/components/ViewportCodeRows.tsx:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"968afc5fa6e06541de6d47a41ab1df5090f211e6556cb98ca15c19c9138c21de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/MarkdownTextRenderer.tsx:159 \u00B7 webui/src/components/MarkdownTextRenderer.tsx:213 \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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5da04bb2cb0d10bf7ceda76b59c26795060d4d4c8cc87112ab0aaa8517facda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): webui/src/components/remote/QuickPairSetup.tsx:17 \u00B7 webui/src/components/remote/RemoteConnectionsPage.tsx:42 \u00B7 webui/src/providers/UpdateFlowProvider.tsx:37 \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":"webui/src/components/remote/QuickPairSetup.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcb8452a37ffc82212dd21687e0f3e1bc7a9dcf93cf80f308f22a57117a0217"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): webui/src/components/settings/SkillsCatalogSettings.tsx:291 \u00B7 webui/src/components/thread/ThreadComposer.tsx:710 \u00B7 webui/src/providers/UpdateFlowProvider.tsx:35 \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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee8a049a9f3bafa441ebea6bb755ef2a3ca4669aca4b8e52dcd1a8106b98380"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/settings/capabilities/SecuritySettings.tsx:63 \u00B7 webui/src/components/settings/capabilities/TranscriptionSettings.tsx:81 \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":"webui/src/components/settings/capabilities/SecuritySettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8819c205e1e3822f210c6350b561a3774fb837fbef041f8c6f629917588f6fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/settings/models/ModelsSettings.tsx:369 \u00B7 webui/src/components/settings/models/useModelSettingsActions.ts:173 \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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebe012f5635ed36ac65a9dfb2e8f0c8509f1034388ee243b271180316815069"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): webui/src/components/settings/models/useModelSettingsActions.ts:268 \u00B7 webui/src/components/settings/useSettingsController.ts:268 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cd887df261fac7a59fa3d636dcd588eadbec66b1768af190a9195cf30a318f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): webui/src/components/settings/shared/ModelControls.tsx:212 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:544 \u00B7 webui/src/components/thread/activity/FileEditRow.tsx:164 \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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a3a7000cc1416e0fe2e5f639bd7c7f025d73c38a4fcc08fc2a9f2f53ce14e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): webui/src/components/settings/system/AppsSettings.tsx:422 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:556 \u00B7 webui/src/components/settings/system/McpManagementDialog.tsx:67 \u2014 the 3 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"43240f323e7b699266de912ac8a87ad63a17547043efed1e23f30abc195d3101"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/settings/system/AutomationsSettings.tsx:701 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:919 \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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"824eab637114883ddfe19a34f21d9807e22ba15ec876ae15a17b7a6f897a6fcd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): webui/src/components/thread/AgentActivityCluster.tsx:1007 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1149 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1252 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dd734d8baad31729f5d2a5593479ee1610ee2fa00a78921045502706125d28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1078 \u00B7 webui/src/components/thread/activity/web-search-model.ts:253 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"9749f8d61c23cb9c8fa099b153b58900bcf0f9b79177faa20f90e0e7cb32f678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/thread/ModelPresetBadge.tsx:270 \u00B7 webui/src/components/thread/ModelPresetBadge.tsx:436 \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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2a9e37575727ebc4a35afc32e5cbbf2c11268a6c6e3d2b08e66026a2d3cb2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:897 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1041 \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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae6ef314be45bff45eeacd369690c121b1eec387f7c6c4eee0e544ce7c11d1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/thread/activity/activity-text.ts:75 \u00B7 webui/src/components/thread/activity/generic-tool-model.ts:411 \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":"webui/src/components/thread/activity/activity-text.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fa654e11c72b932782b3e2aa1f7e15c79aeb8875def6535b0d6250b694e443"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/components/thread/activity/trace-activity-model.ts:160 \u00B7 webui/src/components/thread/activity/web-search-model.ts:268 \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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd72a04b3d7a3966c1a083c287d51fcce013b339d8a1868db80a03327009c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/hooks/useNanobotStream.ts:207 \u00B7 webui/src/hooks/useVoiceRecorder.ts:57 \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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48db3d43330f06a4e5fcd6b94603bc31114476b9849236ce59d7d1ef95c211e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): webui/src/lib/thread-event-projection.ts:305 \u00B7 webui/src/lib/thread-event-projection.ts:383 \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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20bbdfa9aa0c2b13f9b58e08bfeec5a8d8e12f87908d1adc902b5328b0d8b69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearPanel.tsx:51 \u00B7 webui/src/components/thread/PromptRail.tsx:31 \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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"799166dea81b5910d354e9045f978091a2d1aecae43626c24345985d671b8e99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): webui/browser/fixture.tsx:282 \u00B7 webui/browser/fixture.tsx:294 \u00B7 webui/browser/fixture.tsx:302 \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":"webui/browser/fixture.tsx"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f269796924c5d2a35b4299978ddec7d5610944948c0f6aee4a6105a325d45c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/browser/fixture.tsx:294 \u00B7 webui/browser/fixture.tsx:300 \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":"webui/browser/fixture.tsx"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5fe737cb16ca05c5787226e6eca1b8a1eb9959186efa1670834ebe6a07d893"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): webui/browser/history-boundary-fixture.tsx:20 \u00B7 webui/src/components/thread/ThreadShell.tsx:409 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"webui/browser/history-boundary-fixture.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16695e608a3c304d1ffc0ccce37dbc8c9013c0b96cdf5b5ce0b3b741ef3c141"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/browser/mobile-chat-layout-fixture.tsx:45 \u00B7 webui/browser/workspace-alignment-fixture.tsx:19 \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":"webui/browser/mobile-chat-layout-fixture.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5bcb24af08e703475b5b38ab314c8f95bcaea1037b83165e4da38f01cb4e84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/remote/RemoteConnectionsPage.tsx:245 \u00B7 webui/src/components/remote/RemoteConnectionsPage.tsx:262 \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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8832ad67fcfd783e118dc4d23bf72a34af72313fec6afd901deab5c8de2ae19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/settings/channels/ChannelInstancesPanelView.tsx:58 \u00B7 webui/src/components/settings/channels/ChannelSetupPanel.tsx:81 \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":"webui/src/components/settings/channels/ChannelInstancesPanelView.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63cb4b8e55bb25dff94419573d68738a183b628dc944c00ecd8be793df6685e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): webui/src/components/settings/models/ModelsSettings.tsx:154 \u00B7 webui/src/components/settings/models/ModelsSettings.tsx:263 \u00B7 webui/src/components/settings/shared/SettingsControls.tsx:58 \u00B7 webui/src/components/settings/system/AutomationsSettings.tsx:480 \u2014 the 4 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fc4eaea6687f6e0a9eb5fa11d7be9d9377a4da47f347c1d94c175a0a0654bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/settings/models/useModelSettingsState.ts:33 \u00B7 webui/src/components/settings/system/useSystemSettingsState.ts:43 \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":"webui/src/components/settings/models/useModelSettingsState.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcdfc53c246428aa179b6f48fdb2bfc50debcb61eeca82468c1f69a05ce5750"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/settings/system/AutomationRunAtPicker.tsx:135 \u00B7 webui/src/components/settings/system/AutomationRunAtPicker.tsx:141 \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":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"713ebafe464e4bda203d78ae50cda25af48e6ee6749d46a561755c63271b3c17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/settings/system/ChannelsSettings.tsx:41 \u00B7 webui/src/components/settings/system/useSystemSettingsState.ts:45 \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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"87235c09e5ed4fc3f2e864d1f5a94078367c157b1920cd8a3be4b086af25a025"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1302 \u00B7 webui/src/lib/thread-event-projection.ts:208 \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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b6c3b381a82a39f4f5529d990e16539586d8e4a361e26b76c24ac0072de0a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/thread/SubagentTaskDock.tsx:110 \u00B7 webui/src/components/ui/disclosure.tsx: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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe0981c9f4ac85aa4f87f70d4b51eb8c1a74799d46e6072f55757239782d0cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): webui/src/components/thread/SubagentTaskDock.tsx:143 \u00B7 webui/src/components/thread/SubagentTaskResults.tsx:75 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfcae0d77552dfe5e0e4e0f6c6a3bac9c3d419e3ae05700d6a386eca8a09354"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/thread/SubagentTasks.tsx:281 \u00B7 webui/src/hooks/useSessionAutomationJobs.ts:54 \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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9aa2527dc6153a2a9bd0d3c0114ccca8b810036fc80734343eadbc3bc8b648"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/components/thread/ThreadViewport.tsx:1165 \u00B7 webui/src/components/thread/ThreadViewport.tsx:1199 \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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7636f28e4394f33ceba7ba7dce57f1dda2efea7e8bc58ad0f4b05ee8869a55c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/dev/gallery/settings.tsx:277 \u00B7 webui/src/dev/gallery/settings.tsx:286 \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":"webui/src/dev/gallery/settings.tsx"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eceedebbdd187109900fe6024f24596e926db8d3044fd688c3caa0af03064f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/hooks/useClipboardAndDrop.ts:81 \u00B7 webui/src/hooks/useClipboardAndDrop.ts:87 \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":"webui/src/hooks/useClipboardAndDrop.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"168e131f43f5dda0f6d6177ab4ffb582d37bfa3fe3f56e54451b3d1fd8bc8d59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/lib/composer-draft.ts:15 \u00B7 webui/src/lib/reload-cache.ts:66 \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":"webui/src/lib/composer-draft.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a025c1d6979be4c3bfb48479ff2d18a43d313c783b7df853666a8d6318cad35f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): webui/src/lib/context-graph.ts:7 \u00B7 webui/src/lib/context-graph.ts:15 \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":"webui/src/lib/context-graph.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7136e86348091e02c297680c2151cc462ba8977996da247f511591c57bd0e49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accept (cyclomatic 265, cognitive 317): accept has cyclomatic complexity 265 and cognitive complexity 317; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb66f00c47720120bed8733a0aa682c2195249b02702fa0be1e026ce028f0b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadComposer (cyclomatic 177, cognitive 141): ThreadComposer has cyclomatic complexity 177 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19d496d8e005fa237ede9258c23322d2f9b833c80abde936bf5c64b6843eb09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reduceThreadEvent (cyclomatic 157, cognitive 267): reduceThreadEvent has cyclomatic complexity 157 and cognitive complexity 267; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1a3636e17aa1147f562c882ba71d430b9bf14b06b836e72bdf7c2e802d151f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 130, cognitive 175): (anonymous) has cyclomatic complexity 130 and cognitive complexity 175; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"tui/src/app/app.ts"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d3b510fab0049c390730e5705e8c8813262715692c47e750c28becb0f98024"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UpdateFlowProvider (cyclomatic 128, cognitive 82): UpdateFlowProvider has cyclomatic complexity 128 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ca76591ef32c83a41e769e8543c1db65082a16ef547d0a5ccf0d8f685f5123"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accept (cyclomatic 105, cognitive 147): accept has cyclomatic complexity 105 and cognitive complexity 147; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"tui/src/app/app.ts"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aee1d273d37b3b4b0bdb262b50045c9c159eb145dd7e5f7978218b448ca76ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RemoteConnectionsPage (cyclomatic 105, cognitive 88): RemoteConnectionsPage has cyclomatic complexity 105 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"681510c48d208a4af116e5923b76d8317f5319eca29c3c7a632a619a004c4455"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Shell (cyclomatic 96, cognitive 83): Shell has cyclomatic complexity 96 and cognitive complexity 83; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/App.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc22690cf25f02c3d38bdde4ef3ca19f14537c9463a9b9666426dbbc86bf64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadShell (cyclomatic 95, cognitive 82): ThreadShell has cyclomatic complexity 95 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35fb4bae2825028cb98018093187c37ccb9f38b5d411caad065d67d530e2150"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkspaceProjectPicker (cyclomatic 90, cognitive 78): WorkspaceProjectPicker has cyclomatic complexity 90 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70b543d2aa81b5f6d64e01499d9fbb995093ac4e0f658d82a1bb4231ae386ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseThreadProjectionEvent (cyclomatic 89, cognitive 85): parseThreadProjectionEvent has cyclomatic complexity 89 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/api.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aaa623703a5f3a1d8e7ee00bdc48e6bb3d1cca17bc300a6618b4d2e4afa823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function QuickPairSetupView (cyclomatic 89, cognitive 71): QuickPairSetupView has cyclomatic complexity 89 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 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":"webui/src/components/remote/QuickPairSetupView.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc54558ba46960d1dd317c9a6406440f807a9065cf74c9028bb7c4d79dd2141"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeInboundEvent (cyclomatic 84, cognitive 78): decodeInboundEvent has cyclomatic complexity 84 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"tui/src/client/validation.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8027fc39f26825a97f3b711a6242ba2c4e52423372c6a6ef292366aa6432a5cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handle (cyclomatic 82, cognitive 117): handle has cyclomatic complexity 82 and cognitive complexity 117; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8597a00e8c451a59c8290d012123bdcaa3a66bdf659c954d28f88d81dcce50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 79, cognitive 113): handleMessage has cyclomatic complexity 79 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ba3e3471eca76780103d92eca0835cd1b10a2fb05cdf5a482edf4c8ff64a3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelIdPicker (cyclomatic 79, cognitive 64): ModelIdPicker has cyclomatic complexity 79 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e416eed163088ac3cbce1c65b6b885561f6d566f004325489449feb78438f45b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadViewport (cyclomatic 74, cognitive 58): ThreadViewport has cyclomatic complexity 74 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0b037498a251f1d0c683b998106c15cdd8257c2f20eb412f05e7d06a233012"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function project (cyclomatic 71, cognitive 101): project has cyclomatic complexity 71 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d58574d12d2c11bf0e7bcd1a0beed06f0216690764bf8734a4ad072deeb8549"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RemoteInstances (cyclomatic 70, cognitive 62): RemoteInstances has cyclomatic complexity 70 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":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e798ba89f6a603e2e6f348a5b67a354e443e604cec3a28317197302727cf9b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProviderForm (cyclomatic 70, cognitive 55): renderProviderForm has cyclomatic complexity 70 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ca623c45e41c4bdb0a17b3c7e7c2d197f0950cfe7195101627aa64d972d7da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpAppsCatalogRow (cyclomatic 68, cognitive 51): McpAppsCatalogRow has cyclomatic complexity 68 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17293243282237a5b8b6858e69faa2fbc524b836298305522cd9164ae1535c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyObservation (cyclomatic 57, cognitive 74): applyObservation has cyclomatic complexity 57 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3846a2e0d60adc90087b7b9c28d505cf9fdd04347d890434ba530d9438cd0526"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveModelSettings (cyclomatic 52, cognitive 43): saveModelSettings has cyclomatic complexity 52 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1212f2d60ee98a5827df9a3e37bdf0458b0569ce2df54e767f73b1c94ce7ae61"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LinearPanelView (cyclomatic 51, cognitive 36): LinearPanelView has cyclomatic complexity 51 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 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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b109b48c9d3270a1b7931bc595d5f6cb072014bd447b6d1f0872fa27229de55e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 49, cognitive 62): (anonymous) has cyclomatic complexity 49 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 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c73c2d1e17dab880b0198eea4a4ddec4adedf11831f7d07eb764227e58b9bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationDetailPanel (cyclomatic 48, cognitive 43): AutomationDetailPanel has cyclomatic complexity 48 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b6c454af85b11379eb99fc3ac7588385c369e52e45e4db83a570d96fe8b00f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describe (cyclomatic 47, cognitive 70): describe has cyclomatic complexity 47 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfbc01a7f050910366fe0d2d2fab0d1e9ac0da3cb409f7eb19683b675203f08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 47, cognitive 50): (anonymous) has cyclomatic complexity 47 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 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"59005312995403cef8d988f535fdadb271a69c448b32ec1b1bca02febf78bb57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelQrConnectFlowView (cyclomatic 47, cognitive 41): ChannelQrConnectFlowView has cyclomatic complexity 47 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":"webui/src/components/settings/channels/ChannelQrConnectFlowView.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e6a57d8df6ba3a520f2d845332690d3aec5f5e96b18070b0b622604ce944a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SettingsPage (cyclomatic 43, cognitive 38): SettingsPage has cyclomatic complexity 43 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acda8940d145e775ee33b7e39e808a6b28cbcf4d16ae8d98d4b4ae6f128596f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VersionCheckRowView (cyclomatic 43, cognitive 34): VersionCheckRowView has cyclomatic complexity 43 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":"webui/src/components/settings/overview/VersionCheckRowView.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"022999fecfcdac3211e873998e3ffd3ec499654d75bb0168e14849b77fd8cb52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WebSettings (cyclomatic 41, cognitive 37): WebSettings has cyclomatic complexity 41 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6d4f19364c5fedaf043294f519c81464450de264db4ab27dad37b3a9314708"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelSetupSurfaceView (cyclomatic 41, cognitive 33): ChannelSetupSurfaceView has cyclomatic complexity 41 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":"webui/src/components/settings/channels/ChannelSetupSurfaceView.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b597dfbefbb77dd8c1cc9e45ebf4b7f409c0117b5e8c6165d11e22acae1195f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 40, cognitive 48): submit has cyclomatic complexity 40 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":"tui/src/app/app.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"002b81f11a49cf6bd71035f945d05390016dfc1fe50e910ee2861fee754b0511"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageBlockMenuActions (cyclomatic 40, cognitive 35): MessageBlockMenuActions has cyclomatic complexity 40 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 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"658b01d3f8ac6bca66bcbe4cc844fae1671ee4d067e7c1e8898d89a3929cdfc0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelPresetBadge (cyclomatic 40, cognitive 34): ModelPresetBadge has cyclomatic complexity 40 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"191a64c03e53ab74e5261f5907b5951a6015cee53a87fd1be212b3bba36acbc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 40, cognitive 33): (anonymous) has cyclomatic complexity 40 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c666fceeeb7450aa261143f842f0c0501c1e5488125c05aee6b1686a143bff11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchHistory (cyclomatic 39, cognitive 59): fetchHistory has cyclomatic complexity 39 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":"tui/src/client/api.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a90b629255c99c1b7c79f4b8499f13e33514e4fbecf32b2eb9b9b953a4f66c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function attachProjectedReasoning (cyclomatic 39, cognitive 48): attachProjectedReasoning has cyclomatic complexity 39 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fdfee7363503773c023fe2b12a743a520bb81acc7cc1586e7d50520dd1711b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onKeyDown (cyclomatic 39, cognitive 40): onKeyDown has cyclomatic complexity 39 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"11df08d52dbbd39c1ea72dd6155ffa5b2eaa9e7e269216e87e0f60e84e20b1e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 38, cognitive 38): (anonymous) has cyclomatic complexity 38 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df322fd1c5c2568b3a833d7026335a0133f2dfb1b55ea1c4e916703319e83cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppsCatalogSettings (cyclomatic 38, cognitive 35): AppsCatalogSettings has cyclomatic complexity 38 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 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4e84fb560f7cd3781472c63c5e9f4557298a75740a60b4def049c9bfe3eb51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SandboxSettings (cyclomatic 37, cognitive 35): SandboxSettings has cyclomatic complexity 37 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 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":"webui/src/components/settings/system/SandboxSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a6b4c6b5b7aede5490bd2455c7ca59d00c7b0c9f563e81a05ac70d559aa002"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderPresetEditor (cyclomatic 37, cognitive 32): renderPresetEditor has cyclomatic complexity 37 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc83cc6890892f80bb2fd9551f2910e63b52a442ba259620659581be8bbd4fc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receive (cyclomatic 36, cognitive 40): receive has cyclomatic complexity 36 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":"webui/src/components/remote/useSidebarHostBridge.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e8cb2d279b36d1248c20c7a610bdc01a2121f581b98a8b2d302b3630c985f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationChatBindingView (cyclomatic 36, cognitive 37): AutomationChatBindingView has cyclomatic complexity 36 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/components/settings/system/AutomationChatBindingView.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9e56b58a40259fc3dd3191a8585f315b4ae4845b27cb11ea4d8848e074256f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 35): (anonymous) has cyclomatic complexity 36 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 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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c050cb1d69c24026839925bd5795eadbe1ff358d2175ee28f2e81c1cbb5d4e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelsSettings (cyclomatic 36, cognitive 26): ModelsSettings has cyclomatic complexity 36 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2046d01c0e9afc69e7408ddba352ad23b8dd05a596a3e9094ec2fb6de2958dbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpManagementDialog (cyclomatic 36, cognitive 26): McpManagementDialog has cyclomatic complexity 36 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc09d2c1031c3b06f5257c4ba4a703ca2ab8da8ec5d58bb7f86a388e5d0a08a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isSubagentTask (cyclomatic 36, cognitive 18): isSubagentTask has cyclomatic complexity 36 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":"webui/src/lib/subagent-tasks.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0198f21eb2bc882661797009b902cc72ed94978ad45603476bd5fbd82c7aef65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function connect (cyclomatic 35, cognitive 62): connect has cyclomatic complexity 35 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 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1cf1a5fa7f717192c065e6bf76390c06e7dbd2abf896b38af5b412884e727b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function command (cyclomatic 35, cognitive 44): command 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":"tui/src/rendering/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4c8afdf3b9ed90e27cef9619c3256b503df8fd2399cb2e67481a872ee55b10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageBubble (cyclomatic 35, cognitive 43): MessageBubble has cyclomatic complexity 35 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 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"51aef7715d5ad0d79598aa7a3f8f4d8aeb47962b0b0d139c51e98b80b03edfd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function check (cyclomatic 35, cognitive 38): check has cyclomatic complexity 35 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b7bff21e84b682e1d415312a3d4f559bc5a2cb638261685142be31b1da6e2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 32): (anonymous) has cyclomatic complexity 35 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3df68a36683a70323646a87409cc2ca2ff60732e0d99084034124aba52fa488"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileReferenceChip (cyclomatic 35, cognitive 31): FileReferenceChip has cyclomatic complexity 35 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 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":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7bafebdc060d812075dd588e09a26e89f9ae665fffb5ca899f3d37ddfee4c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RestartSettingsFooter (cyclomatic 35, cognitive 30): RestartSettingsFooter has cyclomatic complexity 35 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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ea1f1515b1293a92f60799802d60bad30cb70b06cdd36366a92870dfa79349"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 34, cognitive 28): (anonymous) has cyclomatic complexity 34 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 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":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5caab3f18603a0f253cfafcf0d622d9a014d98bc1a9d6d8f7d5334bc39a40aa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 33, cognitive 83): render has cyclomatic complexity 33 and cognitive complexity 83; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"tui/src/views/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac88e068a199e4fbf4dc079c68981b91c4c7013e3f29991beb1ca6f16aa359a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectWebuiThreadMessages (cyclomatic 33, cognitive 47): projectWebuiThreadMessages has cyclomatic complexity 33 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 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":"webui/src/lib/thread-display-projection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf242c639a6ce193455d83544dfea6d16568605a2242319f7d865b77c390411"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function current (cyclomatic 33, cognitive 45): current has cyclomatic complexity 33 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 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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a21745d48e320a46411039d6a9a56c8907b4d20d920fcf905d6729ff298da7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationsSettings (cyclomatic 33, cognitive 30): AutomationsSettings has cyclomatic complexity 33 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f944561740ae7f56a8e72c81b288d93d8f8bc50fb72155a3c0cda04e7bae05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FoldedAgentActivity (cyclomatic 33, cognitive 26): FoldedAgentActivity has cyclomatic complexity 33 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f0c46a992ef7aeaeda9bb5a1b6c7fc6168a4ba7a76f8411c30518f87f1055f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSSHAddress (cyclomatic 32, cognitive 43): parseSSHAddress has cyclomatic complexity 32 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 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":"webui/src/lib/ssh-address.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc057f130e803de4dd71f35422285ddd61724e0fd5b542de5b6560f1d73730af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readShellRoute (cyclomatic 32, cognitive 35): readShellRoute has cyclomatic complexity 32 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":"webui/src/App.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"5831870a2680cfdf62a0828915b9a5ea3592d6ada0746569f37546d0f262d9ef"}},{"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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d02919a97946cceda9543e5bc970bb5ab707aa9abed6344a0f8a36784e9c02b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Sidebar (cyclomatic 32, cognitive 30): Sidebar has cyclomatic complexity 32 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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"369030e4a3fb3964e63ec856164ad9287a435d3189e79a220c3165d807cd4097"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadDisplayUnit (cyclomatic 32, cognitive 29): ThreadDisplayUnit has cyclomatic complexity 32 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fb87654c064a68e4c47ab243029d7b035b5d5a7a4ccaac2688cdb13430b7c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refresh (cyclomatic 31, cognitive 34): refresh has cyclomatic complexity 31 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4edef5db5ee5cdb998f0dea4fc8bbfbc601b162dcd4d76ab7e378322dac653"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityLabel (cyclomatic 31, cognitive 33): activityLabel has cyclomatic complexity 31 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 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"be063b324cfd0a236eb60ea26d0bc21a9a0d4c52759e191631da831fb44478e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 31, cognitive 28): (anonymous) has cyclomatic complexity 31 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 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2966a6d0c90963cfad1fa377ef0560aacecfe7567192f1880ffdb488bb159f5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 31, cognitive 28): (anonymous) has cyclomatic complexity 31 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 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b437f9a04c89511b169273574d2fa35f302cc50263d1f10bcb05cc264511bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runObservation (cyclomatic 31, cognitive 26): runObservation has cyclomatic complexity 31 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abf049bd2e52b57484ac6af563fbf570cb63aec303e7ca21e19bd52199314dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sniffImageMime (cyclomatic 31, cognitive 20): sniffImageMime has cyclomatic complexity 31 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":"webui/src/workers/imageEncode.worker.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"213d957e70d35e84bbd5a60a67bf17911e2079c777851e4e941dc6c5fab4d0dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 36): (anonymous) has cyclomatic complexity 30 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa02da54880e79a586b62b1f387998e655a43c2fd1766c5763b4a54324f51f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describeExecSession (cyclomatic 30, cognitive 30): describeExecSession has cyclomatic complexity 30 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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d882ba9aec37fe426bb0b531159ccb2295093f9c61c0abe9f95c887286a53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkeletonSurface (cyclomatic 30, cognitive 29): SkeletonSurface 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":"webui/browser/skeleton-additions-fixture.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a658ad34f4b647201ec6d1d347881ef64fcbaaa8c0e5b0751a61c17951802f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HostSwitcherView (cyclomatic 30, cognitive 26): HostSwitcherView has cyclomatic complexity 30 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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"21acbf80b606c63f0b65e32bf622a69cbb5d5c3151a07faf704cfd79bb4ac70a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function content (cyclomatic 30, cognitive 24): content has cyclomatic complexity 30 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":"webui/src/components/thread/ContextInspector.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de5e74e6850cd866cddf408b6c141edd339324a987ebd50ea478a20dd3280a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkeletonFixture (cyclomatic 29, cognitive 28): SkeletonFixture has cyclomatic complexity 29 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 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":"webui/browser/skeleton-fixture.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a5beafb815b4028dc1297f994c0c5181be4a40b1f7d65827978068722f7d02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RuntimeSettings (cyclomatic 29, cognitive 28): RuntimeSettings has cyclomatic complexity 29 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 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":"webui/src/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a5c1832945f229fa61a428f2835d94880be370a758032fd95d288311d94dbe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BrowserNotificationSettings (cyclomatic 29, cognitive 24): BrowserNotificationSettings has cyclomatic complexity 29 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":"webui/src/components/settings/notifications/BrowserNotificationSettings.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a68fcc9aba878bda707e5b5e02ad9d93eddb02f9c8cb37cad518f8a54d2fe3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 19): (anonymous) has cyclomatic complexity 29 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 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b8bdee2cd259873d0f894dc9d11012ae92b603cd2e60c303d6e41b72332cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 28, cognitive 35): (anonymous) has cyclomatic complexity 28 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"625272b7731769091a65ea40c65549ffff4edb76da59a93f4c5b6fea0992b475"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AttachmentTile (cyclomatic 28, cognitive 26): AttachmentTile has cyclomatic complexity 28 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":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2b16088c377aea1779f112efbf75c6ba157e4580d8ba51371f87ab3d7b19f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebuiThreadPayload (cyclomatic 28, cognitive 26): parseWebuiThreadPayload has cyclomatic complexity 28 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":"webui/src/lib/api.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0a17dcd98ae295c9dca9d67f18ba1bd9330a672a828a01f4c555278a1f51d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelCatalogRow (cyclomatic 28, cognitive 24): ChannelCatalogRow 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":"webui/src/components/settings/channels/ChannelCatalogRow.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a835467c39cd55321adaec410c617d84e11b46d6a11049f5dbc12a79eddf4667"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function composer (cyclomatic 28, cognitive 23): composer has cyclomatic complexity 28 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"01846b8bfe8b2edd3fca6e226a4dfb5d384f940d04415d6ec079a838567ab6e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchUnits (cyclomatic 27, cognitive 60): matchUnits has cyclomatic complexity 27 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97896d38a162f449bb4c4bd9bbd3bddc10ed302879176d90c9fc9d9112d3582"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function save (cyclomatic 27, cognitive 34): save has cyclomatic complexity 27 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f27154ca29a8a13166039beeba208219be753531247400a22fc27beef5736b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkillDetailSheet (cyclomatic 27, cognitive 26): SkillDetailSheet 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d341b51e9edc2bdf18242d6d25791f352132f24b72eda7543b4b1b7f97f9f4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatCronScheduleSummary (cyclomatic 27, cognitive 26): formatCronScheduleSummary 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ba96666aef28f7dd64ef1832c72d43db7fdd0a278c2ad7ea2f2c5a5d0ff1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThinkingReasoningShell (cyclomatic 27, cognitive 26): ThinkingReasoningShell 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":"webui/src/components/thread/activity/ThinkingReasoningShell.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d13764cc74967be689e8e5c6aadda4c4e6210a2dbbd03016b77bd7592e1bd6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCommand (cyclomatic 26, cognitive 32): applyCommand has cyclomatic complexity 26 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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8fae8a2916587a074563164652c33225c3e1bdd9908bd20f3e721947227f71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpCustomServerPanel (cyclomatic 26, cognitive 25): McpCustomServerPanel 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaf6226db775a041a0d03ce98bce596b046f2a53259414aed684f5c6cddea60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ImageGenerationSettings (cyclomatic 26, cognitive 22): ImageGenerationSettings has cyclomatic complexity 26 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":"webui/src/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3effe01bc5dc3cc02252a2c846dc14aa2d2055a5df3dc94cb3c997c7e182da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ComposerUsagePopover (cyclomatic 26, cognitive 20): ComposerUsagePopover has cyclomatic complexity 26 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90b189a0ff202d36bcd869d00b3d4d0627dcd1ae6d8097bdaa4bb96f34c03ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeMcpMentionPresets (cyclomatic 26, cognitive 19): mergeMcpMentionPresets has cyclomatic complexity 26 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 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9013727ce8b6e5fbad648190d6dffa998f0e77098e936b617619de436fb4d3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function style (cyclomatic 25, cognitive 38): style has cyclomatic complexity 25 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b264238c9473a930c28ad9c894e2dc3af190ae4c0e63859c57eed9bdab1d9a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectedDiffRows (cyclomatic 25, cognitive 33): selectedDiffRows has cyclomatic complexity 25 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 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":"webui/src/components/thread/activity/diff-selection.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"21398eaa0d10b41fa939330235cf263c7b4b83f1f38258cfaa2d891add551064"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 25, cognitive 30): handleMessage has cyclomatic complexity 25 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a15424ef40337af1c3e260726cc2697de3c72d18c1f856f7337ca10859721b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describeTraceLine (cyclomatic 25, cognitive 27): describeTraceLine has cyclomatic complexity 25 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 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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfffbcf14ae76a8abee7c86262649ecf78c7e54af92107e0dfe602af253e49a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKey (cyclomatic 25, cognitive 26): handleKey has cyclomatic complexity 25 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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94fdea6b562cefdd2ec6926684a9fc2c2f325fb9db3d9463a7bd50bdcdd948"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mathSpanAt (cyclomatic 25, cognitive 25): mathSpanAt 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":"tui/src/rendering/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dfc8785148a84e832949f1cc25a08f26c64406cfc1cc3c5ab82547b2f615ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProvidersSettings (cyclomatic 25, cognitive 22): ProvidersSettings has cyclomatic complexity 25 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d49c957c9db5e94c6417557606dbd35bf0f9f067105e861e538f57c03389084"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SubagentTasksProvider (cyclomatic 25, cognitive 22): SubagentTasksProvider has cyclomatic complexity 25 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":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0b0fe273a764751d87df5ceb20d9045f6edbe53827b6b5fb3e3a645accd759"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toModelBadgeInfo (cyclomatic 25, cognitive 21): toModelBadgeInfo has cyclomatic complexity 25 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":"webui/src/components/thread/model-preset.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec874a448fce4988031dc53aa4f7dcef3236d66cc44a0e6bc6511502fbf3c164"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webuiManualChunk (cyclomatic 25, cognitive 13): webuiManualChunk has cyclomatic complexity 25 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":"webui/vite.config.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3fe5670a7b24207520fe5771bdff0834fe097eb6ee79ef14ff803ad93234e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMentionCandidates (cyclomatic 24, cognitive 42): fetchMentionCandidates has cyclomatic complexity 24 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 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":"tui/src/client/api.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6be4faa27e4dad0b2f9ccb97e4599a9230f83b460fabffb5c3410a5f98ca22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 31): (anonymous) has cyclomatic complexity 24 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c482a7d78418ffeca89b444b0a50330a48c97e1c593210060285cec0a0ed68b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitCapabilityMentionSegments (cyclomatic 24, cognitive 27): splitCapabilityMentionSegments has cyclomatic complexity 24 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 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc49376b96a43fc93e870b38c1a93e3874b680f6000063179396f92b6305b42c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 24, cognitive 24): render has cyclomatic complexity 24 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":"tui/src/views/diff-viewer.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c11fcb41bedd04d6efe8dbbb5d2afe4dacfa006cb7a61304f75f239cffc1307"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applySgrParams (cyclomatic 24, cognitive 24): applySgrParams has cyclomatic complexity 24 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":"webui/src/lib/ansi.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc0d3e64dce39ef89aeeac4638cea86397016c01e63a0fe3196dc8e012f703a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Gallery (cyclomatic 24, cognitive 23): Gallery 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":"webui/src/dev/gallery/Gallery.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c14eeea86678cc24bc5ae0063af0249d2b896791c6d3daa17fadf4e48e19d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatList (cyclomatic 24, cognitive 22): ChatList 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81e75557228eae9040508a49609409700b65af53c5fa925cdc737a97ed88367"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isPrivateHostname (cyclomatic 24, cognitive 14): isPrivateHostname has cyclomatic complexity 24 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":"webui/src/components/thread/activity/web-url.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a6d7fe64f65875f90633c6e927388d88d93806961ae0f3535483835ffdcd5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectToolActivity (cyclomatic 23, cognitive 23): projectToolActivity 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf651e294b8b494d1dff8f854ffda9b49a1033700813485fa60ec071ef388b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveWebSearch (cyclomatic 23, cognitive 22): saveWebSearch 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":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8947ef6d60d69a58a572cba05c1f19e95589570700f7286e03eb276e9de59cd4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FilePreviewPanelView (cyclomatic 23, cognitive 21): FilePreviewPanelView has cyclomatic complexity 23 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":"webui/src/components/FilePreviewPanelView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fbb48ac63a59b078542ec15ea5aa76b8b3d2cc644018b7af9ef9962b163327"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 21): (anonymous) has cyclomatic complexity 23 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":"webui/src/components/settings/channels/ChannelInstancesPanelView.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af4687aff5e7811fd7047f1bec52d783b5bc438330214c066c397a5d3de2919"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasValidProjectionMetadata (cyclomatic 23, cognitive 21): hasValidProjectionMetadata has cyclomatic complexity 23 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":"webui/src/lib/api.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1d41c3c0db79935732c314bcca75a48c07f313b419ab11ff5ec73c912add14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 37): (anonymous) has cyclomatic complexity 22 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/lib/thread-page-fragments.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ffaff06cf5d9871a46f80f24404701ab05b4f12a3d64a030618878234f2eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 30): (anonymous) has cyclomatic complexity 22 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"054361cf2b5c61ced18ec5b7c73c843d66f69847a372e74b4bedac36c226080f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendMessage (cyclomatic 22, cognitive 24): sendMessage has cyclomatic complexity 22 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"0867ca60ed606c0ab56a8ea354904977f16644c6fdc6f5fc87c709671e4b2c01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function typography (cyclomatic 22, cognitive 23): typography has cyclomatic complexity 22 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd5399eecb7b20646c21512f63c5f345601c08cf5abf478b7ad375fa12f9d9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderOAuthLoginDialog (cyclomatic 22, cognitive 21): ProviderOAuthLoginDialog 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1597faf4d6bf5d906ad49453d04092d3470cb54a29b82eee246eb32a3fef700"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ConnectionPanel (cyclomatic 22, cognitive 21): ConnectionPanel 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3466790c062722710b673ae5e92f87b80c4e9d976aea07bc5c74b727489d72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ActivityStep (cyclomatic 22, cognitive 21): ActivityStep 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":"webui/src/components/thread/activity/ActivityStep.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec0f53dd43f54b8199c7191d85c100e3096b585a3a8f1731c153b376805bcf2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationRunDialogView (cyclomatic 22, cognitive 20): AutomationRunDialogView 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":"webui/src/components/settings/system/AutomationRunDialogView.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa90663461fbc16f3f92cb18f0f14209471c2c05285caecb1febc09c6b277265"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MarketplaceSkillRow (cyclomatic 22, cognitive 19): MarketplaceSkillRow has cyclomatic complexity 22 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 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"16630ea30155653211f35d9f188efa20317e5ccaab84c6c861a127c8f44ccea8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityDetail (cyclomatic 22, cognitive 13): activityDetail has cyclomatic complexity 22 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a025cc8091555f7d3f7e42fe511b2714c1d13147cd17b110df8d9d7e413b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function answerStreamIndex (cyclomatic 21, cognitive 24): answerStreamIndex has cyclomatic complexity 21 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"54357cb464add2b086b3d7d7b5a987f7f8e6f40299a5aa68c672f0569ca960ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderIcon (cyclomatic 21, cognitive 20): ProviderIcon has cyclomatic complexity 21 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":"webui/src/components/settings/shared/ProviderIcon.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"75506fac1016f75b018526e57eee92823b83475253bdd95bbbae9474cad24e56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findStreamingAssistantIndex (cyclomatic 21, cognitive 20): findStreamingAssistantIndex has cyclomatic complexity 21 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7746490bc090dc5e0ab02eee0f487be46778c4996d3b87ed64825e9f577ba885"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkillsMarketplace (cyclomatic 21, cognitive 19): SkillsMarketplace has cyclomatic complexity 21 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 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e9e0eb514ef139f4093d15c43f7d27a2900fcf658dd98c5f38abd717d1a3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PairingCodePopup (cyclomatic 21, cognitive 18): PairingCodePopup 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":"webui/src/components/pairing/PairingCodePopup.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d900746125fc20ac7d74582044c3fcc9c230ddf85281bc226ae8b1c0ff3edf51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCliMentionApps (cyclomatic 21, cognitive 16): mergeCliMentionApps has cyclomatic complexity 21 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"49877904b99fae0a4e98acdf41b2bdf96b7d20e5817faffe302f9759a8a7af92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coalesceActivityMessages (cyclomatic 20, cognitive 41): coalesceActivityMessages has cyclomatic complexity 20 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":"webui/src/components/thread/activity/activity-message-model.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc016428ae037a9b9b9a5dc50b91554a91dbef9957b37b213e2d7e253504616"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirm (cyclomatic 20, cognitive 37): confirm has cyclomatic complexity 20 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4640bad65502ba602c56a09d300a9050362061db56f2bc1fa905efd896008ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 35): (anonymous) has cyclomatic complexity 20 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cb3c5510e3eaee0863517f35a784c5aef884eb09dbce632fe3b5b68aea4cfd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchSessionUsage (cyclomatic 20, cognitive 27): fetchSessionUsage has cyclomatic complexity 20 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 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":"tui/src/client/api.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8c943880e6ab9b3267e8d3f2d562fe75b90bcd783e1d43db4f426cb9a74246"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupSessions (cyclomatic 20, cognitive 25): groupSessions 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d8f82c3f02b480642799b51919196664124bf5e68c6d2afefd61bf088a26b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function install (cyclomatic 20, cognitive 23): install has cyclomatic complexity 20 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b86a1de8362aed10974439054a4793b052f065d59215e2f50e65abea0ce53d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 20, cognitive 21): poll has cyclomatic complexity 20 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8192ea2312d647e3218777a25ac885132c624b2e4c84d17b8e10cccbe5d1f1a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TokenUsageModelTrend (cyclomatic 20, cognitive 20): TokenUsageModelTrend has cyclomatic complexity 20 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":"webui/src/components/settings/TokenUsageModelTrend.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e065a2e758a81dad490285735b773e81d35276ee77b39362adac58a550d37b96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 20): (anonymous) has cyclomatic complexity 20 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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"16be8a3742114c93312e13cdc8ef51c3acf7fb377a4c47fe8bfa0419bacdf5fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 18): (anonymous) has cyclomatic complexity 20 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":"tui/src/client/api.ts"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a50c69a355e0dd19bfd91b025ae44aed0bcfd31c7f5e7e9eac540ffeccc8ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelSetupSurface (cyclomatic 20, cognitive 18): ChannelSetupSurface has cyclomatic complexity 20 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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"48903d9a64fd9f316f963d023a0c81a17bc289a990421fb0268154b187bf52e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GoalIsland (cyclomatic 20, cognitive 18): GoalIsland has cyclomatic complexity 20 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":"webui/src/components/thread/GoalIsland.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dfe3918164712a70b409c155d3bc2bfda8e18245770de4e4f2adad0d796374"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LinearMemberAccessView (cyclomatic 20, cognitive 17): LinearMemberAccessView has cyclomatic complexity 20 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":"nanobot/channels/linear/webui/LinearMemberAccessView.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4f8be4adf5a21fda2b324d5cdcaacda2a584e02251c2bfab48ba1ed0ad29ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function QQConnectFlowView (cyclomatic 20, cognitive 17): QQConnectFlowView has cyclomatic complexity 20 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":"nanobot/channels/qq/webui/QQConnectFlowView.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"df36cf7fc9bf5d74ee710c9354bcccd2653ff5192412cc3ca50c41c0fab0a58e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inlineLinkPreviewFromListItem (cyclomatic 20, cognitive 15): inlineLinkPreviewFromListItem has cyclomatic complexity 20 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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdfae9ec64aa1798b8ec80b9bb0f0a1de0693f812a44cf69ea978c3e30181e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 33): (anonymous) has cyclomatic complexity 19 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 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":"webui/src/dev/gallery/inventory-plugin.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac57931bfd093ad1a60f3d9ee985672dc1f26bf3b24377dfdacedcf1e92abc4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 28): (anonymous) has cyclomatic complexity 19 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"24408e996abe0e8abd9b0af5b93cd823cefbf0794e52e89245de9591984e47df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveDiagramSvg (cyclomatic 19, cognitive 28): resolveDiagramSvg has cyclomatic complexity 19 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":"tui/src/rendering/mermaid/svg.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"73457bcb3a00188cca83e0b53d38b8b35cc185e67b5de780ffe24158b889b729"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toolLabel (cyclomatic 19, cognitive 27): toolLabel has cyclomatic complexity 19 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 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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"defce466e31ba1fe28dd3e04aefe3c39f818ba128347a5522f4cb384c9ad7ba4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function advance (cyclomatic 19, cognitive 25): advance has cyclomatic complexity 19 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":"webui/src/components/thread/graph-presentation.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d550bb5cd19d621db0bcbd9c9e171c200d81dd4204e6779932e863f3186200d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleComposerContentChange (cyclomatic 19, cognitive 24): handleComposerContentChange 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":"tui/src/app/app.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"90382f27bcbb7d6b65b893f1a517cb5580f9299ac10ba5acc4848b0077fffde0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 21): (anonymous) has cyclomatic complexity 19 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bca8e569d5b80c6253b6627eddee7153dcbd27c776f3e0874dd6f6b968ac4bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ActivityTraceRow (cyclomatic 19, cognitive 20): ActivityTraceRow has cyclomatic complexity 19 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94aaeea582daa1d4725ed595357a94228e48067bab571c16a52b0517de7f3eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 18): (anonymous) 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":"webui/browser/skeleton-additions.spec.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"926e09057dfccfe3a4c013963eb63a2aa1e664808081d0cf312c0d2a0fa48157"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CalendarEntryRow (cyclomatic 19, cognitive 18): CalendarEntryRow 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":"webui/src/components/settings/system/AutomationCalendar.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b794508156c259c3cb0ec911264cea5547ed30af207876d4fbd64d0a36b3efe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ContextInspector (cyclomatic 19, cognitive 17): ContextInspector 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":"webui/src/components/thread/ContextInspector.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3cde535ec063c1b984a0b2b451c06dbd2ce44c67a7e6f37442f78fe7091dd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 16): (anonymous) 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd942dcde55497002b34cdab320d2470985a09e28d157096a57dffc47b4f9a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LinearAvatar (cyclomatic 19, cognitive 15): LinearAvatar has cyclomatic complexity 19 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":"nanobot/channels/linear/webui/LinearAvatar.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fa16d0ee86a02e2d206eb626b0e3bf2f1c2f7e42e642da8cbcd34468a0c172"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toolDetail (cyclomatic 19, cognitive 15): toolDetail has cyclomatic complexity 19 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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c503f1338cf871dc3709df053dc77bc666edbe8436f9defeba59f0a9208a0d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readStartupLayout (cyclomatic 19, cognitive 14): readStartupLayout 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":"webui/src/components/StartupSkeleton.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b533ee1b200b237cc6aca455497c59a44ed4474fc52c2c037f5718888fafb6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 29): (anonymous) 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bb9d40d784cadde695de542502711b7d96e1af99e86c3a2b853469f87f901c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityTraceEntries (cyclomatic 18, cognitive 28): activityTraceEntries has cyclomatic complexity 18 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c410d6ade2c6ecd5394733c0f28461c54fcd33b6273885d0739edc45b75d751"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function messageEvents (cyclomatic 18, cognitive 25): messageEvents has cyclomatic complexity 18 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":"webui/src/tests/thread-test-payload.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"226a69bac20894e0a04f3bae4afba928aa9d72e6281c34c48074ea7f23124b06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveWsUrl (cyclomatic 18, cognitive 24): deriveWsUrl has cyclomatic complexity 18 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":"webui/src/lib/bootstrap.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce8dfee0878bc73666bd66d8bb3d7b4b569a0a3e68d9865aa01aac57b15aec0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canApplyCanonical (cyclomatic 18, cognitive 22): canApplyCanonical has cyclomatic complexity 18 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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df59871257eebdae7fed64b065e49ad42a48d024568b4efa0d520bd546ac4a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hintsFor (cyclomatic 18, cognitive 17): hintsFor 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":"tui/src/views/footer-hints.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2b33a4b532ec5b52b5b0f3cd181d8abdbcfd4d2a6169e1223dcfcadf47a513"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeQueuedPrompt (cyclomatic 18, cognitive 17): normalizeQueuedPrompt 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":"webui/src/components/thread/useQueuedPrompt.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b2211ca14a7bf3171372fca5580a4566bbc2a66f25d3300fa7f596b2886ac6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileModelRequest (cyclomatic 18, cognitive 17): reconcileModelRequest 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":"webui/src/lib/model-request.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b784239541901bce91cacedde483c0fc776996636b63d6f721ac67415ce57304"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visit (cyclomatic 18, cognitive 16): visit 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2857548bbb4a7bfe65be149ec27558b63b9b0059abd69a459728902f09dd039"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchPromptIndex (cyclomatic 18, cognitive 15): fetchPromptIndex has cyclomatic complexity 18 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":"webui/src/lib/api.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3c99d15dc0b63c98d4ec11686df3763acb24dea3f118e03e6619db1eb12b86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 14): (anonymous) has cyclomatic complexity 18 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":"webui/src/components/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5252263e41eaddb84b00c13514a649ca14c0c794834cea617dbc1ade8f7517"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CodeBlock (cyclomatic 18, cognitive 12): CodeBlock has cyclomatic complexity 18 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda1b36419e1c356a49cd8e1f40798950b33b56e59b5345c40facd46c07a9b84"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uploadAttachments (cyclomatic 17, cognitive 27): uploadAttachments has cyclomatic complexity 17 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 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":"packages/client-events/attachments.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6c8587f3e5a3a322e91e2060daf33efd7f64daf142638a47edc667256cee30"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function request (cyclomatic 17, cognitive 27): request has cyclomatic complexity 17 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 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":"webui/src/lib/api.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39143c7a0ef2b1ecfa067f7505a75f2739ded52447dc9251fca421db8722207"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recentComposerRoundUsage (cyclomatic 17, cognitive 25): recentComposerRoundUsage has cyclomatic complexity 17 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8863fa9c2641dfc3b130eedd12e0a1bf739ee010c258c210b417ef4b2275d5e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runProviderOAuth (cyclomatic 17, cognitive 22): runProviderOAuth 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cd0686b7db1d0bd44dd8579a87ee4e9f34c804cd1faa61e0ff9b7f7a59997d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageMedia (cyclomatic 17, cognitive 21): MessageMedia 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2654248ee68ab179ed918406de1cf9f6d48d1ef0b9789134998bed7053ad2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TokenUsageCard (cyclomatic 17, cognitive 19): TokenUsageCard 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":"webui/src/components/settings/TokenUsageCard.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e3ad830d0a3bd2e0c7c72a176b3bfcb5aa96853912a4ec668bc7a2daa478af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visit (cyclomatic 17, cognitive 17): visit 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f5b159605e92a58fe29bd4d56f6b1bdb6d5a7ef5a5df8df76af81a3331fd93"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SettingsSidebar (cyclomatic 17, cognitive 16): SettingsSidebar has cyclomatic complexity 17 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd568e6f15a856aa036b456f68039665dffb1766c407f908761305933045c99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RecoveryNotice (cyclomatic 17, cognitive 16): RecoveryNotice has cyclomatic complexity 17 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":"webui/src/components/thread/RecoveryNotice.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"72427cf506c51757083b0196e6d3aabea1aebbecbae7ddb84ad32e337adb6a97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paint (cyclomatic 17, cognitive 15): paint 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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eda769f99b09dd856deea5c9b88583a77b83f701d4657aa156ecafa517ba801"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ImageThumbnail (cyclomatic 17, cognitive 15): ImageThumbnail 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":"webui/src/components/ImageGallery.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cc814bf7a42b839c93d0c8637cc648bfcbbec5e5a57043cb5db91d1b422541"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelAPIControl (cyclomatic 17, cognitive 15): ModelAPIControl 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":"webui/src/components/settings/models/ModelAPIControl.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"213d421b27db839cd70821fb81c6c0685b77ea5b40eb7ee328a260074dadfc6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ContextGraphScene (cyclomatic 17, cognitive 15): ContextGraphScene 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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b9078c103cf2300112c7810ff16f895a59e9d6b9dc6d7ebeec101ebfd4f2db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseHistoryEvents (cyclomatic 17, cognitive 14): parseHistoryEvents 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":"tui/src/client/api.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"35362a913bae088efe2839bd4e4d067096a7f137e2a5f8c1a46c12b4bd0b26b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 10): (anonymous) has cyclomatic complexity 17 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"07816db10604ffa6472561ec5aea0aa10fca14a23da7572dc10f6db8dda5999d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeSubagentTasks (cyclomatic 16, cognitive 29): mergeSubagentTasks has cyclomatic complexity 16 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":"webui/src/lib/subagent-tasks.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e464075e959ddea8a01727e82b3d4878bcb16040418e0412f2971856441443"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchSubagentTasks (cyclomatic 16, cognitive 19): fetchSubagentTasks has cyclomatic complexity 16 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":"webui/src/lib/api.ts"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c23cea6748288e26a763df81ce8413af0f6b86c38bd6d36f67c58a106780ce9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onmessage (cyclomatic 16, cognitive 18): onmessage has cyclomatic complexity 16 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":"webui/src/components/markdown-diagrams/runtime.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2845e2046dbb0c1fb4f06424b297703cef1148001171e5368827d683583b46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMathAwareMarkdownBlocks (cyclomatic 16, cognitive 18): parseMathAwareMarkdownBlocks has cyclomatic complexity 16 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":"webui/src/lib/markdown-streaming-blocks.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a003bd690b19efc373cc7fe50f9148094240192423128f7c95d00f1dbfa96c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function composerCompositionSegments (cyclomatic 16, cognitive 17): composerCompositionSegments has cyclomatic complexity 16 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":"webui/src/lib/composer-mention-text.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"264b90b183742458249646aaaea9e6d257d6989773d0d190120d4ce7b99905c6"}},{"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":"webui/src/App.tsx"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8ca12f182a2eb1e8248a1c5f2c31a1e7074b7acf00c4627dff0b2f4ba3bc48"}},{"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":"webui/src/App.tsx"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c5e79f4efc11503a2cd54db3d0dc2546bce717dd31586391a467f92d4b8669"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isFileEdit (cyclomatic 16, cognitive 15): isFileEdit 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":"tui/src/client/validation.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1780b5a70de3b25b1e2e093946525d5b1634a86ad203a4004a2ccea86ee4d97a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MermaidBlock (cyclomatic 16, cognitive 15): MermaidBlock 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":"webui/src/components/markdown-diagrams/MermaidBlock.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d3cad6e0a9e81c0b7673b6f07a65945ef69c8a783c7dc71cdd4e564dfd6122"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SSHHostPickerView (cyclomatic 16, cognitive 15): SSHHostPickerView 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":"webui/src/components/remote/SSHHostPickerView.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4777daa691d464f9599be4f2b2a0acf52535114a182c137073a741faa288d580"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelsSettings (cyclomatic 16, cognitive 15): ChannelsSettings 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":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e1c8b643b9c083234fb3a1b7dd35058aecbca1de4ec76b8cff4882d1dc676d"}},{"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":"webui/src/components/ui/image-viewport.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cc72fd17e31662015f47af51807d05f5b6137d7d2e3b71b9d335f5ff3c12bc"}},{"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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9354575474f1d69a2ad7538f9fd2e6660f16f5dc942c3d96dfd0b2795f67e71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CliAppMentionToken (cyclomatic 16, cognitive 14): CliAppMentionToken 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c1322c8cac575516fd7c5954b8e4f1fd65b9743255a8050db3e6ece711bc36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpPresetMentionToken (cyclomatic 16, cognitive 14): McpPresetMentionToken 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":"webui/src/components/CliAppMentionText.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd852db717190a01568383181ab65068bf5e153692d23054f21bb637b2ed006"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderPicker (cyclomatic 16, cognitive 14): ProviderPicker 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c53743437a0f1b2835b08f8c2ac290c0420ac219c154cf96cd2dad23597faf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadMessages (cyclomatic 16, cognitive 14): ThreadMessages 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac7756dcbd7b9779ca30be5be39d58da9cb87d909c3ca47f3bff3f875768529"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function agentDraftFromPayload (cyclomatic 16, cognitive 13): agentDraftFromPayload has cyclomatic complexity 16 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1016bccfab27364960c9f59439d9228255d1ee0a28d7bf2a9b9d347ea4a87d2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 13): (anonymous) has cyclomatic complexity 16 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2775}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeda06457b1927ebeca2eba9d9df6fe6824f4297cbe7c7b86d682da7483222a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execSessionCommands (cyclomatic 15, cognitive 36): execSessionCommands has cyclomatic complexity 15 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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"423f98a1d94bc823169acb0e95d5140671617f44e03293f3937d90ced8da3bc7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLatexAsUnicode (cyclomatic 15, cognitive 24): renderLatexAsUnicode has cyclomatic complexity 15 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":"tui/src/rendering/latex.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bc1df11244eac08d460287d44c7e6fb621e4a8e133adf30adc291051124171"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function currentActivityClusterIndices (cyclomatic 15, cognitive 24): currentActivityClusterIndices has cyclomatic complexity 15 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb0bb530fa335580e63f8dd282304726ae6e5b2ad161e0353096b177d1345db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function start (cyclomatic 15, cognitive 21): start has cyclomatic complexity 15 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":"tui/src/rendering/mermaid/jobs.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc199670ec5fd2a490c0424b08326f76d74227abb54b83a423a22b3b53f8674b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 19): (anonymous) 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0948c91d8a4c56f8930422763faaba56d3f858b118db5c2696009a41a2757e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 19): (anonymous) 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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"414ead70d18134b4b3df13d7b44ddc89117ad38c0c362facac70beea1fa41694"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 19): (anonymous) 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":"webui/src/tests/thread-shell.test.tsx"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b1bdfd1be021eb6a99442dafdff5e2ad9e516efce65be0d7380b1cebabfdab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b97928f19cf36aeec113a751d347e0afcee217d513fef8957e7ef14d4c4291a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityIcon (cyclomatic 15, cognitive 17): activityIcon has cyclomatic complexity 15 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":"webui/src/components/thread/activity/GenericToolRun.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312eabf6449a49587c090ae73b0d6a6ae147d0d71948dde1015e2314fc80c88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 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":"webui/src/components/thread/useSandboxNotice.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"748220663649725a7db016f570e7b3aeb7225239633cb933ace50cb834f05b8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function attachWorkbenchPane (cyclomatic 15, cognitive 16): attachWorkbenchPane 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":"webui/src/components/workbench/workbench-model.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd729c25820211f5f6651caa367c340bdc014eb01eea0a5d325ee410fadffe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recover (cyclomatic 15, cognitive 16): recover 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":"webui/src/hooks/useReconnectRuns.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62d6b69e1c0229f5e2af11fe109cafb00344bcc9fb87363cdabf55acd509ed5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) 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":"webui/src/tests/channel-toggles.test.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0ab705bf2e9c8c601f20c922d9b97ac152c27a393516df93a47fd29f413609"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function closeReasoningStream (cyclomatic 15, cognitive 15): closeReasoningStream 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"94759c0144b402a32827b35a8ce794ef5f0aad697cb88ead49c8cec2dd4559d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LinearSecretField (cyclomatic 15, cognitive 14): LinearSecretField 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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7868322c4a74a710a001e9cef0cbdc23453905d164559370770009de6a1ae5e"}},{"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":"webui/src/components/settings/shared/CatalogSkeleton.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c5364e1891a66b1feb092aae921bcec462f9309b290403f27825ac7cf8fb6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpRunRow (cyclomatic 15, cognitive 14): McpRunRow 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"262df06849d5a19796f1bd09e65512901c520bad6b2626b875c64c1678ae4e89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onScroll (cyclomatic 15, cognitive 14): onScroll 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ec1ec438a52273523954b3a449b27af84a0e1f6b94d240710833e443e5ffa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleTouchMove (cyclomatic 15, cognitive 14): handleTouchMove 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c56b8773856bc44d08715b305334449741cf275b682ae4e7c66dad7125eb643"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SidebarPanelContent (cyclomatic 15, cognitive 14): SidebarPanelContent 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":"webui/src/components/ui/sidebar-panel.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ea8c34188cf56bf95270cbd0f03240950bb7e8523c581fcdcd48e785e18201"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PanelComposition (cyclomatic 15, cognitive 14): PanelComposition 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":"webui/src/dev/gallery/channels-linear.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"59855eaeedf1ef7caaa43a5d304423cabae16ecd86ff3988564d5c71af9dd249"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferProviderFromModelName (cyclomatic 15, cognitive 14): inferProviderFromModelName 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":"webui/src/lib/provider-brand.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"746590e01014a3c39f2ef59752f02dc942051770bef564c3e575a9d7f34ca82e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WeixinPanelView (cyclomatic 15, cognitive 13): WeixinPanelView 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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bfce8a4c53846ef7dd23a3bef52a26b43cd9e679cfcd8f40b328e1055e08f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGatewayConnection (cyclomatic 15, cognitive 13): fetchGatewayConnection 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":"tui/src/client/connection.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f837cb8a8f66b79d51dcfcf4551a048c8d38ca90ff0bc92cc090957b43c48770"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PresetPill (cyclomatic 15, cognitive 13): PresetPill 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"6627cacf65ff75e30515a5169d19a94ad05f8e3d351ce5e473b4fb95b8fb8562"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PresetProviderIcon (cyclomatic 15, cognitive 13): PresetProviderIcon 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d869417ac44302fa2dbe0ba72ab2f728ba94f4dbe87e954af628aced20847a7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadHeader (cyclomatic 15, cognitive 13): ThreadHeader 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":"webui/src/components/thread/ThreadHeader.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d87997f580390bba05c1658d880f03310f3c1b05ff80454294b9e0670f84b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeTraceMessages (cyclomatic 15, cognitive 13): mergeTraceMessages 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":"webui/src/components/thread/activity/activity-message-model.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3523a9dec4fb9243805e77bb3d0de769f0431ae0bfa799bb23fd0997f94ab3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pastedFilePath (cyclomatic 15, cognitive 12): pastedFilePath 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":"packages/client-events/attachments.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19f2531b269f20beac6b7b49975c760ff3e0c7d48f5dddb8b401054be9740a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelValidationProgress (cyclomatic 15, cognitive 12): ChannelValidationProgress 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":"webui/src/components/settings/channels/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f323336fa9eba2686e4daba07bd5d5a1e4039911db0e6bcf082efe86fd55b98f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 12): (anonymous) 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9af109fe0c89da8d9526e77da5a7183f62b12b5dda824b1ec9325fb7fe81e95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionInfoPopoverView (cyclomatic 15, cognitive 12): SessionInfoPopoverView 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":"webui/src/components/thread/SessionInfoPopoverView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a7786de2293c6ae801dde799f7af11e661776efd2a31866d90319655ef7dd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TaskDock (cyclomatic 15, cognitive 12): TaskDock 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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4f4790d61b9fc4abb92c81b139a83c0fbf335d1be787ebb3c2d048114828ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 12): (anonymous) 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6250b17e7032e2087f007cace72d35a20cd06e86607436a6c2444cb0a8eaf8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeFileEdit (cyclomatic 15, cognitive 12): normalizeFileEdit 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6950a0b0325a87d5c95a8cd5c35a838e1b234dbd56e23836df8e4cf037c5d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function desktopConnectionSource (cyclomatic 15, cognitive 11): desktopConnectionSource 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":"tui/src/platform/desktop.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1bf8249847056978e6f58ecdb228f6be8f3669738dc89f8c1dc9c042d73d2e"}},{"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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce27539250f8ef7b24153b01bb9235992f23cbea2312c38af6b62048a81a758c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PaneWorkbench (cyclomatic 15, cognitive 11): PaneWorkbench 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a890849f1ee9dbed57cb3fb36146fda5ec6129c3ffd7b129b747b89f4920f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isLocalAttachment (cyclomatic 15, cognitive 10): isLocalAttachment has cyclomatic complexity 15 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":"packages/client-events/attachments.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9541f4a446869cf45966fac5c7f47116e9791859f8f01c62209b8354254724"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webSearchDraftState (cyclomatic 15, cognitive 10): webSearchDraftState has cyclomatic complexity 15 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":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd619be7d9fb8a0b982a6a30d3618304a3c3ecc9493b56a5dedde6f7d7349475"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function outlineDiagramText (cyclomatic 14, cognitive 37): outlineDiagramText has cyclomatic complexity 14 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"tui/src/rendering/mermaid/text.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e05796dabc9a3abc5eb33887246d991c49b2a2b8467b90df05fa3151b15b83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paintGraph (cyclomatic 14, cognitive 24): paintGraph has cyclomatic complexity 14 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":"webui/src/components/thread/graph-canvas.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"906440f6916173ba0a358f9ab88cfec5d7dfdda6f4a0dfa0d0b19e27410e1849"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextNode (cyclomatic 14, cognitive 24): nextNode has cyclomatic complexity 14 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":"webui/src/tests/browser-focus.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d28fcc7c0466ed49ceb2e3a254372c39d9e93d3f0a24598b2a6c0ba355d909"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectOrderedTurn (cyclomatic 14, cognitive 23): projectOrderedTurn has cyclomatic complexity 14 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":"webui/src/lib/activity-timeline.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6071cfd5e7c0c9fd5fd764b37afe13a9f615339d9c9000db4cb3759ad4b8e43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fencedCodeEnd (cyclomatic 14, cognitive 21): fencedCodeEnd 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":"tui/src/rendering/latex.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"5848e72fd6f1b847953c50cb33769704256f631117fcb1944eb9c72b96642b70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collect (cyclomatic 14, cognitive 19): collect 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":"tui/src/rendering/mermaid/text.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37ddbec2938c7258f1713e3488e9ac081fede8eca09d78aafbd866212842fe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 19): (anonymous) 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":"webui/browser/attachment-layout.spec.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a9daa4a2feafef07c533206a1f3d9b0af6f8fc0bb3fc1c422f21a91fee5a25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onmessage (cyclomatic 14, cognitive 19): onmessage 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":"webui/src/components/markdown-diagrams/pele.worker.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c539233896f620934b3a60b1deb64cb49138804e513a11b27e61e8c0f4806729"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function automationEditDraftError (cyclomatic 14, cognitive 16): automationEditDraftError has cyclomatic complexity 14 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe7446253a4cade44c931120873d59a97aa3ebf1c2e8c7143439ca3a6dc2d98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function styleFromState (cyclomatic 14, cognitive 16): styleFromState has cyclomatic complexity 14 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":"webui/src/lib/ansi.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db4eceac3f5c8f5a687346288d0484cac93ba24d138010b74927e858806e97b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function notifyClient (cyclomatic 14, cognitive 14): notifyClient 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":"webui/public/sw.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81649fc389080364d98de6404c2ac769b5634d000ab40c2a0f826a5cb337b56"}},{"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":"webui/src/components/remote/SSHHostPicker.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e8e4ee13f4dc8bcbc26cc623f9f76bde0d02d9a1989b0c4c9f23a744ce2571"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSessionObservation (cyclomatic 14, cognitive 14): parseSessionObservation 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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"920e1dc1683251041e9daafcefc8e866784c49ec4ff5b8e647354348b6b89882"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finishDrag (cyclomatic 14, cognitive 14): finishDrag 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":"webui/src/components/ui/dialog.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"018da7e6d783bb97be3c8745b0cce4b1be2c3af20077f0bcb9e9a02d922c9925"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupSessionsByProject (cyclomatic 14, cognitive 14): groupSessionsByProject 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c19559e32998178252353883d6fbe638fe707e61c9dab4d4e21c6fcdf7bdeba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeNotification (cyclomatic 14, cognitive 13): decodeNotification 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":"packages/client-events/notifications.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de08248275cc04695c4e272c63c06e1a61d7bdf7ce7556ecd58b7b63e4d8b2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 14, cognitive 13): sync 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":"tui/src/rendering/mermaid/block.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35e955684c2d078731e97b6e9a18e0b5230c036bfc300f094508069ed92e782"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkbenchTabHeader (cyclomatic 14, cognitive 13): WorkbenchTabHeader 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b1041764abcb343bcdd583fff1df8cf2849abb91e8d41f28b4f05b7ed25e58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SidebarActionButton (cyclomatic 14, cognitive 13): SidebarActionButton 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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f67f221469595b906d102848ef59c1233c6632adc4d5b027b9f3f8c014223b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OverviewSettings (cyclomatic 14, cognitive 13): OverviewSettings 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb90c99bf4b3790dc0e2466dcf2a0cb01c3ec3a0f9945fafad5a0979b88e139"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationEditDialog (cyclomatic 14, cognitive 13): AutomationEditDialog 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"263b1b8dde8f5e743cb0793eb920b54403e52811568c1e1353cac499dac5551d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ShellRuntimeControl (cyclomatic 14, cognitive 13): ShellRuntimeControl 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":"webui/src/components/settings/system/ShellRuntimeControl.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37af8fbdf614718b26c4cb31ca44854ef40a92f22e7ec20eb3885b927574940"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CliRunRow (cyclomatic 14, cognitive 13): CliRunRow 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ad184a4a053bfdde77c82ce5f89b2cc5401740ac1b49c1ab81ed9334527b06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGenericToolTrace (cyclomatic 14, cognitive 13): parseGenericToolTrace 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d257bb8cc64f46efa1ea2359aa37c7d890e58e3cb364c162532124609ab2c00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describeMcpActivity (cyclomatic 14, cognitive 13): describeMcpActivity 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":"webui/src/components/thread/activity/mcp-activity-model.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84c6e6bf5f6b4256b91d3348f38739828132702018f7b1c96a5e4b9e3086315"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function useComboboxNavigation (cyclomatic 14, cognitive 13): useComboboxNavigation 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":"webui/src/components/ui/combobox.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6aaffcd96c9f0ca1bbf84ec59cc7cd37127f0c9284bd85db22a4b54d1c152c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerInput (cyclomatic 14, cognitive 13): registerInput 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5760ace225984b080c4af7dbe6f8dcf5d50db6b08dfd769290713c3a7a3163c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) 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":"webui/src/lib/model-request.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3f1d6091dc5d1bddc7ed1d16d89c7180de7b2535d1dbf675708a1b32c1b98e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reset (cyclomatic 14, cognitive 11): reset 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":"nanobot/channels/linear/webui/LinearResetConnection.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2126930d9f2a9b915975e97974c92e90b9190c2170282e47406f85efb71b1fd4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleDirectionalInput (cyclomatic 14, cognitive 10): handleDirectionalInput has cyclomatic complexity 14 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59c539adef086b4cf749a10013449f777bf70b6e2793e02111c353d5a95e79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLocale (cyclomatic 14, cognitive 10): normalizeLocale has cyclomatic complexity 14 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":"webui/src/i18n/config.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"810e23b06c9f5e9c37b3020b73494276e66dc767362e8a0fcb006fdcd31bc560"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function limitGroups (cyclomatic 13, cognitive 20): limitGroups has cyclomatic complexity 13 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba375fab2b93df24991c00c11587f653b44d0842c4bdda20a28260f034d9967a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parse (cyclomatic 13, cognitive 19): parse has cyclomatic complexity 13 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":"tui/src/rendering/latex.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"01575efb7543fa16ecc8ae16a9a666abeae32da6386724c179d985d32e8f417c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paneInDirection (cyclomatic 13, cognitive 19): paneInDirection has cyclomatic complexity 13 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b148ec91a3185f674c7aa9dabc0916d894c559514d5fea5dc2c0a0937fc2f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareChat (cyclomatic 13, cognitive 17): prepareChat 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":"tui/src/app/app.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc0a99fd06d6e4a6a52bfb413855041fac3c909dd7290da11efe3ec8d231887"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderPickerIcon (cyclomatic 13, cognitive 17): ProviderPickerIcon 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddbc9e564160816d3f73ab616991fd49f36b36059dbea73908a9ac0b8910a0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 17): (anonymous) 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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcfcb0a6bdc69c93b2b5bfa0709064c247925ecee91795d209ea85917436a2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function open (cyclomatic 13, cognitive 16): open 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec853935e264f236fd24fc6d65484fa91bbf8bba2485c15f55bb60b607f2420"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readPackageNotice (cyclomatic 13, cognitive 15): readPackageNotice 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":"tui/scripts/release-notices.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b30206dc269737a57ff4918f8fa0493e96042c78df46b503c943f1297c51b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paused (cyclomatic 13, cognitive 15): paused 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":"tui/src/app/event-queue.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e141c4e7911783d43b9bc74c6de22d21d0c8df4159f58487b7a708d8bf45a7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) 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":"tui/src/client/connection.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f759f56047c1783b8f5fc0b78d3587322de7dd9f3ab881967d006a9cfb799ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4792c3a77e258741080703e0313dbae4d1cc798cabfdeec09c26598ec41203"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripCoveredFileEditToolHints (cyclomatic 13, cognitive 15): stripCoveredFileEditToolHints 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf77348de8f415e2fa8e4a698898aaec0bea3384ac61430377f9889c60aa4736"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function geometry (cyclomatic 13, cognitive 14): geometry 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":"webui/src/components/markdown-diagrams/svg-image.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9292d763f3f67dbc98e85ee837078c03bc24832ca245dd084b866849c18dbe0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function completePath (cyclomatic 13, cognitive 14): completePath 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdfd2f20f49e9feadce364f21ca51a6cf67208128cc15d7cee882a76afb80fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendGatewayCommand (cyclomatic 13, cognitive 13): sendGatewayCommand 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":"tui/src/app/app.ts"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"893e004e5e2f27680e056e644d252103f2384c668ef3f449b8bf99cd7ff04ea9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markdownDestinationEnd (cyclomatic 13, cognitive 13): markdownDestinationEnd 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":"tui/src/rendering/latex.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd81acd23090788f529aa5fa8afba162349d705b1ae1af4b967d84b87077f45c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 13, cognitive 13): load 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":"tui/src/rendering/mermaid/viewer.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97fd02f9b397ca61f827225be5b78d67bbbf5b1c4a9e86fd425ba0d0d2bb474"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatToolCallTrace (cyclomatic 13, cognitive 13): formatToolCallTrace 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":"webui/src/lib/tool-traces.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"db18dd4aa1eacbdb920dd61c6436e9ff636c317bfc108e96986f2a6df1c670e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateMeta (cyclomatic 13, cognitive 12): updateMeta 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":"tui/src/app/app.ts"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6f99b4115d961aef559fe0a46d93586768a25c928456deb7bc206d0eec9125"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchThreadPage (cyclomatic 13, cognitive 12): fetchThreadPage 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":"tui/src/client/api.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20ec5d12859f09a1c54ae14168433b61dc7c4961d991cc43289ca6113f7439b"}},{"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":"webui/src/components/ChatList.tsx"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"1686c686ab7264798c7563ee855d347dd9a047f0dc3778cbd2ddabc194745784"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MobileSettingsNavigation (cyclomatic 13, cognitive 12): MobileSettingsNavigation 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":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee670cdc1db4e26c5a2fa9e4f8d4f024e9d5a441b407574023fc290261ee00d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TranscriptionSettings (cyclomatic 13, cognitive 12): TranscriptionSettings 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":"webui/src/components/settings/capabilities/TranscriptionSettings.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7115c72d47750ab435f618328e9fab382a4fad3eb40ae19060183ba68543780"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelLogo (cyclomatic 13, cognitive 12): ChannelLogo 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":"webui/src/components/settings/channels/ChannelIdentity.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d750b6bff7f867f80a3d9b294dddb3ac3a7985a9b0edacc19ea87d757e0f8ded"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderControl (cyclomatic 13, cognitive 12): renderControl 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":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7ffc750a854be47f3c132f8df79a60ee8d65abd558fb4465821fa154a28393"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadHistoryStatus (cyclomatic 13, cognitive 12): ThreadHistoryStatus 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":"webui/src/components/thread/ThreadHistoryStatus.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d14b4f0e12e448d966e0852237bd6b06fe26a7910f336146511645bc84404a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WeixinPanelPreview (cyclomatic 13, cognitive 12): WeixinPanelPreview 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":"webui/src/dev/gallery/channels-weixin.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f286e223fb1f9f7d90c3f75f5c0a0477d26a07d00460fa2170144781bfd40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelFormPreview (cyclomatic 13, cognitive 12): ChannelFormPreview 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":"webui/src/dev/gallery/channels.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d80284bab33c7076d3ca408deb2e20e3b4b5088c329d64192bf4bfb55b418a"}},{"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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"822cbb99abd7b5d6c34f55a27727c52c2d18f9f5966d9361705bf531f651dae7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchWebuiThread (cyclomatic 13, cognitive 12): fetchWebuiThread 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":"webui/src/lib/api.ts"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d168f1701f95a310435cc354322805f5cec67ac305499d43d0d1616a57ae9df3"}},{"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":"webui/src/lib/reload-cache.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea70f596725a0367b2793209b28a189251d30fe45ee620d3a10cc4f5f7fc15a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveDesktopConnection (cyclomatic 13, cognitive 11): resolveDesktopConnection 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":"tui/src/platform/desktop.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d053e1d3381598ae0912034be8947dffcaeb56131b73cba940f933ed11f25c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function leave (cyclomatic 13, cognitive 11): leave 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":"tui/src/rendering/mermaid/svg.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb0bac49858292d1d13e9dda887fff9b345a9816bb672eb9cb413ab7f74031e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileEditRow (cyclomatic 13, cognitive 11): FileEditRow 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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d512f93fc169df1669e670947481bc911d470237fad905914300d7f673c1e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePairReturn (cyclomatic 13, cognitive 11): parsePairReturn 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":"webui/src/lib/remote-pair-return.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"537ddd6267cf2cd9225e75210c7684eee3fa517254225c5993fefbaabee7ddbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scrubSubagentAnnounceBody (cyclomatic 13, cognitive 11): scrubSubagentAnnounceBody 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":"webui/src/lib/subagent-channel-display.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ad3821926e75b6771055b74ae12985d229be28f3f385b83a2504c640ce6ecb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleNanobotFeatureAction (cyclomatic 13, cognitive 10): handleNanobotFeatureAction 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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8063050ecb04516711d1a125b86959b9a090f298495e71819ffb4b552ace9c02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onDayKeyDown (cyclomatic 13, cognitive 9): onDayKeyDown 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":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca93064080c75b1a2930a77065c976349c4489c998b6194d22dd232e4e498ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prependHistory (cyclomatic 12, cognitive 21): prependHistory has cyclomatic complexity 12 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"633c85e1081bc617b368ae4afa999b66416db9ec4ac28787e7cee0cc12bebdb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 12, cognitive 20): update has cyclomatic complexity 12 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":"webui/src/components/thread/graph-presentation.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d177a1248408269552dc02f37281670e9640ebda9371161f1b28fb27cc7e1e26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function targets (cyclomatic 12, cognitive 17): targets has cyclomatic complexity 12 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1165cbf4e203b4184bb16e7b0a2c92dbbff411cf46ca28513c8b5c236ab48c2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolsPanel (cyclomatic 12, cognitive 17): ToolsPanel has cyclomatic complexity 12 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96eeb62269088ec7a39be90de424933b3d46ef20206d55b2aaadab96ac09012"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupResults (cyclomatic 12, cognitive 17): groupResults has cyclomatic complexity 12 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":"webui/src/components/thread/SubagentTaskResults.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19347afb2c8951ecec9b22423ba5daaebbab841750e4cc4932120a8e2ffdb31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webSearchSources (cyclomatic 12, cognitive 16): webSearchSources 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":"webui/src/components/thread/activity/web-search-model.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b4d916531ba5a319617ecb85d781837857cb28615e4611d244531edd9ad753"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findFileEditTraceIndex (cyclomatic 12, cognitive 16): findFileEditTraceIndex 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac77d39b10ec0a9a7cc279bcb8790bbb6552c8f9da0af83e4af3d53ecd19a32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeToolProgressEvents (cyclomatic 12, cognitive 16): normalizeToolProgressEvents 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":"webui/src/lib/tool-traces.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d360eb056413f402795c2ca5c5efb3519907690bece4c698430b7ccafe546de3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspect (cyclomatic 12, cognitive 16): inspect 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":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"411da66cbdb053d44917d09533fa65671a5ca2f330d9087d80c9cb77bdfc7ab8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 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":"webui/src/components/settings/models/useModelPresetDrag.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b877e2ecaf550b0a7de2a93c00c1eabaa379b7a5ab5000615acea0cbdbd2aac4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OverviewValueLogo (cyclomatic 12, cognitive 15): OverviewValueLogo has cyclomatic complexity 12 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"141089ed6078ab395ee4d81047fd7c609fc9ed2e66e33bfc508a755cae1769d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleWheel (cyclomatic 12, cognitive 15): handleWheel has cyclomatic complexity 12 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d5076274f0012f49c6f14afe868bc713ff949b523c711128518129c17a6ee7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 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":"webui/src/lib/chat-groups.ts"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58fd073d281f21f2dfec7dd31db571a2d9ef056ca90e0040b2db8e9d8f9af51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateRecovery (cyclomatic 12, cognitive 13): updateRecovery 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":"tui/src/app/app.ts"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"66009835ab3fc126cb0965484d6a35686063242dba6b9968ed129903ebb83e30"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadOlderHistory (cyclomatic 12, cognitive 13): loadOlderHistory 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":"tui/src/app/app.ts"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"369ee6166a58db35e3592e11e75105bacf1287fcd6a0a570c1a6fbf1c768e7ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchSessions (cyclomatic 12, cognitive 13): fetchSessions 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":"tui/src/client/api.ts"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"55413cc157873cfe525fb4a3caddeb64c4e82eb984e9b4ed296212fac566ef0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AboutSettings (cyclomatic 12, cognitive 13): AboutSettings 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":"webui/src/components/settings/overview/OverviewSettings.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa09d2b7f69603ae0af81c29301964dcc4872db5c7f9a10aaa3da3855ab93526"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flushGroup (cyclomatic 12, cognitive 13): flushGroup 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"3030fff8f62e06363e9438d644327236e88e641779cceec6b0ed0bca86d5ef14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) 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":"webui/src/hooks/useTheme.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"895e605cd435df84efffcb4821d02d650b72ff246d7c50b02a395c8b7fbc2fd4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setAllowed (cyclomatic 12, cognitive 12): setAllowed 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":"nanobot/channels/linear/webui/member-access-store.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2591ff5db1554fbb243098a02470136b32b89d9186e8247e3b6a77caefa7029a"}},{"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":"tui/src/views/usage-panel.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"397e049fd16a002877fdb0f1fdfffb8fe0d485b157a17a16e6b52718bfb94d84"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 12, cognitive 12): fetch 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":"webui/browser/subagent-dock-fixture.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"199c49937d526e9df472cad449ffc57a1a5d16521de1a86bdb5131e6d40ec340"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function marker (cyclomatic 12, cognitive 11): marker 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":"tui/src/menus/session-menu.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b18d0fc0203afbe947e9f8e066381da27d10834ccedc849d0cf9d6f9b5a13a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppsFixture (cyclomatic 12, cognitive 11): AppsFixture 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":"webui/browser/fixture.tsx"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d91cf2651b672c023c8e2950736415019c22cd0a0a52002cd962750a3895b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decode (cyclomatic 12, cognitive 11): decode 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":"webui/src/components/markdown-diagrams/runtime.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e446bde2ea14c4934ff8400743bc2b7a55d9ff519b5c46205fb856216939d4dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSaveCustomMcp (cyclomatic 12, cognitive 11): handleSaveCustomMcp 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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"771e26288058f77a4334daa3334abb803fb1b43f88d25511945ac83d73130816"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activityDurationMs (cyclomatic 12, cognitive 11): activityDurationMs 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0793a6950fde9ebfd211dd52589d7883f75e4aedcbc22e38ed99eeac80eb9876"}},{"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":"webui/src/components/thread/PromptNavigator.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b7ac1e9ab39cc1a0bde8cf0a0c05a1fe01bdea247c4f808cbcb5da30d61128"}},{"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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2629}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1d921c06752e894b5387ca6e58900836e40b749fc528dfd5a69de611d72ab0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DiffLineRow (cyclomatic 12, cognitive 11): DiffLineRow 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":"webui/src/components/thread/activity/DiffSyntaxHighlight.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"51df50536792ae6f2f5c7cbb50b9fd3fc1415178140f85e371601e7eb01dd415"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 12, cognitive 11): handleKeyDown 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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"601e32564de577d9c744f94b6d52d5bf25bad2e0a405d8bb9754602cfb032352"}},{"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":"webui/src/components/ui/segmented-control.tsx"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c747de488b6cf0520754e014821763f723f677c0ed2943799bc775fca1fc0c86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isLikelyFilePath (cyclomatic 12, cognitive 10): isLikelyFilePath 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":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ea55830dba4c03ad7af2a231bde5ecd87f60893a069f2e6202bd69b20b6244"}},{"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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6768fb0e15883449fee8abf921f2cfca800e728312c00cdfe6fa424262876ad"}},{"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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efee280bb58bea014ff0dc0f3e50392f24d902d4b0b77f643b3a0ea9aee6b6b"}},{"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":"webui/src/components/thread/useQueuedPrompt.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b573983c4453fefff4997d1ded7bb44d8d7a20b14feef931843f80fe7206ad66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveModelRequestFailureCopy (cyclomatic 12, cognitive 10): resolveModelRequestFailureCopy 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":"webui/src/lib/model-request-failure.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d6ce96bef232f3406610c61ac98fe36d2013115345fc7d3b805ff0adebe33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) 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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad851e6516009d30095b4581ea855d5c0c75e110404d4a175380b0587b03cc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGatewayHealth (cyclomatic 12, cognitive 9): fetchGatewayHealth 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":"tui/src/client/connection.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"41454cee6c1550924bd5275c5889384548d875a75d47b31ecb55eff474136dbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) 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":"webui/src/App.tsx"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f29e57fbefa2ac8a86fc2f06642933ea53cd968452a20536a7e94483530022"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function width (cyclomatic 12, cognitive 9): width 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":"webui/src/components/markdown-diagrams/render.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f6652bb1013ae6924ade3640d5cecb3aadbb0c6ba93bb98151f9fa30ac663e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HostCompatibilityDialog (cyclomatic 12, cognitive 9): HostCompatibilityDialog 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":"webui/src/components/remote/HostCompatibilityDialog.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6401a5b9978cb681506ac308034c578ee9effc46e910174f83e3e247c9133bca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HostMenuItems (cyclomatic 12, cognitive 9): HostMenuItems 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":"webui/src/components/remote/HostSwitcherView.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18f73748f8591516bf6516f6a5c7427a52d93a4fc55b663321adbac8a897bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54a11d3fbacb0215e9abea2c7f0ee781e86eea03bf55047c0f7a8dc57508bf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function globTargets (cyclomatic 11, cognitive 20): globTargets 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":"scripts/check_client_import_boundaries.mjs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e43d7b6b7bab94dd7d167210ba5d314c5510b0847d4bf33297f8fd8133a4c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observeScroll (cyclomatic 11, cognitive 19): observeScroll has cyclomatic complexity 11 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9c1c0e871e2df7b7591ea03c3f26a51892c51fad9472023120cfca418479c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findLoadedMessagePreview (cyclomatic 11, cognitive 18): findLoadedMessagePreview 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":"webui/src/lib/loaded-message-search.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58d82d9ce6eca83e91c117f0a7bc7da032b4c2164a97f7a91a0a048573f3f15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function manifestedAssetPaths (cyclomatic 11, cognitive 16): manifestedAssetPaths 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":"webui/public/sw.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"613d6d603860b4561617bc448fe61ad819230e02faa85ead12eceb781de96a66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateProviderRequestOption (cyclomatic 11, cognitive 16): updateProviderRequestOption 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ff530f548e10e48bdefa2da6884b43e1966a05459adfab5659a52fbab51080"}},{"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":"webui/src/App.tsx"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7d48d065f2df6ba8a6e38e39d421e2e6d18ff0159e8f3a59c776c5d2762374"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runtimePackageRoots (cyclomatic 11, cognitive 14): runtimePackageRoots 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":"tui/scripts/release-notices.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebd4791824aa37c34a9a540271cc63f856afd5df23bb0b767a770b13d6ada82"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function monitorMcpOAuthFlow (cyclomatic 11, cognitive 14): monitorMcpOAuthFlow 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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbf1da1eb511ca6ce5568bce28b36cd83a7cf6a554276c4ec96c1e24ec750b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 11, cognitive 13): load 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":"nanobot/channels/linear/webui/workspace-store.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cf2ee7f36f706f0b9a778e95089556ae79624b23df2b59dffc19b671eeb2c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function delimitedMath (cyclomatic 11, cognitive 13): delimitedMath 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":"tui/src/rendering/latex.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd57deee8b5090d4306ba8056fa88539a34a835f1acd4a9050262e983b5f5441"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) 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":"webui/browser/history-boundary.spec.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9129b581da747b46d45e723daa6aebba757e52e947519c379362ffb74ff6cb6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function read (cyclomatic 11, cognitive 13): read 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":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"003a7711bd44c8b5575c4b55ab5e36c3ddb1329668707235422e64ff73a2631d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshUsage (cyclomatic 11, cognitive 12): refreshUsage 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":"tui/src/app/app.ts"},"region":{"startLine":2440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4941a0a00fefd3053b4feb4560d1fe457263d230115cb27c9f125301cf8e84e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKey (cyclomatic 11, cognitive 12): handleKey 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":"tui/src/views/diff-viewer.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d199a4405a7b0c2c50d17e0fab3cbc087913514576a7a89590a766525221656d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diffRenderWindow (cyclomatic 11, cognitive 12): diffRenderWindow 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":"webui/src/components/thread/activity/diff-render-window.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a8becf881ab2c25310d80f397edd7fb2da461c238a51503598ba2c854ef1a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) 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":"webui/src/App.tsx"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"45becb02272a7917942a4b7252f4f9024aa1b9a30cc7ebd897cab7381144607b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"22172441b4bbfb1d999211d0b1aad89e180a2184851d68b4ed6c3f80cdd1a64d"}},{"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":"tui/src/app/app.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b7f72987dccf51c2ade91db24f6826a7e91edb978e90583f254cda27d1d701"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HistoryBoundaryFixture (cyclomatic 11, cognitive 10): HistoryBoundaryFixture 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":"webui/browser/history-boundary-fixture.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3edc1fd426285795b947041b62d723041e6227a1caa4ea5f47633bb8b46d8b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AuthForm (cyclomatic 11, cognitive 10): AuthForm 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":"webui/src/App.tsx"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"d996b654ab40b931c3f6a33533b01d65190dc70cde4808c6f593c8857f0ef332"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ImageGallery (cyclomatic 11, cognitive 10): ImageGallery 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":"webui/src/components/ImageGallery.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7b0d0c3c7c65e1620c2bff448d30fbe44314089b2d7b5b81adc54128026a31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionSearchDialog (cyclomatic 11, cognitive 10): SessionSearchDialog 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":"webui/src/components/SessionSearchDialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"360f25508af4115af4f91789f790d75ebecc30a95b3ea274ae7ef8daf1b6d159"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelSetupPanel (cyclomatic 11, cognitive 10): ChannelSetupPanel 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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"45854889a72918981c5e1f9ae60975a6852462c08d368cc2926b406e9a7badfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderModelRow (cyclomatic 11, cognitive 10): renderModelRow 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"704f3b8195a42429293b1ae6e515dbb62eb508c0f1f5fae5dccc2f6d82eeacd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Row (cyclomatic 11, cognitive 10): Row 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":"webui/src/components/settings/shared/SettingsSectionSkeleton.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fb41623aeb75cb12909f3506afd94d1ff5fa6f292e68a1313d23cab7568883"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppsActionButton (cyclomatic 11, cognitive 10): AppsActionButton 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92f35f0876d379c45b1d7fb3061b6af3b67ff934dae35ff15e2070fcc518a5d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function automationScheduleChanged (cyclomatic 11, cognitive 10): automationScheduleChanged 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27e4d4f679a6e36a60a918db0d9ffdf9938e2f27dce082fe09630a0a3d8619"}},{"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":"webui/src/components/thread/AssistantSelectionAction.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb426413df3955c7d6251d13357cdf8fcb9bed7d061468b88bcfa6c134a1661"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageBlockMenu (cyclomatic 11, cognitive 10): MessageBlockMenu 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f731e17926054c578167c5e52a1528a23c39041392af94388b888a597f682e58"}},{"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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab869a61c7a9c6611ce154ffc59914aaa00298112dbb9b17ceb2b11ad741ef4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileUnifiedDiff (cyclomatic 11, cognitive 10): FileUnifiedDiff 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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cccca527eafa8a8e66067a50a3ea7e6c27428376b1a3ca71216229f80aa978b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webSearchRunFromEvent (cyclomatic 11, cognitive 10): webSearchRunFromEvent 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":"webui/src/components/thread/activity/web-search-model.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4193e5ade03901a6aa1e897209e2cc6ef6ba49cd10467ab8e5c85877c0f723"}},{"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":"webui/src/hooks/usePromptHistory.ts"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c287511e4e57e4f7edd528bbd83b3a9a10116b34fb51fd4a2f0298fe49f47b8e"}},{"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":"webui/src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d050c2d4e39587e9ae82d402406ef47a185dad8b411585aac68d07046cddb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendAnswerText (cyclomatic 11, cognitive 10): appendAnswerText 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e676c364a2ec9e084672191907b093f61428aca58a993fbafed976c41974459"}},{"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":"webui/src/providers/VersionCheckProvider.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d3bc8b33abd56ae2aadd911e13ff45a2128e90d2f6fc48fff3f1a7e428250a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkeletonPreview (cyclomatic 11, cognitive 9): SkeletonPreview 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":"webui/browser/skeleton-additions-fixture.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea3bcfd91ce08a1ff392df33fab7a9a08b59e3cdbb71923fc63d8bb0a9e091b"}},{"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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31423a9e7e02420dfb42c897aef2ff508c1c8203ee37b04aba566e27c7f938f"}},{"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":"webui/src/components/thread/ContextGraphScene.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b81470027121fd488c8526eff001fbc4342402a327cc8f187c648ffe21140d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AttachmentChip (cyclomatic 11, cognitive 9): AttachmentChip 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2863}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a7e646abad981d6fd1d660c99bf845cca0929fb3a8f4191cae5e917e02e01e"}},{"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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"756e7cd68d876bc4130b4d23c55194a15385feeb21f5f506932fe6fed5f99b27"}},{"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":"webui/src/components/ui/dialog.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b982b336df64d303ed8a11920ef4e2f21cb5511c4859550d678350a46fcf50d"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/ThreadComposer.tsx: 2778 lines of code: webui/src/components/thread/ThreadComposer.tsx has 2778 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c8e9bf783e0ad2680c64acc2471ad726708484336c28bd6c7e30de9d50fe6f"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/App.tsx: 2689 lines of code: webui/src/App.tsx has 2689 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":"webui/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd1263c91a42000ad261e98cb80726f9fb224a1696001f079af680110eb6c19"}},{"ruleId":"R3","level":"warning","message":{"text":"tui/src/app/app.ts: 2532 lines of code: tui/src/app/app.ts has 2532 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":"tui/src/app/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6149e4e2426278c9245f2c726303bb3ac0d4143602155ca91f021836f0f3f6b"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/ChatList.tsx: 1954 lines of code: webui/src/components/ChatList.tsx has 1954 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd405f663d5d18d2bc68575c42b68b58a712beb7acdeb5a7e44427951fb76fb0"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/lib/api.ts: 1561 lines of code: webui/src/lib/api.ts has 1561 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":"webui/src/lib/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce76ca60e66507e96a317229cc0447b0d16de9d588172cdeb1e2527bc62945a"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/ThreadShell.tsx: 1521 lines of code: webui/src/components/thread/ThreadShell.tsx has 1521 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8297180515b177130d60925e4f7902bd60425a2a1ca51a2f3061f1d815618307"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/system/AppsSettings.tsx: 1493 lines of code: webui/src/components/settings/system/AppsSettings.tsx has 1493 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ad318868c5321082d01f3972c1c9a10931125ce04d896f6d8aeb5a6eb067bd"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/AgentActivityCluster.tsx: 1437 lines of code: webui/src/components/thread/AgentActivityCluster.tsx has 1437 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccd930e87464bdf10cfd41ef24c00cc2ce2b63d38794f0809d7103042d3063b"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/ThreadViewport.tsx: 1361 lines of code: webui/src/components/thread/ThreadViewport.tsx has 1361 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":"webui/src/components/thread/ThreadViewport.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5626410d35ebcded7182a12e5bfa51a480bbdb1bf8905820505bdb90a4bde1"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/lib/nanobot-client.ts: 1241 lines of code: webui/src/lib/nanobot-client.ts has 1241 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61510b149e730cd7f620f0a31efb9203ddd59f98e97a4de51c02159e65ba9cab"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/lib/thread-event-projection.ts: 1204 lines of code: webui/src/lib/thread-event-projection.ts has 1204 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"093c33b4aacfe59c5b6905cb749991e7fd59b259ae29b70cee579f05e716675b"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/system/AutomationsSettings.tsx: 1203 lines of code: webui/src/components/settings/system/AutomationsSettings.tsx has 1203 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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d99a44770182a965f5c664f5896527ea9cd6d009118350f74b4cbf30480b04"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/models/ProviderSettings.tsx: 1179 lines of code: webui/src/components/settings/models/ProviderSettings.tsx has 1179 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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e9bba229f2874c536abf8379ec7aaee46001eb6c270191ace5b19640fb2ede"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/ThreadMessages.tsx: 1119 lines of code: webui/src/components/thread/ThreadMessages.tsx has 1119 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e670d7e44fb48d6edcc9ef836ff386eaba123e084873e43b3d9fbe232a790b"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/models/ModelsSettings.tsx: 1073 lines of code: webui/src/components/settings/models/ModelsSettings.tsx has 1073 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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc17796f1358a7e81b56f38a72c48c3249ae11221f15ea9a16a631ff25e17946"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/hooks/useNanobotStream.ts: 1050 lines of code: webui/src/hooks/useNanobotStream.ts has 1050 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":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebee56712c21ca030ffc56170add2c61e1bf5e7a65665cdfdeba03ace393ce8a"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/lib/thread-transcript.ts: 951 lines of code: webui/src/lib/thread-transcript.ts has 951 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":"webui/src/lib/thread-transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"298ca74779100b417f1a3dc6d4d8f858b1db2fcf8854ecac3afc7cd345b80b84"}},{"ruleId":"R3","level":"warning","message":{"text":"tui/src/rendering/latex.ts: 840 lines of code: tui/src/rendering/latex.ts has 840 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":"tui/src/rendering/latex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ee2c6076841181814c3b61c3f2102b40323a245de0486cb9bf34c3209db061"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/workbench/PaneWorkbench.tsx: 806 lines of code: webui/src/components/workbench/PaneWorkbench.tsx has 806 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":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0965a8b7def7de613b8822021d4371c61b34954f654a4e9e0993c8a310470e7f"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/MarkdownTextRenderer.tsx: 797 lines of code: webui/src/components/MarkdownTextRenderer.tsx has 797 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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc096e89fb15d8a5b82327dba8ecd645b5bd69eb79714756252d3cf0faacb35"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/SettingsPage.tsx: 796 lines of code: webui/src/components/settings/SettingsPage.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":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a834cd3efb39d5138c3d81d8c560c393b7045deb6ff0a88624f6f9643bee86f7"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/MessageBubble.tsx: 764 lines of code: webui/src/components/MessageBubble.tsx has 764 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e79e462aab9eb2a2698f6668e32ef57d3ec121c655d44305ac263c8dfd18b7d"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/WorkspaceControls.tsx: 759 lines of code: webui/src/components/thread/WorkspaceControls.tsx has 759 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":"webui/src/components/thread/WorkspaceControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd6c898a77bc8a7c9deb66fbfa23a9883964572475329985b1e082183ed49eb"}},{"ruleId":"R3","level":"warning","message":{"text":"tui/src/rendering/transcript.ts: 752 lines of code: tui/src/rendering/transcript.ts has 752 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":"tui/src/rendering/transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6810fb15fc1fb22c95136119a96313846eefb25958cb9b7bc620324c16dca719"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/SkillsCatalogSettings.tsx: 743 lines of code: webui/src/components/settings/SkillsCatalogSettings.tsx has 743 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee0dc51f138596481f8ae2468d620ef840ac0eb1fdc0c6420193cf99fdb283f"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/system/McpManagementDialog.tsx: 725 lines of code: webui/src/components/settings/system/McpManagementDialog.tsx has 725 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8701ce47b9a88f152d351e20f097b28f5fe491e20ec2a4a7e5fa2ff70f72fd77"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/SkillsMarketplace.tsx: 705 lines of code: webui/src/components/settings/SkillsMarketplace.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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b17e763ef9f614fcece730e62b5ed943ea59eb02264857947d0770e097f43f"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/system/createSystemSettingsActions.ts: 657 lines of code: webui/src/components/settings/system/createSystemSettingsActions.ts has 657 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":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9694ae65532a0b5c4587ec5547efe39ef44a481c5406b0e89e6725e7f93f3601"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/shared/ModelControls.tsx: 651 lines of code: webui/src/components/settings/shared/ModelControls.tsx has 651 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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc7a500c9353fd196ef7be47c1c4b4518a740710c000160c060b08c68a8c060"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/ModelPresetBadge.tsx: 650 lines of code: webui/src/components/thread/ModelPresetBadge.tsx has 650 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b04ffd49266f40e892c72779f77e408cc60fa618eb8c097f8de44f74d5687a"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/models/useModelSettingsActions.ts: 631 lines of code: webui/src/components/settings/models/useModelSettingsActions.ts has 631 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":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9400bf08de76e32fba66b8143f79b3ed6546d1ce4950aa9ce4ca4a38b13ee3f4"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/remote/RemoteConnectionsPage.tsx: 534 lines of code: webui/src/components/remote/RemoteConnectionsPage.tsx has 534 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":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eb11f0df0521c49e41902a6ac0307fd8ee099114c52f711320bd19366cf51a"}},{"ruleId":"R3","level":"warning","message":{"text":"tui/src/client/api.ts: 509 lines of code: tui/src/client/api.ts has 509 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":"tui/src/client/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32832ed7c64eec90d430ae3a81da48c2c1e18fe354362b2bea122a81c01dc60c"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/thread/thread-motion.ts: 483 lines of code: webui/src/components/thread/thread-motion.ts has 483 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":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0630e4b49b1071b405bdf07e8f2d20f8899fd6ef6c950cd08985c8cdd3fe5158"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/channels/ChannelSetupPanel.tsx: 476 lines of code: webui/src/components/settings/channels/ChannelSetupPanel.tsx has 476 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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90e7aee03a17ea64f4092d9d18bf91c3c7e7470ae1249600ef85e31998c16bc"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/lib/client-run-ledger.ts: 469 lines of code: webui/src/lib/client-run-ledger.ts has 469 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":"webui/src/lib/client-run-ledger.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"664feb045e058d3fd9fe99e35c90be3329f227a5905a6d1c5d10b1a898dd112c"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/useSettingsController.ts: 448 lines of code: webui/src/components/settings/useSettingsController.ts has 448 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":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"471008f40f452c8bbce961d750d4e30f9fa5c5c34a77b82010a6f7dbb31e80ff"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/hooks/useVoiceRecorder.ts: 441 lines of code: webui/src/hooks/useVoiceRecorder.ts has 441 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":"webui/src/hooks/useVoiceRecorder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"485772974ef7592eaf4eef59545b23fef50df8d1a37f10e6865c4255ee0a6d30"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/hooks/useAttachedImages.ts: 437 lines of code: webui/src/hooks/useAttachedImages.ts 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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"027b3bd69b842bb71413644ca1fdbb23c87cc74d215ad5a5d84934455f200e09"}},{"ruleId":"R3","level":"warning","message":{"text":"tui/src/client/nanobot-client.ts: 428 lines of code: tui/src/client/nanobot-client.ts 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":"tui/src/client/nanobot-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c35a28a149e7cc90749576b1e3321bbccaeb717a60cc71a60f9b269458c4e6"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/dev/gallery/settings.tsx: 426 lines of code: webui/src/dev/gallery/settings.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":"webui/src/dev/gallery/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f675db262e959cf503054c606cc1bda1b224c1eff8960cef2cac12049c3476e4"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/settings/shared/SettingsControls.tsx: 419 lines of code: webui/src/components/settings/shared/SettingsControls.tsx has 419 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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4009b31c46c4e1e82c9611514b022837241c9651109422905df9c0a5161f1163"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/Sidebar.tsx: 418 lines of code: webui/src/components/Sidebar.tsx 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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d3ebde9fabc9129906112cc69f3c6aebf4572e4a24e82507fe0c162d823246"}},{"ruleId":"R3","level":"warning","message":{"text":"webui/src/components/workbench/workbench-layout.ts: 401 lines of code: webui/src/components/workbench/workbench-layout.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":"webui/src/components/workbench/workbench-layout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95051403c072a0ab77a2d273c35279f4076e89e05ed0b10e72adf2af423ab7e"}},{"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":"webui/browser/fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9720b93e77803a2aa4adfd011103f64f8431ce473152f2a591d201de10fb5293"}},{"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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa25813a8927bca9594ac6d2444803c425a9f6d69c04ea6ecf48f16c52a2c13"}},{"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":"webui/browser/subagent-dock-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2422e6417c1ef9b6b3198af1a55d89da51a7667b06c7764381b8c6855eac9"}},{"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":"webui/browser/skeleton-additions-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dd533690dd691da2a8799c404558edc412545d30e38968f306822f5f707978"}},{"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":"tui/scripts/release-notices.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8ccb7e335f59aa2d2b4804d472fc324f7538d72af55824867539fc32299372"}},{"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":"webui/browser/typography-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75faf6afd3bd680a96301786a84cccbb8fbb697a9ba859788f899de5d887ece"}},{"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":"webui/browser/theme-toggle-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b5644658fcc4b0cd32b07c255bfe05de2832f4faf214cb3111e2efe37a7681"}},{"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":"webui/browser/skeleton-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f856945a81cc700195c704db0eedef88b5ec1283932dd15008e0ee0d753f99"}},{"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":"webui/browser/attachment-layout-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c8beb268d383ce0c7110a18a0859b3cbdafda4cd57ec899e42219988aca519"}},{"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":"webui/browser/history-hydration-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b441c07612b9d07c06ee0de34e98dc83b53c2b6ab85ca037ce11ba9338689b"}},{"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":"webui/browser/overlay-focus-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ad677ed8bcbd91a04a735a5d7c64994f6bb6821233578c9e618f2e356d1801"}},{"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":"webui/browser/idle-compaction-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c7323a354366b740b4a9b6274788b04ba2edcabc4de90f7cca31ffa7685b40"}},{"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":"webui/browser/session-transition-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2863e7cc8383bb7b68bb3fc146d30c2952d1f5fdb7b4be23c22914ae878bd6bd"}},{"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":"webui/browser/inline-references-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077e8d3e844128b3e69af9066807af29fb6096a96d8abe9412e5708d710d06e8"}},{"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":"webui/browser/mobile-chat-layout-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf824a63929a83b9a5bea84194739850c8569955b6f85f6cf343b51b3c4f26c"}},{"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":"webui/browser/continuity-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e914dc202656c45d8fb2c328a759e0a385f5fb21210e261f131a5390a2631f"}},{"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":"webui/browser/file-diff-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcae76cf40b0565e2791cfce5afc03865c5bda073f1d3db0ae86bbb347d9d77"}},{"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":"webui/browser/activity-logos-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9cad19dd117fb3f39e1058f853025ae15a1532dcf077e56fe87ddeed560c4"}},{"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":"webui/browser/chat-failure-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba68258d257380c829337340c82300fbcdf14ba7458e14406ccd03b94b91682"}},{"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":"webui/browser/exec-session-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a245021b5fb096b0f4b4393005565ee5b4879f5b0027ec12cb01570e15f0550"}},{"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":"webui/browser/history-boundary-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4dbcd133cdc5a63b1960f7ba35cebf92d8611b92c78cee54046a1e758a489b"}},{"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":"nanobot/channels/weixin/webui/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1086e90b49898fe8284270fe2a6303e5e14b2e74643f48d05507184ba4d0bd4"}},{"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":"nanobot/channels/feishu/webui/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b326ff604f5090d6a778aca36385f79b53cb99eb7152ad21b892f202622251"}},{"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":"webui/browser/context-graph-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ac25967ce100435d8bd746223d66844b1cb3ab37d01f6b6a87e689de37f4e8"}},{"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":"webui/browser/new-chat-skeleton-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cb33c1575c0eae5fa06e858871db09394260ff8628c3d2c03c6e65a1eb4735"}},{"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":"webui/browser/diagram-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35465694d8e99a7db607232edba483eb6ed67248cad09d4a1118e06f118eab8f"}},{"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":"webui/browser/answer-order-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eae973d05f23102bad3a52255b48897e04806f56fe3653d03225603c443402c"}},{"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":"webui/browser/sidebar-activity-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b5ac8d345c908f66ffea4ef2ad866c64b9578552ab3f12cf05ba0a9036f1da"}},{"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":"tui/scripts/prepare-target.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e025028bc4247e5e218050a41ad327a6e674d74c633908475a957b7a7ce0b49"}},{"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":"webui/browser/code-highlighting-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a570d123a19942b35bdf72d877db19ddf3eac09ea3ce76050d1d50c945f3dd"}},{"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":"webui/browser/markdown-dollar-refs-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4850d73254e7ddf77dc943c91c15dc9e9105e34ecc4cf7b4a7c00f8ed44fd0"}},{"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":"webui/browser/appearance-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d9bfd43e88a3f5f8e6d3fe9e708649e7da21952f02aef4edeab5ab46d2a648"}},{"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":"webui/browser/loaded-session-search-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"805ac6388db6e4e0fa41c3191233af584535e5a10a7c03f59c9888a7dc459946"}},{"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":"webui/browser/file-edit-path-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd368365a65c2e6b025a2c5b8aa5b379d4a792a4cd2779bcf9a910bc8af06582"}},{"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":"webui/browser/queued-guidance-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e17bf60bb8b9d19b473a3bf7bcc7b28a30edef8f385781da5c96affde48ca2"}},{"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":"nanobot/channels/whatsapp/webui/WhatsAppConnectFlow.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"699151fe9cf5b1d1d953a75924410f32008e3534543435ba8b65e51d3af0aa46"}},{"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":"webui/browser/tools-catalog-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e99a8ded8d2837336b110dba335acd7b03fa341217ce8b4fb89f530cadbb7"}},{"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":"webui/browser/workspace-alignment-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c746bf6e4984dc354a6ebb487d7d915afdcd55584a59fb0c469799012fe9fbf"}},{"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":"webui/browser/code-wrapping-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd670692ba10e817270a199eb09b4264936e7b854d80964e2f3c1d920191d1d"}},{"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":"webui/browser/composer-action-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fb9f88978c13bdfc6833d6e822aa7b035c4595e9a723822f9f0fd7b450d837"}},{"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":"webui/browser/display-math-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b90b20739b000ff30463845a9c25d0e5ac050794f14030d72a0d15302098530"}},{"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":"webui/browser/thread-loading-fixture.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7a2c78ac36ff73c67fd560d8fe48af4eb4f8619430dee779e3698e6f0d9a9b"}},{"ruleId":"R5","level":"warning","message":{"text":"Dependency Freshness: 46 outdated package(s); JS/npm CVEs scored in D30"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7de98450603a813bc7a991bc6e60f440c1deac6f9c9bfd4d0da057afed869bcf"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027lucide-react\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/email/webui/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2584141402948a3a28bda018e8234f29427b856473085573c753a824cd5fbe3"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027react\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/feishu/webui/FeishuAssistantsPanelView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e1086f70b5770735d49d0f2b0431b761b683024b7a5a4a9e699ff67529b1c5"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027react-i18next\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/feishu/webui/FeishuAssistantsPanelView.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cba1c418431bbf3d25f8908968625fca61e7be93bb0575da19139e746ce82c4"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/command/builtin.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"386ed479253195013b1056d4857310ee0f63be8386b629f509721bb7b777e435"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/command/builtin.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1621ef7cb7e6d909570788133b209f52841424c4c1fef30092aea9fca51a8a91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!args || typeof args !== \u0022object\u0022 || Array.isArray(args)\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/activity/generic-tool-model.ts, webui/src/components/thread/activity/mcp-activity-model.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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d241fcd6207827f127c61a0d4a0d745963935be7eb32f4b44deb4159227f376b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cancelled \u0026\u0026 version === payloadVersion\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/ThreadShell.tsx, webui/src/hooks/useSkills.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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f60b4562366aa234e4f11c57a60b4c613c81bf5e123026b18d707cd01ebf74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!field.optional || requirementKeys.has(field.key)\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/channels/ChannelSetupPanel.tsx, webui/src/dev/gallery/channels.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":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebd668f47821cd2535282680d4f8406e8dda4aaefed6fb194c1a8946bab1d4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!gesture || gesture.pointerId !== event.pointerId\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/ModelPresetBadge.tsx, webui/src/components/workbench/PaneWorkbench.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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6ba9386d04bc329a4034511b366b93042fa3ce78be1a77c7f1eaf6c655fd63"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!key.ctrl \u0026\u0026 !key.meta \u0026\u0026 (key.name === \u0022up\u0022 || key.name === \u0022down\u0022)\u0060 appears character-identically in 2 files \u2014 tui/src/app/app.ts, tui/src/views/runtime-controls.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":"tui/src/app/app.ts"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"140e6a74af02f55eef308a91f25bd8e2881733c46b5aa4362b636d29379300b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!open \u0026\u0026 [\u0022ArrowDown\u0022, \u0022ArrowUp\u0022, \u0022Enter\u0022].includes(event.key)\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/models/ReasoningEffortPicker.tsx, webui/src/components/settings/shared/ModelControls.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":"webui/src/components/settings/models/ReasoningEffortPicker.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0927c3e4e0dd1f15486d28ea423880b45b4f4f1f238890ed2b5e7f948465a450"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!raw || typeof raw !== \u0022object\u0022 || Array.isArray(raw)\u0060 appears character-identically in 2 files \u2014 webui/src/components/workbench/workbench-model.ts, webui/src/hooks/useSidebarState.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":"webui/src/components/workbench/workbench-model.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c397e767cf3b44c3353c2865a0cd17a3edd4dd56c0c93f79f7dce912264b74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!this.options.apiUrl || !this.options.apiToken\u0060 appears character-identically in 2 files \u2014 tui/src/app/app.ts, tui/src/views/runtime-controls.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":"tui/src/app/app.ts"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aac7b20e76f3835368c13ab58263fe79acfb983fd6431567797fffff882840"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 webui/src/components/remote/host-bridge.ts, webui/src/components/thread/activity/web-search-model.ts, webui/src/hooks/useSidebarState.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":"webui/src/components/remote/host-bridge.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10f41f0eb3ea29a622d9fa5df4779066095c833a6ec95e444dd1f5ca3c41869"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060brand?.logoLayout === \u0022tile\u0022 \u0026\u0026 logoUrl === brand.logoUrl\u0060 appears character-identically in 5 files \u2014 webui/src/components/ResponseSourceBadge.tsx, webui/src/components/settings/overview/OverviewSettings.tsx, webui/src/components/settings/shared/ModelControls.tsx, webui/src/components/settings/shared/ProviderIcon.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":"webui/src/components/ResponseSourceBadge.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"641745d79aee1e6fa9234bfda187f1fa1cbd1444f7900acc7f416b9a5c9cfebf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060configuredFields.has(field.key) || Boolean(feature.config_values?.[field.key]?.trim())\u0060 appears character-identically in 2 files \u2014 nanobot/channels/linear/webui/LinearPanel.tsx, webui/src/dev/gallery/channels-linear.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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd853b9dd121e9860287ae829ee99b38c1708b4aea5cd3387af531861fa5331"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.status === 404 \u0026\u0026 /API route not found/i.test(error.message)\u0060 appears character-identically in 2 files \u2014 webui/src/components/FilePreviewPanel.tsx, webui/src/components/thread/ThreadShell.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":"webui/src/components/FilePreviewPanel.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4897c0211ed2e41d782dc6fea0a70ebc51bdfd0bfb8d709ef75cc6d47f1d3ed4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.event === \u0022user_message\u0022 \u0026\u0026 event.turn_id\u0060 appears character-identically in 2 files \u2014 webui/src/lib/canonical-run-snapshot.ts, webui/src/lib/thread-transcript.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":"webui/src/lib/canonical-run-snapshot.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d502e4dcdffe9a97c440af7e693a5ac4d6501e91f592a75d79b8dcc26889caf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.kind === \u0022tool_hint\u0022 || event.kind === \u0022progress\u0022\u0060 appears character-identically in 2 files \u2014 tui/src/client/api.ts, webui/src/lib/thread-event-projection.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":"tui/src/client/api.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dee8223c335e943bd5a97433000b9b8e1d9ba2c3d9c22dbb8cc58ce0714daf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.pointerType === \u0022mouse\u0022 \u0026\u0026 event.button !== 0\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/ModelPresetBadge.tsx, webui/src/hooks/useVoiceRecorder.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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f5e23aa7640a2a9f65fa7fd8555cf94c6c9e1d0fcbc23fd88cb06534136574"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.state === \u0022recovered\u0022 || event.state === \u0022cleared\u0022\u0060 appears character-identically in 2 files \u2014 tui/src/app/app.ts, webui/src/lib/nanobot-client.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":"tui/src/app/app.ts"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20dd3a743b22f55f112b33090ac589dfc6b28c6dbcc4ec915c0ac87427d23c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.runtime_status === \u0022running\u0022 \u0026\u0026 installations.length \u003E 0\u0060 appears character-identically in 2 files \u2014 nanobot/channels/linear/webui/LinearPanel.tsx, webui/src/dev/gallery/channels-linear.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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd89af3eecf289a5d7b0c4b878b2b90e94e24de5a69d89a422eb50263dc11ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.runtime_status === \u0022running\u0022 || feature.runtime_status === \u0022failed\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/channels/linear/webui/LinearConnectFlow.tsx, webui/src/dev/gallery/channels-linear.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":"nanobot/channels/linear/webui/LinearConnectFlow.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af16d38db3004082ce1781cdcfb8c4bd3bd8cfc318ccf978f821b1bc69b4b85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.kind === \u0022boolean\u0022 || field.kind === \u0022toggle\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/shared/SettingsSectionSkeleton.tsx, webui/src/components/settings/system/RuntimeConfigSettings.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":"webui/src/components/settings/shared/SettingsSectionSkeleton.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5907d25fda3360f89cfd4f100731614bdda5a93d2cdb283499154269a6aa741c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.kind === \u0022enum\u0022 || field.kind === \u0022bool\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/channels/weixin/webui/presentation.ts, webui/src/components/settings/channels/ChannelIdentity.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":"nanobot/channels/weixin/webui/presentation.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"414e664d5e18fbbf76603cfbcfc630650d68f4599b93bc371dadededd717f5a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.secret \u0026\u0026 configuredFields.has(field.key)\u0060 appears character-identically in 3 files \u2014 nanobot/channels/linear/webui/LinearPanelView.tsx, webui/src/components/settings/channels/ChannelSetupPanel.tsx, webui/src/dev/gallery/channels.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":"nanobot/channels/linear/webui/LinearPanelView.tsx"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8640f7c687f57e2de1e01088f52d723bcad30a26b84ee0a19ebe5c2287d5b738"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060group.kind === \u0022project\u0022 \u0026\u0026 Boolean(collapsedGroups[group.id])\u0060 appears character-identically in 2 files \u2014 webui/src/components/ChatList.tsx, webui/src/lib/chat-groups.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":"webui/src/components/ChatList.tsx"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df8da2d88412e4fcb37494c51c49d40d6ecf4c1499bc6023d56c81d141e7154"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060installationMethod \u0026\u0026 installationMethod !== \u0022managed\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/UpdateNotice.tsx, webui/src/components/settings/overview/VersionCheckRowView.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":"webui/src/components/UpdateNotice.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827418777523f999fd5815afc637307c90d8fb9afd3232447ffc60ae71a3b3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060instance.display_name?.trim() || instance.name.trim() || instance.id\u0060 appears character-identically in 2 files \u2014 nanobot/channels/feishu/webui/FeishuAssistantsPanelView.tsx, webui/src/dev/gallery/channels-feishu-whatsapp.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":"nanobot/channels/feishu/webui/FeishuAssistantsPanelView.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80b78ce8af730cefa6e884e025f6c2cd59355e18671aead9205f3535e4be6e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.kind === \u0022local_trigger\u0022 || job.payload.kind === \u0022local_trigger\u0022 || job.schedule.kind === \u0022local\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/system/AutomationsSettings.tsx, webui/src/components/thread/SessionInfoPopoverView.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":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea5e575e388a733b6dc25c135b26d0d832a94ad24331f1200004747320dfcde"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.schedule.kind === \u0022at\u0022 \u0026\u0026 job.schedule.at_ms\u0060 appears character-identically in 2 files \u2014 webui/src/components/DeleteConfirm.tsx, webui/src/components/settings/system/AutomationsSettings.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":"webui/src/components/DeleteConfirm.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c575d0186abe4d0ff07051bb6f1b919d0fe4659e3b7a6ddf53d560f37b2fba6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.schedule.kind === \u0022cron\u0022 \u0026\u0026 job.schedule.expr\u0060 appears character-identically in 2 files \u2014 webui/src/components/DeleteConfirm.tsx, webui/src/components/settings/system/AutomationsSettings.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":"webui/src/components/DeleteConfirm.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2593687eb42bf0ba0b04603d9b427e873dc6bd27f314bd84c36f52c3f93950"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.schedule.kind === \u0022every\u0022 \u0026\u0026 job.schedule.every_ms\u0060 appears character-identically in 2 files \u2014 webui/src/components/DeleteConfirm.tsx, webui/src/components/settings/system/AutomationsSettings.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":"webui/src/components/DeleteConfirm.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c32a420c0b561f232df42b3a1d16978d44488bce902b87ec0930cf22e1b6cd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.name === \u0022pageup\u0022 || key.name === \u0022pagedown\u0022\u0060 appears character-identically in 2 files \u2014 tui/src/app/app.ts, tui/src/views/diff-viewer.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":"tui/src/app/app.ts"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbb6fdb45124b8c68eb2eefed098e1642462c712efcbab07a56bd9ad3e0d4db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.role === \u0022user\u0022 \u0026\u0026 message.turnId\u0060 appears character-identically in 2 files \u2014 webui/browser/history-boundary-fixture.tsx, webui/src/components/thread/ThreadShell.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":"webui/browser/history-boundary-fixture.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b769b2a98f2641604fd5e703599ef8dcb5e12f9d0ea734dffa7a2574ab467df4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.role === \u0022user\u0022 \u0026\u0026 message.turnId === event.turn_id\u0060 appears character-identically in 2 files \u2014 webui/src/lib/thread-event-projection.ts, webui/src/lib/thread-transcript.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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb05f95ba383e1285e4c9b664b6b0be9e47bf70f6a8f041719d90dc6de8f475f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060missingSupport \u0026\u0026 feature.install_supported\u0060 appears character-identically in 2 files \u2014 nanobot/channels/weixin/webui/WeixinPanelView.tsx, webui/src/components/settings/channels/ChannelSetupPanel.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":"nanobot/channels/weixin/webui/WeixinPanelView.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a759758c97af81edd4b2e3cca33e9e30ac7eba8e1deaf709322805a9aa0cc2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.toLowerCase().split(\u0022.\u0022).pop() || name.toLowerCase()\u0060 appears character-identically in 3 files \u2014 webui/src/components/thread/activity/generic-tool-model.ts, webui/src/components/thread/activity/trace-activity-model.ts, webui/src/components/thread/activity/web-search-model.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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed8839688fc68704f88cd063857469be09355fc21ef6895be429da475ec282"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060preset.description || preset.note || preset.name\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/system/AppsSettings.tsx, webui/src/components/settings/system/McpManagementDialog.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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"197f125f069a80614afe749c966c1de418317fa903c221831aeb9deb484274e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reason instanceof ApiError \u0026\u0026 reason.status === 409\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/SkillsMarketplace.tsx, webui/src/components/settings/models/useModelSettingsActions.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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f525b96cecafdb64c61be00970178552312d95909f89b004511bb54d8202a077"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result \u0026\u0026 typeof result === \u0022object\u0022 \u0026\u0026 !Array.isArray(result)\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/activity/trace-activity-model.ts, webui/src/components/thread/activity/web-search-model.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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6581f1f07b614ef119259dda16c92e9ff4f3ac862721cdb8c1a782e09ef7f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectedProvider?.auth_type === \u0022oauth\u0022 \u0026\u0026 !selectedProvider.configured\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/models/ModelsSettings.tsx, webui/src/components/settings/models/ProviderSettings.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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2713b985b37caf841e0ca82ac3ed4bad7d0036f9b6cc687b212078247bfce168"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.recoveryState?.status === \u0022awaiting_user\u0022 || session.recoveryState?.status === \u0022failed\u0022\u0060 appears character-identically in 2 files \u2014 tui/src/menus/session-menu.ts, webui/src/App.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":"tui/src/menus/session-menu.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee26a5e3ab568bfe841eb20bce931f48f6873d8c7992d9cd0dda1adb426679"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state === \u0022idle\u0022 || state === \u0022starting\u0022 || state === \u0022error\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/dev/gallery/channels-feishu-whatsapp.tsx, webui/src/dev/gallery/channels-qq.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":"webui/src/dev/gallery/channels-feishu-whatsapp.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2690a0ad8a81bab1af806c0173372fa0325fc424f329cc0b08a316e2f4a736c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.status === \u0022awaiting_user\u0022 || state.status === \u0022failed\u0022\u0060 appears character-identically in 2 files \u2014 tui/src/app/app.ts, webui/src/components/thread/RecoveryNotice.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":"tui/src/app/app.ts"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed2a378629905ec5813091e6b6e4fa7ec2c3cb7fb73328431ea78cea9c6a7b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060task.state === \u0022error\u0022 || task.state === \u0022incomplete\u0022 || task.state === \u0022interrupted\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/SubagentTaskDock.tsx, webui/src/components/thread/SubagentTaskResults.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":"webui/src/components/thread/SubagentTaskDock.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f4ca4759a8da6b2c36475cba5e6b5c72ff9289531ae8a0d1d64600b04c402f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tone === \u0022neutral\u0022 \u0026\u0026 \u0022bg-muted text-muted-foreground\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/shared/SettingsControls.tsx, webui/src/components/settings/system/McpManagementDialog.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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c78d2301fb41136436ff2d9eb813eff6b0929f25d3c14fcdf8687a6a552937"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tone === \u0022success\u0022 \u0026\u0026 \u0022bg-emerald-500/10 text-emerald-700 dark:text-emerald-300\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/shared/SettingsControls.tsx, webui/src/components/settings/system/McpManagementDialog.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":"webui/src/components/settings/shared/SettingsControls.tsx"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4b0d952f143deaf727e57ce4d0c8a8d25f27031a3decd6d1322618692a6853"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof attempts === \u0022number\u0022 \u0026\u0026 Number.isInteger(attempts) \u0026\u0026 attempts \u003E 0\u0060 appears character-identically in 2 files \u2014 tui/src/app/status.ts, webui/src/lib/model-request-failure.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":"tui/src/app/status.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a452bea15ecbbf1fe04a1e0da6f899fdd87df284958a8a9370829ac4df2e9939"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof crypto !== \u0022undefined\u0022 \u0026\u0026 \u0022randomUUID\u0022 in crypto\u0060 appears character-identically in 2 files \u2014 webui/src/hooks/useAttachedImages.ts, webui/src/lib/imageEncode.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":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d22f6661a2f23ed6050ea218788903482d3c67404c50cd072dcddac221fcf1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof error === \u0022string\u0022 \u0026\u0026 error.trim()\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/activity/web-search-model.ts, webui/src/lib/api.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":"webui/src/components/thread/activity/web-search-model.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbd6ea8726cd4d6fcea41272b2949c0bf7b2cedc74239aa9e670071d840e686"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 2 files \u2014 webui/src/components/settings/shared/ModelControls.tsx, webui/src/hooks/useAttachedImages.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":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d564ec158e8795e1a8458364011f2199453f9267a6e3a116f0ab38fd29295c3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value) \u0026\u0026 value \u003E= 0\u0060 appears character-identically in 2 files \u2014 tui/src/views/usage-panel.ts, webui/src/lib/activity-timeline.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":"tui/src/views/usage-panel.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1585b5a160b1210a56fcefe3e29fef3f759126fe1f69f05a0b99d3db0d34fe"}},{"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 2 files \u2014 tui/src/platform/desktop.ts, webui/src/lib/api.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":"tui/src/platform/desktop.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1072cd62d1c8b7ba6a722cf48e4abf9bbd78280ebe7183b635f5970595177f80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim()\u0060 appears character-identically in 2 files \u2014 webui/src/components/thread/activity/generic-tool-model.ts, webui/src/components/thread/activity/trace-activity-model.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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f036ce4df24540a0934f87386e89ade65a9ee24f238efe3fc55fc8169fabf930"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window.matchMedia === \u0022function\u0022 \u0026\u0026 window.matchMedia(\u0022(prefers-reduced-motion: reduce)\u0022).matches\u0060 appears character-identically in 3 files \u2014 webui/src/components/ChatList.tsx, webui/src/components/thread/ThreadViewport.tsx, webui/src/components/workbench/PaneWorkbench.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":"webui/src/components/ChatList.tsx"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc7aa38da84a2af05942df404a8ef253229c1501debcc41ae08e13cf629cb91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.origin !== location.origin || !url.pathname.startsWith(\u0022/api/\u0022)\u0060 appears character-identically in 3 files \u2014 webui/browser/idle-compaction-fixture.tsx, webui/browser/skeleton-additions-fixture.tsx, webui/browser/subagent-dock-fixture.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":"webui/browser/idle-compaction-fixture.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"712d2b199ca4b25665b6ff54c68278b9c1695bda4ccb7eb61b4f7a00f9d1159e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0022http:\u0022 \u0026\u0026 url.protocol !== \u0022https:\u0022\u0060 appears character-identically in 2 files \u2014 webui/src/components/MarkdownTextRenderer.tsx, webui/src/components/thread/activity/web-url.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":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2302a9c96d2f078b353e859568552f4be0607d5b98e612824beec26bffad5ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== null \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 4 files \u2014 packages/client-events/notifications.ts, webui/src/lib/composer-draft.ts, webui/src/lib/reload-cache.ts, webui/src/lib/subagent-tasks.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":"packages/client-events/notifications.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f883515544299f8a390fd2032a96b174e9e4dfa287f834592296b4055037ec"}},{"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 2 files \u2014 tui/src/rendering/tool-renderers.ts, webui/src/components/thread/activity/web-search-model.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":"tui/src/rendering/tool-renderers.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63d8542b34c8da2f79d1bd0235c679a4aacc109a004e1999d17bcdc08de0e5d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022:\u0022 in host and not host.startswith(\u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 nanobot/cli/webui_support.py, nanobot/webui/http_utils.py. 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":"nanobot/cli/webui_support.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96076b85416cde01d414b9c612f8a52a136a5398731923bb981f072dd0a8310"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022Traceback\u0022 in text or \u0022Task exception was never retrieved\u0022 in text\u0060 appears character-identically in 2 files \u2014 tui/scripts/conpty_smoke.py, tui/scripts/pty_smoke.py. 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":"tui/scripts/conpty_smoke.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2728a2f51617190a491bf1521936c50fe0cd3951aadd3a7a4048f363e21555dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(root / \u0022pyproject.toml\u0022).is_file() and (root / \u0022tui/package.json\u0022).is_file()\u0060 appears character-identically in 2 files \u2014 nanobot/update.py, nanobot/update_plan.py. 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":"nanobot/update.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6562244beb48a8f606071460bcbdcab91e23bde4f0f82006c70c233aec0cf528"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Path(\u0022/.dockerenv\u0022).exists() or os.environ.get(\u0022RENDER\u0022) == \u0022true\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/update.py, nanobot/update_plan.py. 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":"nanobot/update.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f519bcae9baa0320d117f2406109982154ba34c2c52dd690b5be1d55403f450b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cancelled is not None and cancelled.is_set()\u0060 appears character-identically in 2 files \u2014 nanobot/providers/github_copilot_provider.py, nanobot/session/history.py. 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cddf39148664c279bf2e5ee79cea27a234ba996d6fd01b18420ead7c8459729"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.auth == \u0022oauth\u0022 and not mcp_oauth_has_credentials(name, cfg.url)\u0060 appears character-identically in 2 files \u2014 nanobot/agent/tools/mcp.py, nanobot/webui/mcp_presets_api.py. 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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827d2a1cb4f93339ea5167ad28fb2a43f4097bf07ef3680fdda934127b49b47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ctx.session or await ctx.loop.sessions.state.get(ctx.key)\u0060 appears character-identically in 2 files \u2014 nanobot/command/builtin.py, nanobot/command/user_shell.py. 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":"nanobot/command/builtin.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2e85a2676d7e68780c9bbede417370d81da4c42f10c1468764c382736c67f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current_task is not None and current_task.cancelling()\u0060 appears character-identically in 2 files \u2014 nanobot/channels/manager.py, nanobot/channels/websocket/runtime.py. 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":"nanobot/channels/manager.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc8b76a1657a141fab3d619877bbbe2dce6da23d136b0ba9fbe521e3f8537d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.notify or self.show_compaction_notices\u0060 appears character-identically in 2 files \u2014 nanobot/channels/linear/runtime.py, nanobot/channels/weixin/runtime.py. 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":"nanobot/channels/linear/runtime.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe08f0213c039f347e33e90e63fa936cff56e87da49711570a518448eee7693b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(e, \u0022body\u0022, None) or getattr(e, \u0022doc\u0022, None) or getattr(response, \u0022text\u0022, None)\u0060 appears character-identically in 2 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd52db565ed90955752ef2ed54dcf09f5ac2f4504af4d42f7782e22034ef26e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060identity is not None and not identity.policy.persist\u0060 appears character-identically in 2 files \u2014 nanobot/webui/temporary_chats.py, nanobot/webui/workspaces.py. 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":"nanobot/webui/temporary_chats.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb182ffdd607af21dea6962ac2c9e9c234f7ec460911e36481a7203f3ef628d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060installation is None or installation.oauth_client_id != config.client_id\u0060 appears character-identically in 2 files \u2014 nanobot/channels/linear/access.py, nanobot/channels/linear/connect.py. 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":"nanobot/channels/linear/access.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adf14408ee395f3dc546d90d7bcb1d5bcf3eb2e5c9d1442a09450bbe3fa3452"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(candidate, str) and candidate.strip()\u0060 appears character-identically in 2 files \u2014 nanobot/channels/mochat/runtime.py, nanobot/providers/xai_grok_provider.py. 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":"nanobot/channels/mochat/runtime.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e6a4b53f9d71587333752ce16127b2dee7a26483fbadd9df9c2d5b42d2c624"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(content, str) or content is None\u0060 appears character-identically in 2 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/bedrock_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac6588aca7638355253663ba89e14db81a5011104ad5bd714e7a2a59d695883"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(event, StreamDeltaEvent) and event.content\u0060 appears character-identically in 2 files \u2014 nanobot/agent/loop.py, nanobot/agent/turn_delivery.py. 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":"nanobot/agent/loop.py"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a577bb1338c39c317ecf27ef704185ad900d2d8dda1048accb2d2227cd9c5b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(label, str) and label.strip()\u0060 appears character-identically in 2 files \u2014 nanobot/triggers/local_session_turns.py, nanobot/webui/transcript.py. 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":"nanobot/triggers/local_session_turns.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd8bba50fd82397a03a86c6055322c5ff2156ee7234380af1fc75bb7c6d26ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(left, str) and isinstance(right, str)\u0060 appears character-identically in 2 files \u2014 nanobot/agent/context.py, nanobot/agent/context_governance.py. 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":"nanobot/agent/context.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d369d22eafcb26a7e0f0b1fe7998b3fff17364c842398cdae599ec613a819de6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(persist_content, str) and persist_content.strip()\u0060 appears character-identically in 2 files \u2014 nanobot/cron/session_turns.py, nanobot/triggers/local_session_turns.py. 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":"nanobot/cron/session_turns.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f651021757f3bb669fcf06b71ed062596c63c424c4a2abc1059b16361951427"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(snapshot, dict) and \u0022graph\u0022 in snapshot\u0060 appears character-identically in 2 files \u2014 nanobot/session/history_graph.py, nanobot/webui/ws_http.py. 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":"nanobot/session/history_graph.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ada426c942ec628306d229f19973cb5067791e28af78b2a499d193e2de41a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, (int, float)) and not isinstance(value, bool) and value \u003E 0\u0060 appears character-identically in 3 files \u2014 nanobot/providers/github_copilot_provider.py, nanobot/providers/openai_codex_provider.py, nanobot/providers/xai_grok_provider.py. 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":"nanobot/providers/github_copilot_provider.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cebbd17e9692e2b5824dee63a3f334ac24243cf87afd2a7cacb025aa4de99f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, bool) or not isinstance(value, int)\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_responses/state.py, nanobot/webui/ws_http.py. 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":"nanobot/providers/openai_responses/state.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae19d900dc2f5e6dd08a9f4ea7033d831576900a4d83d180657202c18e39c85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, str) and re.fullmatch(r\u0022[a-zA-Z0-9_.:/\\[\\]-]{1,160}\u0022, value)\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/openai_responses/websocket.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"faea7459e1b8d2b2021be1357b87bfa29eec171f0965611e308436af32824ccd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, str) and value.strip()\u0060 appears character-identically in 9 files \u2014 nanobot/agent/skills.py, nanobot/channels/linear/runtime.py, nanobot/channels/mochat/runtime.py, nanobot/channels/websocket/runtime.py. 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":"nanobot/agent/skills.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca662beb8936c9fa83d86d1441a4b59a535a5811690540c97128a07f9a00017"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job is None or not is_bound_cron_job(job)\u0060 appears character-identically in 2 files \u2014 nanobot/cron/service.py, nanobot/webui/ws_http.py. 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":"nanobot/cron/service.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f4d3fa4f3a96783f355ffcd7b5780049661926f02bd1df20fc987e8af6d5c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key in merged and isinstance(merged[key], dict) and isinstance(value, dict)\u0060 appears character-identically in 2 files \u2014 nanobot/providers/bedrock_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b1b880a97f1a115a6e34bb079cc8be71fcbc606fbe309ead04c0ad4cb40885"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060marker is True or isinstance(marker, Mapping)\u0060 appears character-identically in 2 files \u2014 nanobot/session/automation_turns.py, nanobot/session/history_visibility.py. 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":"nanobot/session/automation_turns.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66e2d2cea9d649dc63f4f02d6b0f43e504b773224b130d5913f98d01332c683"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060merged and merged[-1].get(\u0022role\u0022) == \u0022assistant\u0022\u0060 appears character-identically in 3 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/base.py, nanobot/providers/bedrock_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7e6acde20636b7969a658ec598353ca0ebd0d1aa2717918f9d36091f5a10d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.channel != \u0022websocket\u0022 and session_message_input(message) is None\u0060 appears character-identically in 2 files \u2014 nanobot/session/recovery.py, nanobot/session/state.py. 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":"nanobot/session/recovery.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"04146cb32a0abd196843472d7d276b88f56943865568c364b91f881b87e7abdc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model is not None and model_preset is not None\u0060 appears character-identically in 2 files \u2014 nanobot/agent/model_runtime.py, nanobot/sdk/runtime.py. 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":"nanobot/agent/model_runtime.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7d9358519850a31757da9ad21270cb59f69af2d78d2ba57af6db1509d9ac70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.event.notify or self.show_compaction_notices\u0060 appears character-identically in 15 files \u2014 nanobot/channels/dingtalk/runtime.py, nanobot/channels/email/runtime.py, nanobot/channels/feishu/runtime.py, nanobot/channels/matrix/runtime.py. 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":"nanobot/channels/dingtalk/runtime.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ff51402c5ceed5870e24f8e8d97f55cd18c5b746e2e664ee9944129943fb8c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(account_id, str) or not account_id\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/xai_oauth.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4ccc2b301ace84db1ebd30149e07c7185617a72a39974f59761ce517bc8325"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(call_id, str) or not call_id\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_responses/parsing.py, nanobot/session/recovery.py. 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2d3f160b3158056ee9e369dc7fba525ec5469adda0ca971fb6b7823d993933"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(name, str) or not name.strip()\u0060 appears character-identically in 2 files \u2014 nanobot/agent/model_presets.py, nanobot/webui/settings_models.py. 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":"nanobot/agent/model_presets.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f2c0782b83625fc186ee53789b1edf4726a788c5603e2596a3babfe8ecc62f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(path, str) or not isinstance(name, str)\u0060 appears character-identically in 2 files \u2014 nanobot/context_graph.py, nanobot/context_sources.py. 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":"nanobot/context_graph.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77966c43e9ce088d6d8722b9a7280596ae3414d29cbe89aa2f9f45b3507faeb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(raw_nodes, list) or not isinstance(raw_edges, list)\u0060 appears character-identically in 2 files \u2014 nanobot/context_graph.py, nanobot/session/history_graph.py. 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":"nanobot/context_graph.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"13928ddef44a3660becf665c6bf6a424a06e2fbbf7060ebddd878a5710ff3d0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(value, str) or not value.strip()\u0060 appears character-identically in 4 files \u2014 nanobot/agent/tools/self.py, nanobot/channels/mochat/runtime.py, nanobot/providers/xai_grok_provider.py, nanobot/session/model_selection.py. 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":"nanobot/agent/tools/self.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1d549fae7a2245d342b55b0e254f25f4a9787d4414e31f3ce0dae302ee85d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not message.get(\u0022_command\u0022) and not is_summary_checkpoint(message)\u0060 appears character-identically in 2 files \u2014 nanobot/agent/memory.py, nanobot/session/sqlite_store.py. 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":"nanobot/agent/memory.py"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"074c58fec4925fb41d4ec833d5e129068567b8453cfae59f31b295c6c3f3753f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not request.session_key or not request.persist_session\u0060 appears character-identically in 2 files \u2014 nanobot/goal/tools.py, nanobot/session/turn_continuation.py. 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":"nanobot/goal/tools.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d407bd465de7c38a9098a4fa015af16421e347e5910e8cccd8c4902d6947cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not result.ok and result.message != \u0022gateway_already_running\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/cli/tui_launcher.py, nanobot/cli/webui.py. 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":"nanobot/cli/tui_launcher.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d5ccfad5f564c76dba10a3ab859c02b19b1905c577daf04f7eeb355f347544"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.config.reply_to_message or not metadata\u0060 appears character-identically in 2 files \u2014 nanobot/channels/discord/runtime.py, nanobot/channels/matrix/runtime.py. 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":"nanobot/channels/discord/runtime.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bae8d15a4e124d636e013ccf1d6e5833b4d8c785411ee7d85e5e6c9976ffae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not stripped or stripped.startswith(\u0022#\u0022)\u0060 appears character-identically in 2 files \u2014 nanobot/cli/gateway_runtime.py, nanobot/skills/skill-creator/scripts/quick_validate.py. 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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f80bfbc75dc81b8fed502fa904ca50d6018f13a116af4d6372b0be578d9af12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022LANGFUSE_SECRET_KEY\u0022) and importlib.util.find_spec(\u0022langfuse\u0022)\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e4c89a4627a423b0355bae5a7d83a2bb13b2858836730840b86d04d1e40050"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed.is_prerelease or parsed.is_postrelease or sequence \u003C 1\u0060 appears character-identically in 2 files \u2014 scripts/release_candidate.py, scripts/release_plan.py. 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":"scripts/release_candidate.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"04985057421694c70869a516834aa6b380c35a307e30a1d923ae4233690e89c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.is_file() and not path.is_symlink()\u0060 appears character-identically in 2 files \u2014 nanobot/update_fallback.py, nanobot/update_uv.py. 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":"nanobot/update_fallback.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb8b116c354bb492640c753494cb0b288d0d395f188839e73fc4382fae0204d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload is None and response is not None\u0060 appears character-identically in 2 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e4105bae92b8a453a495d0056c740e9e477a397378ff23ac350196d4591fc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload.deliver or payload.channel or payload.to or payload.channel_meta\u0060 appears character-identically in 2 files \u2014 nanobot/cron/service.py, nanobot/cron/session_turns.py. 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":"nanobot/cron/service.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8fc0d4ad9045c3445d8d51c2ceeecb5f2dc25cb59d06cd3f9ca67f8a24c892"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pending.exists() and read_record(pending).get(\u0022job_id\u0022) != spec.plan_id\u0060 appears character-identically in 2 files \u2014 nanobot/update_restart.py, nanobot/update_worker.py. 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":"nanobot/update_restart.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"479ec2d7fd91e8bd56b72ac1849201ebd29eb7e8c024359762ead908cd0474c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process is not None and process.poll() is None\u0060 appears character-identically in 3 files \u2014 nanobot/cli/desktop_tui.py, nanobot/cli/dock.py, nanobot/cli/tui_launcher.py. 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":"nanobot/cli/desktop_tui.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"be634d93347dff981db76e01b1e979d2d1192ae75a9dd759a444cc4ce7417801"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060progress_event and progress_event.tool_hint\u0060 appears character-identically in 3 files \u2014 nanobot/channels/feishu/runtime.py, nanobot/channels/telegram/runtime.py, nanobot/channels/weixin/runtime.py. 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":"nanobot/channels/feishu/runtime.py"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf81d63cba82138b2a54593b42b12ce41d379bb809d5db17959c448f3384b2bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider_config and provider_config.api_base\u0060 appears character-identically in 2 files \u2014 nanobot/providers/routing.py, nanobot/webui/settings_capabilities.py. 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":"nanobot/providers/routing.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffe2b6c3ceff4a5fd5519c8ef06ccdac0bd76d175245c72fa8e2d879369f8d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider_config and provider_config.api_key\u0060 appears character-identically in 2 files \u2014 nanobot/cli/onboard.py, nanobot/providers/routing.py. 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":"nanobot/cli/onboard.py"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"137e79d80637b820c87a47d1ef51b4b2c6d0bd223761bb4d663ea7c968925cb6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider_context or ProviderCallContext()\u0060 appears character-identically in 2 files \u2014 nanobot/agent/context_governance.py, nanobot/agent/runner.py. 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":"nanobot/agent/context_governance.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0ca30653bfc75b92b40537300d0c292da5afae3e5ce8e5f7e7f08abc7ec6a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060query_first_alias(query, snake, camel) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/webui/request_settings.py, nanobot/webui/settings_models.py. 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":"nanobot/webui/request_settings.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab8ab6e89972b5a716eba83e75d432018fdcd185ed5acc98bdf359aca287297"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reasoning_effort and reasoning_effort.lower() != \u0022none\u0022\u0060 appears character-identically in 3 files \u2014 nanobot/providers/azure_openai_provider.py, nanobot/providers/openai_compat_provider.py, nanobot/providers/xai_grok_provider.py. 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":"nanobot/providers/azure_openai_provider.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0e695bd0c4e3daae4f1b6a656d4b421bbc3a256f92635c153ce23ba5c6ffce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reasoning_effort and reasoning_effort.lower() == \u0022none\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5fcca4c97e5f4ec544f27fbf48ce3b01e4c17532c6f3b638fbbfd5a6a942f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.headers.get(\u0022Content-Encoding\u0022) or request.headers.get(\u0022Transfer-Encoding\u0022)\u0060 appears character-identically in 2 files \u2014 nanobot/channels/websocket/attachment_http.py, nanobot/webui/remote_proxy.py. 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":"nanobot/channels/websocket/attachment_http.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e0ba6a7c0e1ba45c5f07ba6765cd51be2f10f605d1b88d021e056097792f94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved_config_path or get_config_path()\u0060 appears character-identically in 2 files \u2014 nanobot/cli/commands.py, nanobot/cli/provider.py. 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":"nanobot/cli/commands.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a0c3657ad41a73a5e525e4042ab9afd430756f3cc7d8060d3713cc452bf756"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060section is not None and hasattr(section, \u0022model_dump\u0022)\u0060 appears character-identically in 3 files \u2014 nanobot/channels/weixin/connect.py, nanobot/channels/weixin/runtime.py, nanobot/channels/whatsapp/connect.py. 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":"nanobot/channels/weixin/connect.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1fb62d138738b05b40bcd5ec1ea868dc539e4992dce6117840bb6acde083de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shell_program or shutil.which(\u0022bash\u0022) or \u0022/bin/bash\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/agent/tools/shell.py, nanobot/execution/processes.py. 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4beac1f0620017c0e88d30ffd3c7c8faac9f8ad538d9b732592ea561d473acd7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060skill_context is not None and skill_context not in blocks\u0060 appears character-identically in 2 files \u2014 nanobot/agent/context.py, nanobot/agent/loop.py. 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":"nanobot/agent/context.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8990b9b970b6013f8dbfcb3495c27eebe9dda4a27a1d630a6ecc2a6b059d8802"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060source_dir or default_webui_source_dir()\u0060 appears character-identically in 2 files \u2014 nanobot/webui/build.py, nanobot/webui/dev.py. 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":"nanobot/webui/build.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0a86316233a01d912fc1fb33767a5f0aa967d92e0c044da44ddac624a650fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status_code in LLMProvider._RETRYABLE_STATUS_CODES or status_code \u003E= 500\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/xai_grok_provider.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cc453e7967710dedb64aebd47a41fd05e9732ebb810571ee00adc4e7813128"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status_code is None and response is not None\u0060 appears character-identically in 3 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/azure_openai_provider.py, nanobot/providers/openai_compat_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"28de96edbeb187b8182e0fc3540b57a8ab407c14d77bb406a6031b1da85d5288"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status_code is not None and should_retry is None\u0060 appears character-identically in 2 files \u2014 nanobot/providers/openai_codex_provider.py, nanobot/providers/xai_grok_provider.py. 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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ed69fc64126e7dd62ce3b81212380ad78b9b44eebd4845a9cf28de30a21d19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream_id is not None and buf.stream_id is not None and buf.stream_id != stream_id\u0060 appears character-identically in 2 files \u2014 nanobot/channels/discord/runtime.py, nanobot/channels/telegram/runtime.py. 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":"nanobot/channels/discord/runtime.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5323d6fc4ffe42b9467b8c4cc43c2df0d09dc7d76641bea71325377c17fd66e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool_choice is None or tool_choice == \u0022auto\u0022\u0060 appears character-identically in 2 files \u2014 nanobot/providers/anthropic_provider.py, nanobot/providers/bedrock_provider.py. 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8ac85ef8c4ee0ca8146989c091485f7d08ac2bff3bcb9cc3f13d8b120dea2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage is None or usage.total_tokens == 0\u0060 appears character-identically in 2 files \u2014 nanobot/agent/runner.py, nanobot/providers/base.py. 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":"nanobot/agent/runner.py"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ffaba685584bab3715d5353adf9a63bc50d811e509f7c730513007d9350c8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value is None or isinstance(value, bool)\u0060 appears character-identically in 2 files \u2014 nanobot/channels/whatsapp_agent/protocol.py, nanobot/channels/whatsapp_agent/state.py. 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":"nanobot/channels/whatsapp_agent/protocol.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdffca553fbc43a01c427dd77ae5c68efc9cd93bd173528f6dd0bea5c5a82af"}},{"ruleId":"X14","level":"warning","message":{"text":"IP classification is bypassable through an IPv4-in-IPv6 embedding: This function unwraps IPv4-MAPPED IPv6 (\u0060::ffff:\u0060, line 55) and then rejects \u006010.0.0.0/8\u0060 on its IPv4 path \u2014 but the IPv6 decision at line 54 classifies the address as written, and IPv4 reaches IPv6 through three MORE embeddings this function never mentions: IPv4-compatible (\u0060::a.b.c.d\u0060), 6to4 (\u00602002::/16\u0060) and NAT64 (\u006064:ff9b::/96\u0060). So \u0060::10.0.0.1\u0060, \u00602002:0a00:0001::\u0060 and \u006064:ff9b::10.0.0.0\u0060 all name a host inside \u006010.0.0.0/8\u0060 \u2014 the range this same function declares non-public \u2014 and all reach the IPv6 decision un-unwrapped, taking 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":"webui/src/components/thread/activity/web-url.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e22c6ee10c31bdc8924e54cf5c95089a6f5ad70b74b6bdc9541d3bd691a1592"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitizeConnectionFailure\u0060 is exported, takes a document from its caller (line 100) and hands it to \u0060collect\u0060, which calls itself at line 112 (\u0060collect\u0060) with a piece of \u0060value\u0060 (and at line 114, line 120, line 122) \u2014 and nowhere in \u0060collect\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060collect\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/client/connection.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45be7f61e0250b134712ff8c3927217e013c996299789dfb43039d4d7f34bfa"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_request_secrets\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 71 (\u0060redact_request_secrets\u0060) with a piece of \u0060value\u0060 (and at line 78) \u2014 and nowhere in \u0060redact_request_secrets\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060redact_request_secrets\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/request_settings.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d196e88173c229dfefc3dfc3e2a6e49fe6a8fef5ceef2eedb3a29fd235ed490"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060restore_request_secrets\u0060 is public and takes \u0060submitted: Any\u0060 from its caller, and it calls itself at line 94 (\u0060restore_request_secrets\u0060) with a piece of \u0060submitted\u0060 (and at line 105) \u2014 and nowhere in \u0060restore_request_secrets\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060restore_request_secrets\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/request_settings.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a609a83d71db2ca448676a5717cb206ffc466b9cac7e5e55163a1be9379ec"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitize_surrogates_deep\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 83 (\u0060sanitize_surrogates_deep\u0060) with a piece of \u0060value\u0060 (and at line 92, line 99) \u2014 and nowhere in \u0060sanitize_surrogates_deep\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060sanitize_surrogates_deep\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d65be520772c5e27f57d186c5f28b61716d01a9ad9fee31ac2fe5cb798f2e7"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060merge_missing_defaults\u0060 is public and takes \u0060existing: object\u0060 from its caller, and it calls itself at line 178 (\u0060merge_missing_defaults\u0060) with a piece of \u0060existing\u0060 \u2014 and nowhere in \u0060merge_missing_defaults\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060merge_missing_defaults\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/config/loader.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"193f5a06546f42f1898e8fc3e0782a7d2d0603b01836b2c747b8c687b45c047f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060from_config\u0060 is public and takes \u0060section: Any\u0060 from its caller, and it calls itself at line 94 (\u0060self.from_config\u0060) with a piece of \u0060section\u0060 \u2014 and nowhere in \u0060from_config\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060from_config\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/contracts.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d9bccfa758bf581b784157c61a92e6aef3d6a49f94605dc887007162dd73ba"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 6/8 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: refreshAssetManifest: \u0060refreshAssetManifest\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":"webui/public/sw.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"868ecd990a53063f3900fd6f4bb8053ecab22ea698cd5413e6f984d5a7b94906"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchGatewayConnection: \u0060fetchGatewayConnection\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":"tui/src/client/connection.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b9fa5e554d22d4e103014d7a3d7eed3f8dea110e06e654874f018e3487fbe4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e742cdcfb4bc1193577eb771c02a691be46a0f567b3f89af36e107439e5017a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d8717e463087067182604665689f153c7a633b5cfe41ef808647402834eeee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9cbcea1a4df347b3c63bdaa6b032a7ae6e290fc3f1cb5b156ed08df6cea3b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda796c2950ca1229f1ca5996dfeb7a6087c3e4014be1c598346695b9715df51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca81a9b3458984e1a15d7c6d42293dfc0b1f7a4a0b7f02adf19f5213d8e1f2ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc291505a4e9498c817ea4f46b49976154d9009aecb7cb7a1ae673b98409135f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef63e6cabf8e78e78168181e25748f2684b0c8fb33a24a3b56b1ec1a6ae3b95"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"24093a9cb48c1133b989ca756f19a9a6fdcd5c5197e943fe6cfb6ab3272e4465"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e24b2de055e008bf87bd6945c235132928aa0b0942c265d1c5fda4dce3f0d3f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20cbb6b3812de409cec47ed29d9e50976bb5e126a9bfb7bbd1b7a9f4ac33506"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/main.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e94588fa903afb8f33d1b327ba94a2b7b823df5dd1e0515bcff73a343e4f00a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/workers/imageEncode.worker.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec495a84d5a84475f1e6db05d2609e7d50cb210d1cad15bdc98445287ddbd27"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"999c48fb9f6e7389c587d9ff43172da5aa2cfe0add037782d4fb02b7fcbd09b6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada60407ea4ca4d9f4d0984f59024611a569e508d0ce5f02587551faae371dd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/providers/UpdateFlowProvider.tsx"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"262878dae7379be72a582edbaf2a849fce71fbd9862c21e07a2e588a6663f3e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/api.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e373c585e93770b362e40a617731dff822775d75fd0d7b5828e7e8b43ef18b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/bootstrap.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ef1372c96c703dfb87a6c99a353ff803d53048fa6983cb41228919aa13c64d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/bootstrap.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf602ebacfd15757e9712f510d7589fe0d6210dd65fc9158540917947ca8b7a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/clipboard.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc81c1bfe8a9d563a6637ee52ad1c481ecd0ae2bec63219a93aa9a9addfcbb2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/composer-draft.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"951c1412aec122539621e99d4793899ee050f865d202a32a0eb753630cb217ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/composer-draft.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4061a8a4822306809782e9ea917c79d6209f78ddeab82969e79a79daf4b69a22"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/local-preferences.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4feeaf7998d5f6ea1fb1698170c69d31bf1adeab1965356de3f1c15698a8502"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea23b701a884cf433b187782d6fe38e1887814619f809d1dd6daaa1e27ab7a12"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cae2350410ce7209deba68d91b8d540bf35b6c4091bce67ee71dbcfb93147b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcdd1a914550b75ca611df30e9e72c7497a5672f3a135e05e6055e6c302b608"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"4035f7e71d8980f6ebb3305a57792ebc38406379237c61c3a2102b62be83f9db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3562662c8b342dc8611d06eaae07ba666c8d853675c1267073b856abe2769c42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0249a4c38c9b0f101ae3c2b7c8df4ba5df10c40e85103eddda818edee368c1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b327c6219e91d7e13fd8d27e0423d7c4afadf3dda4e6f373f4c4d355f8f0305"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/notification-sound.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b38b4cc32e5385c718889d6aba90733e9abdebd050091870a4f042969654ed2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/notification-sound.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d2e6f35d8244423c6c9b7eff04539a2d4f321e1382d91794402a1c609ce983"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/reload-cache.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ea1da485db1fb35c0c163ab4ff2e80789261353c49bc2d8fbcf59e0d4fa55d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/reload-cache.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf33602991b006080147ee4214f35221e845bf8a85df63d3b0fcb9f53e14cf89"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/remote-instances.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdea9d5410808ccbe0d85c39de6e7f1ff792722ddecb85121c43d23b260e94e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/remote-instances.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f183f7ca939dba643986d4ba76fbbe6b7c779147406a4a2b87cc3cf3bcb778bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/i18n/config.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41cc78748a87e2890df6d66de490cdacf173562fb251b424689c5ddbce5c108"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"58469d918b1f4101607cc20cb47aad234f9a72ae87231e231c22bad54eecdfc7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ee6f319608812460ea8c615137db9e7a35cdcddc46ae032b0baa7771a49a4e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c26e229950fbe7f1fe9098214adc6045b963e0f3f106b055baddf5350da8d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useAttachedImages.ts"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5d2cc396dacfc29d3b63219a277768f332cab1ad1e98d74ce0984bdb4aa493"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useNanobotStream.ts"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f5fe132c685fee141d1138497b80c1ff916ba778c7a91309ee06328d247fe7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useReconnectRuns.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80624820155ca2c36e4bc732295e5be88ea7a5deff96bf28c18f2e261653699"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useTheme.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"974992249fee3e978a0bf14f089ff9578691bd02169ce82264dc261d63f94b64"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useTheme.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa6755ea61e2bc9f06dbb8b7513f7449d30d697128f19963874d3c762a31cca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useVoiceRecorder.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e7f1f9b5a56801d5b52e3b5d62005a3e697bb42675a0a329acf55afadd4ba2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/BrowserNotifications.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"95226148e3289d0d09b79b2c19269b36ac4c1f0d878801f274c98acbcff9fc14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/ChatList.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cc0270f9907f1df199647f312f8116d42cf19e16208c3d370e76d484febfc2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e953a8b62f01ed2c6001e43605c3914f5e0eec001c191b6330b8368f064cba9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MarkdownTextRenderer.tsx"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"4822457f7ca2f5fc63829347d99480521999a1ae2e519eb40ab5d0d765a64a59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/StarPrompt.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fac05cf92226240e4262dc72fefb3a821b4334182cddcd891daebe131d8eae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/StartupSkeleton.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d60e6473e30afac43645278ba3fe3b5532e0da7bc4ea0fac5a6b989f000432"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/session-transition.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb22774f4f0a720a382e654ae22a2ab7515b11b3eb78de2991d8bd9e6241da65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/thread-camera.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8d204ac55f01b665a3736306e0e7d535210e7186a8053914aeaa58601a159a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/useQueuedPrompt.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"634674d79198c53a6bf5bf6790c1b7fbe8c9ca801cc45cdedd607a9cb4d6b5bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c5b0e9226741a4bebb1f42a3a13c4164975cdaa40fe357bbda87879ac586bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/SubagentTasks.tsx"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87e4fd2de86aeeda351b64685ac5ca26f201e84bdcaefc43658ec5fb678accd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ad8bd59187f014762ef9ec7ed035a71061a8a25423e7e972f9f1923f0303c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"612bd62dfbfc24113063618fbc6fe4aea94bb5e55e55bbd3125e80006884992f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"399f3d015441fa950cf4393d982f25a8e567d8177309959ae712567a4cd837e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88c6df37e53cf8f25758662bbc57a99d1e6bf9ea31d4268f20cb5d6384b2aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5924efd98008bb10898ac29ebb4b739d0472330bfd62099691dceec7822e3e20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/TokenUsageCard.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162773195d588438e86b9edf06dc18ac1645573877e91d89494df0f34367190"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/TokenUsageOverview.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"12160006fb84fb97caac04a4f77de435fb85120ec720b675f20e8f4c53627cd0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1efab6ac9866127ded4c4d5eab9f65690f8582cee3b4a0d44d0884781097a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"12696208250905c4d916428a30397b8c7ca7add2747b570ed48598fecd875f89"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f6aab2761a66573a2bc0758ff9cf34e3d49f74f9072cf440c55a0711593a62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d745c43b22585405f2429e58c47621fd80e4480499735c0ab730f63c6732081b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"555a52bb6df2e4257f0f12487d6ca090fac371a7f33ad8ed1df8bc1dbe33bdce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bd440f9d14a114666c3c37e68e3d40c9f2da867185172c6b00312ee3116718"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fd58183bd4f6799a3076285738b51a128cf96043eec4d12a74139470114a2e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/models/useModelSettingsEffects.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cc8767e42fccd572a89506e0443ab7247ca423e2456a4b8bb074511184d408"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8454a93fc34ff25912a4d7495cd5688d94524b5a02aa32b6758384946dd7f917"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"94251c49e52017388fe401d1c7c76a49152e69ffc6b2e48a63a42730d34a70f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"053a7bd6a2c626ea1bedd57fedc74a907a0d06d31a16232d44011aae75b0c428"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e2623863154b95e18ad35125a7c0a29a887d4c960150bb88fa4f38a1b11342"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f1e040e86d11ad27e3a9208302eae916f739a4fb0fc5f0468fa01fb13e6e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/useHostSessions.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea850778659a4a6f801af50a37c7614da8eb80977689123f7d27debb132c9d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13767c1ca855a2c87690ef7e089ea16e53f8be8efeb4ae82a1859323b2cc9df"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/RemoteConnectionsPage.tsx"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"de665ed52821df6728e4d02a9211f7d906de0f4d0f0e62738b720db3d43d3bb5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db0c276942968c06ce2b8c6d36fd9ef27b3616896fc6d1056a4f164e33431cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/remote/RemoteInstances.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"085e75cc27d719114c6125ae4f4d231d35f96d75bfb43771f1c9a6afde5a958d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/markdown-diagrams/render.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17509b3b23d65fa557408f1bf4e4cd41fdbf4083267e57e1847de11f5c94a5b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/public/sw.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a7475c77e5e00380f6b832019ae00aa9375cf333bcb5338ac7d41bf563180f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/public/sw.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"254d6b3ca24195bc1a6bb66f7170b9050ca7cd010de7c1687df2bdd0af52d4a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/views/diff-viewer.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80d797e3431bae7167d823065b6be193316f8c588836b69cda863e475c9d75a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/views/runtime-controls.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b06c49f013a7632a9635f4432b4a02f562737200e7dc4322bd4414c7312ab29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/rendering/transcript.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1296b1e1592623cb53f93139e1e967a0b61a69520b4bdf5841202da102abcd6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/platform/clipboard.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad5c750c1ca08606ded067cb2579a74aeb18a2de786a0573c0f229268736ad3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/platform/host.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc80d9db614e480b90847b312bb3fcdc70b1121fe76d44aa4bfb556e45a7f123"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/client/api.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3423a3eebda73b3c125d17fd4dbe6748c6b3b7f54884f3221f36a556ce3c3e37"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"da57e4e698ab74b158baf55c464689206a9205f097962446a6de83ff0336197a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"87baacc4a6ab488ffe6795faf5255440071eea50fdaf2a07bbafc729e4d39907"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db8a619bc6f2bcb482c2644b5567335b2963cb8e0bbee9da8b137650ff84d75"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5b9dde8fba1882626825b1e270788321e520a489633135ad8ff430eaf1c79"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2419}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fa65f9fa2f75c6f6a3ab8d700a546d08fd8acbced963131c9dbbb9f240445d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2527}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fe7a0089f92152b1834cb43e130745f578961e5bf262bca3646a8883b789cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d025b28c4c66d1f73b56ef9352e0983945ee8b5e7b1ec7671b0fa9965504b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app/app.ts"},"region":{"startLine":2637}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b831b3f63dd30f3bb9656b58a4b62344b6146c18ab32d043d9f3d01941a26d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/cli_apps_api.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae95178e959c8791c9099b81534b0dfb3a257d88bc75030387a67a3e5a04be59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/http_utils.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c51b436a6a67bbc0bd00b35b4453f0555e39421d92c63f91671dca8c376475"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/http_utils.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed0aeaeffa080de660ebd199c93db1556ededf0460ef4db8c1fac4bbfd4540a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/mcp_oauth_api.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc496afb75b29e020c38d9f53be6eef4d116ef4af71ab3c9ddd8ff0b94c50e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/mcp_oauth_api.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f2cfa0416828dcca95cd0f95ef31d6eee1a00e4a01f1d285a95a8f2e74471d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1100f95caf7cf1f29f562036c50b406437717e5243ccf5b07a2a8eecb7bc89e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c694d7c966f798bc7654cbc76bed19af8990aaa77faa7e23840efa3cee7b33"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bf391880e3599902fd435165656ae4292460297f5147e7ff40d01e460196d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/ws_http.py"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8869b33be6b217a6423dfd3155846ec9ecbc9a00dc6095aad4b8c4a246e14846"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/file_edit_events.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e461546266260a692225d9c2b1e0ff633396286d37cc9d282f1da10c901bfd65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/file_edit_events.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44c435d74b4764b083fcb4d95d44ce439066a77a08def042a6e6cda326ea8fa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/file_edit_events.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a7cb60e16731f121ffa1a94b5d4abb63f38ca0f899f21eb617d31b3f296525"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/file_edit_events.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5832ecc2d42719910a3f3a59ca080fef83276f118ec107df179e07c248954d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a09801de68f7b44fcd537a286e84694bab8da908ba257e80eb4071ff3202752"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e801baae0fbfc3e99b99e83b824a9cb26ba0bf60fcd7fd3bb66eabb087951a19"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b778f52e225d44945286ecf70fe1f42fd329a64f101cc93cde8911b3f14c708"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc90762322eb100edb17ac845654d8b5a5e9d242181daa6e288853a5ac15d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/media_decode.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2896894a6cd2bea9b9892d7cb558f3a73610b250d320d2163fcc86e7df8ff45c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/triggers/local_store.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cd4c148f0709afe519bd718daa0d6ba03077d4d897794d2fa2502d4c96ef70"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except BaseException\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/session/history.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"847c24644f348cb5dd5cdd5bf0a9232cf42f0be68587f7f9b8711ca636c4008d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/security/network.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"965c9a8c1afdefba98379412a7e5a713e236447491221cc6df261e3fe0400016"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/security/network.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd301aaf94c69151ea9886db4ddfa4452e29e9fbfabcc84d91bb9f7c50c448b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/security/network.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a86d6eeed549de76c9600db31406df5ceb7e4750780f7d4a79074b2fc4b744"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1e8524d91f31bff1836704cd911d9389e392ba1bea9327dcc2ab543de742db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060aclose()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/azure_openai_provider.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7773a87c983c331708eabd1ad217af4a888943e5ea768a31a1b3db15bc6089"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/base.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf2ca9e86889f49db86def523623565beb3e8a556cf12aee9b7146f2a3cd5c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/base.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afdbc02b3343198a3be087eca67039bc49f6f168265fabfa28236c12c8323da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/base.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"3835c60155698c466e29daab7eaa9001893a3dfd464abdc18694e8d7414cd72c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/base.py"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c11fcf3ce9b017783517214bc2005a86a5bc4d4f6714ef408c841adac26b8ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b741ac8a0e7c1751e8e493fdadeeec05775ee353a461e0357d9ca213bb7ecf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/bedrock_provider.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1e0ae8be9317caeac7508a96248c07529806afe8f5f8d8e0ff7cdab0d87d86"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/image_generation.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5a523ac6520a401739cbc13375564523613f74cdc4bafe5be7d8b75bceb513"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_codex_oauth.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b34c5d335aebdb1fddf91998cbafcad0209b321531725a3486e136d076e30a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1610da7b213e727a9314ab8bb3f596ca095781e8c643125a570d2e4396adab44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cron/service.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e460a7a4df4169082ee37ee3ffe3d0434688d1534ba28f634ec0be44d00d08"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/config/timezone.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c386b44fbd59f74a3e16f6253f216d890d8aa736eb749a582fd1430e4bfe472"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/command/builtin.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a304d112ffe03915c652dbbfeab72e232948c752923b36dabba5d5e84914c9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/commands.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"15aa1a6377f36f499c1412e44eca1d499a8c7c240ab9e38ef39b8f7d6f8a625d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/desktop_target.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bba44bbe27ca809cc9cc722e62bef7747ad5b7a90d337d4885658fda45fe25d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/onboard.py"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d630a88cae57637f2b3f08cf2b0e96d4a5c0a076dff63a6fd85fb3ae987b0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/terminal.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"834559c1df232bad1cd6b05c3c1cb1d2b3cc2d7e0e69bb0a01f2c1be330a10f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/terminal.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6650e38a1ba7cc02e5a41172dc001b32e45a905eb56d677d302f262f62ac58"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/webui_support.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae21fb8e2604bfcadc2d9be070f0d4f51b1d74672a925c57cf2662a50cd41a9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/webui_support.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1df50c65ace533d4b64b05d7bec756ad4f2b273c6dc43b134c276270d3ef8eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/whatsapp/runtime.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"156286fc4677a801ec5f0909d28c972a6016e8714266db393c3cb3da69d503db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/weixin/runtime.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20319d88fa15f08f69ac5002faaf89f70c4a27f8df2b94574c9ceddb861d438"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/weixin/runtime.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e96c534c50738ad126763d0a9624a0455d3bcc92cf5c3183cbde5a3ab300618"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/signal/runtime.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eac632285fa9d0163367953ecb6e310f6e9d857939e2029f152eebbe212cdbc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/qq/runtime.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d9962db1faf7be77b0ed9569b15598a99de7fb4ac2d397d0ab8746de05aea1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/napcat/runtime.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"536a07de102bacf2f586a71912b2dbcac17fbed767c6a18f6b3cce574593d2b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/napcat/runtime.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce33c3d5f8568f92bbd8d376879fe99ce1585a3b116001c59efb832fdb3d131f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/mochat/runtime.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd87dcb764493f72e6da4884604705ba585750497410ac43d87344b27b371d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/mattermost/runtime.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"393a89b97f9d8cf15423802432128d4f0f446a57609cd86182eebb7083f7f47c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/mattermost/runtime.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b174381a0dee22f605fb1e941bc7c3f695a9f29c924be5c78f7b527b3c9b29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/matrix/runtime.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"06162f828fc2a83e0eff4648628d66542b2cba4568388ff0a4fac7d5cf34938c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/linear/webui/workspace-store.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afc950807c448a1d3962b2373d97757b07187ef0a8f6760af3ef0da424ef31c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/linear/webui/LinearAvatar.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc01e753e0839062b49e1b30a9f936daed07adf061cee23d36cda23dffbd56d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/feishu/runtime.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"465f2e7a2cf7f75b09ee9ee506983f872d3b93bb9e6b414f4bed1681e090dc7d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except BaseException\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/email/runtime.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d8bc52c5e2430cdd385cfa55775dde86e5f9462c393274722bd3bbc0d33397"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/email/runtime.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"c150cfd21cbd13c0a870dc8706649c9d30e1f4245abe3a3e4a6e1aa26e15d298"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/dingtalk/runtime.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44e9fa6aac2dcfa8e8c52ed469ba5069b1a69838480e92ac0058feb8a2859c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/apps/cli/service.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c4c1d40b84ad90423e5b705a467f9562a65eb32d6dc07ff49118061e41d5a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/apps/cli/service.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef04a0a54fc71b56a6683913f462630f5fc8c3d3b0289cde34da13f611658e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/apps/cli/service.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d199514ff7e723b5715b30016df52723e8d3c8eb7e4a68490c98a2a107253724"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/apps/cli/service.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"1440222385e36952f00421ef6dc08d1b96d54f37591f91b63966ebc08ecab8c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/apps/cli/utils.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02f4b81b38bf0508321d1b0354cc84c4cd9620befd7160c171da1cecb6ed252"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/loop.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d472998df7308e910681b08ef947856a46dad118c87b74b498134c273e1c68"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/cli_apps.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0521f98956dba157e6f56f772a7c3625087a68cf35263e49fcf9147d9e6bb183"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/loader.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d3b1cab213c31c2bb502677c788070aa1ad440eff0002c79e10cd0bc6e49c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/mcp.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf35dc54a5362ad6f3273b6d9bc4c998a4f987e8d9669b6c12dcaf33dd749922"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/registry.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3528688db085b843d10535b828f81c7c514023b248115d86b5a36cd22fa393"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/shell.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"035030b271878e3559ba7483689281a8c63f5160b7efe6ade96568c6d5331172"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/web.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1482dd2c59013a240ea689d0077082d41781a020d8bc8b271818e6087d150e91"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~1.7 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 167 assertion(s) across the 95815 source line(s) of the 512 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: webui/src/lib/thread-transcript.ts (40), webui/src/lib/thread-page-fragments.ts (29), webui/src/components/thread/activity/PierreFileDiff.tsx (9). 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\u003CLoader2 class=\u0022h-4 w-4 animate-spin motion-reduce:animate-none\u0022 aria-hidden/\u003E\u0060 under \u0060busy\u0060, but \u0060busy\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":"webui/src/components/settings/notifications/BrowserNotificationSettings.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a1d32231758da29f881aad53d27764fb23285c20e0cac3d3fed3bbe7c0e33d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_parse_nanobot_metadata\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/agent/skills.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6454aef9a179c8bb103627a89ce34d5c270114b174f3ed150b32d84a0b9a248"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_redact_url\u0060 swallows every exception into \u0060return \u0027\u003Credacted-url\u003E\u0027\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":"nanobot/agent/tools/mcp.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f421ad821d5568ea3388046eb786372215b9636d53b432e945d63d9247b85ca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_redact_url_for_log\u0060 returns \u0060\u0027\u003Credacted URL\u003E\u0027\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/agent/tools/web.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5377ba1ebd1cb6d8a5f010c1f2941f1836c5dc8f70e4354912ecd643f58e5b47"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_deepseek_error_detail\u0060 swallows every exception into \u0060return \u0027\u0027\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":"nanobot/agent/tools/web.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2533e82ecd9a85ac137e8f1888da111b66ba881149fea470c4d50f57db293734"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060runtime_lines_for_request\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":"nanobot/apps/cli/utils.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a44ac1763758cd66fe4141488a9779d58b6ede661be0e6f89ea973ad154b9b1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_tencent_public_host\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(OSError, ValueError, http.client.HTTPException)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/cli/remote.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab704e107b400408edf48dc76561348be1cb62ebc3e5679b20c40939da53bfe0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060detect_system_timezone\u0060 swallows every exception into \u0060return \u0027UTC\u0027\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":"nanobot/config/timezone.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4700a6ce3dc768f098419607f84f2f12d14593096f6ffe064528fcaa20e45684"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060tool_arguments_object_for_replay\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":"nanobot/providers/base.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f3f1fd65ffa0460397033759d35967dba6d2ecabc3e6f7e4632d3bd6920570"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_text_from_chat_payload\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(KeyError, IndexError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/providers/transcription.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3c7a86f01e7995039ebc788b95ce92f484992b81c0e7ccdf9cb4806143e4ae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_xai_hosted_tool_arguments\u0060 returns \u0060{}\u0060 when \u0060(TypeError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3b54ac576455c85620f800c45c6f2274981e6f2ebf5765ed007b7574bd1546"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_decode_access_token_claims\u0060 returns \u0060{}\u0060 when \u0060(ValueError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/providers/xai_grok_provider.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13af2b9578dc16b3036c58ebebaccba97a87118bd9218dcb958d052aaaceeea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_observe\u0060 returns \u0060\u0027unconfirmed\u0027\u0060 when \u0060(OSError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/update_profiles.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e4e3aea199afe5de823f0dddfd1c24a7df048136b310e8df237b33e151c3cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_timestamp\u0060 returns \u00600.0\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/webui/session_list_index.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b69106d917b4a16bbdf6d15ced54ebfda97846b5f61daed0f38b5cd1c06957"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_nanobot_metadata\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"nanobot/webui/skills_api.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ae28d747f44bd64b32678d20572aadd9013cdf46d13286bff3e30c6a42aab7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060connectionEndpoint\u0060 swallows every exception into \u0060return \u0022local gateway\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":"tui/src/client/connection.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"33660736d6aa9620293b4bf2c56d4401aa3fe0da69141a115a3abf2a7150fb39"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readSlashRecents\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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4b1c07295874cedcb0e86f4e4d310695dd6cc47a33268f1e187b37b04f4cf7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060toolEventArguments\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":"webui/src/components/thread/activity/exec-session-model.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b682a9f095e919034be249c734dab9b95c0e64c15bf7e4f11472766dceadef"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060toolEventArguments\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":"webui/src/components/thread/activity/web-search-model.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c23143228f7ba93bfff5cc0ad99fcea60fef7902ae391a073d34b1a640f1a57"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060traceFieldFromArgs\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":"webui/src/components/thread/activity/trace-activity-model.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"317620dd0b27c9aef38f3961fa8613a55910bdf9986899aab0441ffaeace4ebc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readStored\u0060 swallows every exception into \u0060return \u0022system\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":"webui/src/hooks/useTheme.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"521435adb198a4012042d957badfc4b2b65b043304c9099a4fde612ffed9722a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadSavedSecret\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":"webui/src/lib/bootstrap.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62f9790d930594e6c7e90e1369b9b487b13cf1fba85b2031920c43e59d7254d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060enableBrowserNotifications\u0060 swallows every exception into \u0060return \u0022permissionFailed\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":"webui/src/lib/browser-notifications.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dd85dab73d2b9f4712518ebd754c9c973bde0af70dda2bc28a52464de6f1b4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060submitNotification\u0060 swallows every exception into \u0060return \u0022workerUnavailable\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":"webui/src/lib/browser-notifications.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1dd1414f299002e9bef32e73f70b9227a661c49611d12a449f55afe591ff8c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readRecentRemotes\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":"webui/src/lib/remote-instances.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2129b28cb4e221b0373b61d24f43843aa5715fd10664335288acfc6f8970d909"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"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-116","guid":"c0134ca8-adc7-6959-bd17-5253a265d101","name":"Improper Encoding or Escaping of Output","shortDescription":{"text":"Improper Encoding or Escaping of Output"},"helpUri":"https://cwe.mitre.org/data/definitions/116.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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/"}]},{"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-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":100,"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."]}]}