{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-1059"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"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":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"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":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.ThreadComposer (cyclomatic 396): ThreadComposer.ThreadComposer has cyclomatic complexity 396 (threshold 15). Of this number, 122 points are the body\u0027s own statements and 274 belong to 85 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/ThreadComposer.tsx"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"4360d7cf53e7c33c7b0be2ddbfb79c8a74f59ea8734ef2cbd00c0b60a1cb4cf5"}},{"ruleId":"D1","level":"warning","message":{"text":"App.Shell (cyclomatic 284): App.Shell has cyclomatic complexity 284 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 227 belong to 100 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":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e9ce0bf4a581faf49c5d08240ede49b6dc8658385747503e7357ad9fce726e"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.ThreadShell (cyclomatic 263): ThreadShell.ThreadShell has cyclomatic complexity 263 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 182 belong to 66 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/ThreadShell.tsx"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b042e24de491035aeae36b2ce7a8a091066a0c141219b0032f7d1c60953dc44e"}},{"ruleId":"D1","level":"warning","message":{"text":"useNanobotStream.useNanobotStream (cyclomatic 206): useNanobotStream.useNanobotStream has cyclomatic complexity 206 (threshold 15). Most of this is not in the body itself: 4 of the 206 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 561, 929, 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/hooks/useNanobotStream.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a9d4b38075b965efaa951daa069d667b4a39f1872c13ad06668fcb798aa3f5"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatList.ChatList (cyclomatic 155): ChatList.ChatList has cyclomatic complexity 155 (threshold 15). Most of this is not in the body itself: 11 of the 155 points are its own statements and the rest belongs to 39 function literals inside it that branch (lines 772, 709, 514, \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/ChatList.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4374b2028c9fa7156698bd2a98c059c18a3309fef61cf7aa3f300e87755157b6"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadViewport.ThreadViewport (cyclomatic 146): ThreadViewport.ThreadViewport has cyclomatic complexity 146 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 118 belong to 35 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":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbdf3d398e5ae44d9b8141b49fb30e7494bf6dff2598a39131fba4969d55cec"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.handleKey (cyclomatic 127): NanobotTui.handleKey has cyclomatic complexity 127 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef44914ec2d66be50ea8825c08aaae7ae1b1ef3a88192da7cc78ca9c528c051"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsSettings.ModelsSettings (cyclomatic 127): ModelsSettings.ModelsSettings has cyclomatic complexity 127 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 104 belong to 21 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/ModelsSettings.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfffb6a5a0613f794f849594e8382fd4572b38eedd15774b83f637dcafe2d081"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions (cyclomatic 120): useModelSettingsActions.useModelSettingsActions has cyclomatic complexity 120 (threshold 15). Most of this is not in the body itself: 1 of the 120 points is its own statement and the rest belongs to 18 function literals inside it that branch (lines 157, 380, 476, \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/useModelSettingsActions.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2028348a561559b4dcfbbbe81960dfc4841e6cf4c723c962b557b9491a82d8d5"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearPanel.LinearPanel (cyclomatic 118): LinearPanel.LinearPanel has cyclomatic complexity 118 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 62 belong to 23 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/LinearPanel.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ac225389886ffdb190c016d60e157254827df764266dcb7929fc233be9d1c5"}},{"ruleId":"D1","level":"warning","message":{"text":"PaneWorkbench.PaneWorkbench (cyclomatic 114): PaneWorkbench.PaneWorkbench has cyclomatic complexity 114 (threshold 15). Most of this is not in the body itself: 13 of the 114 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 714, 304, 592, \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":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b9f462f819791d49343f1ec4bb47ad54ba9afcd5bc377e0a38f953789d68ec"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.accept (cyclomatic 106): NanobotTui.accept has cyclomatic complexity 106 (threshold 15). Of this number, 104 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.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d38510da667757b72cbd7725f0b36eef2fbcdcbd1de40191402afa4b030ca16"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelControls.ModelIdPicker (cyclomatic 104): ModelControls.ModelIdPicker has cyclomatic complexity 104 (threshold 15). Of this number, 77 points are the body\u0027s own statements and 27 belong to 11 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/shared/ModelControls.tsx"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"682b034501dd2bfe351a49a51134af6c4c5df5ad22b9cf82027a3cb52fda6e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"createSystemSettingsActions.createSystemSettingsActions (cyclomatic 100): createSystemSettingsActions.createSystemSettingsActions has cyclomatic complexity 100 (threshold 15). Most of this is not in the body itself: 1 of the 100 points is its own statement and the rest belongs to 22 function literals inside it that branch (lines 219, 417, 371, \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/createSystemSettingsActions.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4285a6e046ee9ad69e10263ac146ca39c7c5ee62f21a22be8fd79fbcb33a1afe"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.consume_sse_with_reasoning (cyclomatic 89): parsing.consume_sse_with_reasoning has cyclomatic complexity 89 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8181596cd313ad99431b58c3a37a1e2cba2a0017d780a077d13fb9ca102e619"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelSetupPanel.ChannelSetupSurface (cyclomatic 88): ChannelSetupPanel.ChannelSetupSurface has cyclomatic complexity 88 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 47 belong to 21 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/channels/ChannelSetupPanel.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7492cadf30fbc5cad3418c5aa07c68ecf100db06999e5e0d1688584cf21c370"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings (cyclomatic 88): ProviderSettings.ProvidersSettings has cyclomatic complexity 88 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 72 belong to 9 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":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"d891230556759cf71ad6728ad08f1e5a7b3cab30b49ba17cdcc9dfb356282dc6"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.decodeInboundEvent (cyclomatic 81): protocol.decodeInboundEvent has cyclomatic complexity 81 (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/protocol.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1ae78f5a4f4f150707ac6206266d85c96a20554590f8b3753995deaf0d0907"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.projectThreadEvent (cyclomatic 79): thread-event-projection.projectThreadEvent has cyclomatic complexity 79 (threshold 15). Of this number, 78 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":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"25521ff1f9447c3804d19123ccc5838f43f459aa2441ea7754e9e25767c64461"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.consume_sdk_stream (cyclomatic 77): parsing.consume_sdk_stream 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":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"457870ad95ab6105decca0396b4967a9f9902eff66b24dee8939a8e1044acf67"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.SettingsPage (cyclomatic 73): SettingsPage.SettingsPage has cyclomatic complexity 73 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 49 belong to 11 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/SettingsPage.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae3f8a7e7bc3e6117ecfe60ad48da5367cd294f99b35cf8d109358378ba5ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPresetBadge.ModelPresetBadge (cyclomatic 70): ModelPresetBadge.ModelPresetBadge has cyclomatic complexity 70 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 38 belong to 18 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/ModelPresetBadge.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fffff68288a974b648c263ea1145de8442ae89d27b971e99ebfbd184fc32efa"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelQrConnectFlow.ChannelQrConnectFlow (cyclomatic 67): ChannelQrConnectFlow.ChannelQrConnectFlow has cyclomatic complexity 67 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 29 belong to 11 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/ChannelQrConnectFlow.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"65810bc2ece42c1457b088f0f3f9f8e692bf8d1a9706e0557d32267f51eb6b97"}},{"ruleId":"D1","level":"warning","message":{"text":"useSettingsController.useSettingsController (cyclomatic 66): useSettingsController.useSettingsController has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 7 of the 66 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 288, 206, 305, \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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc950415364f230c3eb288058e243690caf318251cd68713510416cae12d2df"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.McpAppsCatalogRow (cyclomatic 64): AppsSettings.McpAppsCatalogRow has cyclomatic complexity 64 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 8 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":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf31e495591edaddacf25376cc94fea0158f166c9e944282109f94646ebeb99"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.handleMessage (cyclomatic 62): NanobotClient.handleMessage 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26cc9ae5303c71d6d677586aa3323147fa0db36c0c0e7a8b8c7ab186c40178d"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter._dispatch_message (cyclomatic 60): WebUICommandRouter._dispatch_message 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/webui/inbound_commands.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bdbcd75efe22e9ae417ee9496e4a98691a202d9c9dbef36e8c63e0fdb5757a"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceControls.WorkspaceProjectPicker (cyclomatic 59): WorkspaceControls.WorkspaceProjectPicker has cyclomatic complexity 59 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 18 belong to 6 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/WorkspaceControls.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b49f8e004ad3a914ffdea7787c78fcd06ff43d5dc4255c48f1c3c96ffcda695"}},{"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":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fb4077505f883fdb288fec423cb47792696fffe51fc21986354b8658a402c9"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._build_kwargs (cyclomatic 57): OpenAICompatProvider._build_kwargs 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/providers/openai_compat_provider.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb6166159a41ab51aefdc2d31c6fbe2acbd91af8f5a92475f0788e433aa80c7"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeSettings.RuntimeSettings (cyclomatic 57): RuntimeSettings.RuntimeSettings has cyclomatic complexity 57 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 8 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/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"80480478d9044a7a020436508528dc6793a14f9e79095fa71202faefd29797bd"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._client_projection_event (cyclomatic 56): transcript._client_projection_event has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c029cd28900d13d3091c4102d4ce59ea1c970bd8aaef9cd49bae45d07c2e679"}},{"ruleId":"D1","level":"warning","message":{"text":"ComposerUsagePopover.ComposerUsagePopover (cyclomatic 54): ComposerUsagePopover.ComposerUsagePopover has cyclomatic complexity 54 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 18 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/ComposerUsagePopover.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecfa0392f9bafd6367aafd93ac0bd31ad8e385bdb054537b8858665c5d167e1"}},{"ruleId":"D1","level":"warning","message":{"text":"useSessions.useSessionHistory (cyclomatic 54): useSessions.useSessionHistory has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 3 of the 54 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 478, 561, 453, \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":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e501b9631d269004280ef6ae987d9b99763070e249446daface20dec517da2bc"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.AutomationDetailPanel (cyclomatic 52): AutomationsSettings.AutomationDetailPanel has cyclomatic complexity 52 (threshold 15). Of this number, 50 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":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cf377d270562af69e434c6114f906699f8a0f08688861ff7f3136814b4a9ad"}},{"ruleId":"D1","level":"warning","message":{"text":"api.parseThreadProjectionEvent (cyclomatic 51): api.parseThreadProjectionEvent has cyclomatic complexity 51 (threshold 15). Of this number, 50 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/api.ts"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2883b5ad277651c91a3f95a577f8806c0f2befea362385d14897bedc7f672555"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._parse (cyclomatic 49): OpenAICompatProvider._parse 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/providers/openai_compat_provider.py"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0809ecb4a5c81dca3a4bec60428d29b96ed468edf75388765ab47490c462df6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRunner._run_core (cyclomatic 48): AgentRunner._run_core 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/agent/runner.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b288cc7fcff82ac346150a8d800857617e1a64270f86597c5c63fbc062b025"}},{"ruleId":"D1","level":"warning","message":{"text":"EditFileTool.execute (cyclomatic 48): EditFileTool.execute has cyclomatic complexity 48 (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/filesystem.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"853726b5621413075700253ce2e9dcfbcef984933ee2069e6d1a60fbf227f1f8"}},{"ruleId":"D1","level":"warning","message":{"text":"useSystemSettingsEffects.useSystemSettingsEffects (cyclomatic 48): useSystemSettingsEffects.useSystemSettingsEffects has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 1 of the 48 points is its own statement and the rest belongs to 22 function literals inside it that branch (lines 94, 205, 58, \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":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6501b6b2cf33393aac8f71dc6c0c29b57b5b0589dc47682afdbd6b624cf4a5f7"}},{"ruleId":"D1","level":"warning","message":{"text":"useCapabilitySettingsActions.useCapabilitySettingsActions (cyclomatic 46): useCapabilitySettingsActions.useCapabilitySettingsActions has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 139, 74, 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/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5977b83e968db5846a207edca05cb963d1cc31cbff7acc86859a876b73b795ec"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.validate_json_schema_value (cyclomatic 45): Schema.validate_json_schema_value 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/agent/tools/base.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0dd28922fbc51cd0d88c8329baa553828a438e0880e29cb5b629be63450b5a"}},{"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":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1625aec3b7eb4b3ce37b5c6aa2f198d444cbd3c7e26fc6e757233e6e30ebefd"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeConfigSettings.RuntimeConfigSettings (cyclomatic 45): RuntimeConfigSettings.RuntimeConfigSettings has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 6 of the 45 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 171, 156, 205, \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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eaa1fa4b05fe6e64293788f2b5c7599c0230677c8b0c1240e676bf38f88c11"}},{"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":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cad83f8b6a974b25f4d8db3dbcbd1a68fc79046f0e08959c36a0efe5f4c391"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentActivityCluster.FoldedAgentActivity (cyclomatic 44): AgentActivityCluster.FoldedAgentActivity has cyclomatic complexity 44 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 13 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/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ad4cd88125feb10f467efc13fbc6cbcbae476e49e48f10578d19420564a6f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.ThreadMessages (cyclomatic 44): ThreadMessages.ThreadMessages has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 10 of the 44 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 174, 144, 154, \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":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5933a78adff30d5cfda6a7e878f1540f4849402792b3b46234906867ea164ebb"}},{"ruleId":"D1","level":"warning","message":{"text":"UsagePanel.render (cyclomatic 43): UsagePanel.render has cyclomatic complexity 43 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 10 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":"tui/src/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67bfc38e458bcb208fab827ecb0eb445a860edc9edead268b05750184fec459"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationsSettings.AutomationsSettings (cyclomatic 43): AutomationsSettings.AutomationsSettings has cyclomatic complexity 43 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 18 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/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5751ff022e5beef0f24e272431c3d299b8fe1712c402bf7777031eea5cd0d78"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.ThreadDisplayUnit (cyclomatic 43): ThreadMessages.ThreadDisplayUnit has cyclomatic complexity 43 (threshold 15). Of this number, 30 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":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d01470da7cc7fe7be2332b5d5bf070c2c0641968b3ae528d540d94826aaf8a"}},{"ruleId":"D1","level":"warning","message":{"text":"useComposerMentionInput.useComposerMentionInput (cyclomatic 43): useComposerMentionInput.useComposerMentionInput has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 2 of the 43 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 84, 149, 57, \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/useComposerMentionInput.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"caee35e3be539270b05373be6d699e6c4dcced29a818a8a2023be97f2150d334"}},{"ruleId":"D1","level":"warning","message":{"text":"FallbackProvider._try_with_fallback (cyclomatic 42): FallbackProvider._try_with_fallback 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/providers/fallback_provider.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b72abd0de0b73992624adc814a0a11144b4bcf2903459294481a25a1f799dc3"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICodexProvider._call_codex (cyclomatic 42): OpenAICodexProvider._call_codex 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/providers/openai_codex_provider.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9788305583cf9db9393022c4f7f1f39323adf9dd2e47a0c88a8c5ca9dbe52ae2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._save_turn (cyclomatic 41): AgentLoop._save_turn 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/agent/loop.py"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6201933b2c3dd535c6cc8d070a012ed58f9ecaaba4de30ecb3df35a885b7c6"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProvider._run_with_retry (cyclomatic 41): LLMProvider._run_with_retry 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/base.py"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"65df24780e5f0eaff87d964ec77890eaef85f143bff3771b2b441d8cee677571"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._parse_chunks (cyclomatic 41): OpenAICompatProvider._parse_chunks 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_compat_provider.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cda720579e381b7e3e0d375296ae4b54dad63a789f2e222bfdbe8f2084494f"}},{"ruleId":"D1","level":"warning","message":{"text":"useVoiceRecorder.useVoiceRecorder (cyclomatic 41): useVoiceRecorder.useVoiceRecorder has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 2 of the 41 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 164, 243, 279, \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/useVoiceRecorder.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b932da88eb1d64b51bd6732c9bf764a60333259b76b0e6dd9a4d91e7fd45186"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageBlockMenuActions (cyclomatic 40): MessageBubble.MessageBlockMenuActions has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1ec88f4b840fd15271e30c9276e3430e1671e827add3144e2c311a6119350f"}},{"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":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6f5b7f492b1b92be0f9f6159fb28f19e6603fbb35e2bcdf9e7d656a623be9f"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.webui (cyclomatic 38): webui.webui 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/cli/webui.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6659c9ba6587c296173091a07250083a3f1d364f1dafa2d76d613ab09727a5b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Session.get_history (cyclomatic 38): Session.get_history 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/session/manager.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e0b3308dd0d09ed1cb8850167bc912ab878e7951280f5723576f0065561422"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.submit (cyclomatic 38): NanobotTui.submit has cyclomatic complexity 38 (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.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e8ec0080eebd81585ce586501f358f04c4f1c3716e8e52391481c09cd877c7"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.AppsCatalogSettings (cyclomatic 38): AppsSettings.AppsCatalogSettings has cyclomatic complexity 38 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 9 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":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c56c0dd776e6a0a44272da205b126cfde19ed26b3cf43d90dc404b97d22e9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadFileTool.execute (cyclomatic 37): ReadFileTool.execute 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/agent/tools/filesystem.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"070e2ae6d5a2755b10507595d38fb6a23884e7d6fb9274b84eeb22443639aa17"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider.chat_stream (cyclomatic 37): OpenAICompatProvider.chat_stream 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/providers/openai_compat_provider.py"},"region":{"startLine":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"b605ed53e5a8d6a975ca9b45ed89601ad239876b13a21422724e521037a2a9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_runtime.update_runtime_config (cyclomatic 36): settings_runtime.update_runtime_config 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/webui/settings_runtime.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5aac2561ddfad8c6d2348017bbe154caf6ff1278dffa67a59913013b9ec4d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelInstancesPanel.ChannelInstancesPanel (cyclomatic 36): ChannelInstancesPanel.ChannelInstancesPanel has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 152, 120, 104, \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/channels/ChannelInstancesPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0074416cfdbbf27f1d349349cb9b31316172bb0b6950efd5011e692d25fd1c26"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeConfigSettings.useRuntimeConfigSettings (cyclomatic 36): RuntimeConfigSettings.useRuntimeConfigSettings has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 62, 39, 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/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10d793148afd202a0d187ffa06615f7310f005e58337c63dedfa6ac09b39910"}},{"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":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f08b7c9c63f76023631c441c85e0ea7fde5a3e61d00dc4459fb8461f08021f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUIOutboundProjector.send (cyclomatic 35): WebUIOutboundProjector.send 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/outbound_projection.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"865c455b9dd7f7c309fac4064a88e24c4c3d81eeaaaf31126e5041dab0470286"}},{"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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cd5e7579ebef1c8caa0360e87d67a62dab9c914f38a4c6f7d50785ff0f6a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTextRenderer.MarkdownTextRenderer (cyclomatic 35): MarkdownTextRenderer.MarkdownTextRenderer has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 4 of the 35 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 551, 538, 547, \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":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d51f69139088ff0d5a6f3a4ed6a02dc7ad09c0739bbc85f92d19d63a8433b9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._run_agent_loop (cyclomatic 34): AgentLoop._run_agent_loop has cyclomatic complexity 34 (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/loop.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab1419b0f338b76adb425a9f41553761e51901a74e471e7ef29b2986007f1c9"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageBubble (cyclomatic 34): MessageBubble.MessageBubble 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"705687e6a696926d266d5a299a79b1b221c66e76f0a91d8de20e681112319df0"}},{"ruleId":"D1","level":"warning","message":{"text":"McpManagementDialog.McpManagementDialog (cyclomatic 34): McpManagementDialog.McpManagementDialog has cyclomatic complexity 34 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 12 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":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ddb13377311b720755f4f9a4a5c1cacbfdd576536e3d41cec0df1dc5e685ec"}},{"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/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33dc22cd7089d62cd61b1677d929ebefdc1a00c0f705b56b79632b094404f1d"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsMarketplace.SkillsMarketplace (cyclomatic 33): SkillsMarketplace.SkillsMarketplace has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 13 of the 33 points are its own statements and the rest belongs to 17 function literals inside it that branch (lines 98, 136, 158, \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/SkillsMarketplace.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3fe46929b64e31e3853433c2ca3bf2244486fd4e6a01471f179327ef91bf77"}},{"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":"ThreadComposer.GoalStateStrip (cyclomatic 33): ThreadComposer.GoalStateStrip has cyclomatic complexity 33 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 13 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ac382769f3b1a7323b3707ef9f799967207399bd16466e5a0529e83bb4914"}},{"ruleId":"D1","level":"warning","message":{"text":"useAttachedImages.useAttachedImages (cyclomatic 33): useAttachedImages.useAttachedImages 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 10 function literals inside it that branch (lines 296, 367, 401, \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/useAttachedImages.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c765042d364fd1d915a80eb44c0392891099b591f30800099fb9b6eae3dfe31e"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageTool.execute (cyclomatic 32): MessageTool.execute 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":"nanobot/agent/tools/message.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d49f2a106f72cb10c0d36fdd87323daf468d704ceb533402d03f997452e907"}},{"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":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03386338f67e5bf49b05490ee07fe1e8ac3bc20fd3048acd1ada89bd6822281"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._build_responses_body (cyclomatic 32): OpenAICompatProvider._build_responses_body 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/providers/openai_compat_provider.py"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"06605b355e34b0f0bbffea1cc99c3413132f010704e0fbeade68dc98d20911bd"}},{"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 literals inside it that branch (lines 83, 157, 74, \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/AutomationRunAtPicker.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e514f91f351fb0b3b18991af3c33ee03489fccbf67951a6b6d4b123d9f3125fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelsSettings.ChannelsSettings (cyclomatic 32): ChannelsSettings.ChannelsSettings has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 13 of the 32 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 128, 56, 61, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d4ad232a3e16f62b848f84f1dc7b5d79d6286dfb5625c0b5b7cf053afdb52"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-display-projection.projectWebuiThreadMessages (cyclomatic 32): thread-display-projection.projectWebuiThreadMessages 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":"webui/src/lib/thread-display-projection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab0377c84ca7e81fd303d6bf22ad1590d5a40124f3326654067f4a9e93991ef"}},{"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 literals inside it that branch (lines 33, 50, 98, \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":"nanobot/channels/linear/webui/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3df7a5d6ee1fc1bb2150bf0abb735618479fd65aafff5e8dbd4efa9b6903fc"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.fetchHistory (cyclomatic 31): protocol.fetchHistory 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":"tui/src/protocol.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d872d53b48e8e6be1edb35438ee8f0d4b88a533d02a839237bd8d934bdd3f8c5"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialForm.CredentialForm (cyclomatic 31): CredentialForm.CredentialForm has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 99, 149). 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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"83dc1fba74348313584f05da5774314a9003d082a0a8c12dfd9c5626dabb213a"}},{"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":83}}}],"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":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f7311d8b57e89e1f15d0b44c55343a5d07887f6c35483ea3f1e0fb57a486d7"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_capabilities.update_image_generation_settings (cyclomatic 30): settings_capabilities.update_image_generation_settings 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/settings_capabilities.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d5c6c7ef256a9e20d5a89e4f9878cae4479b0d78cbe0763ca9083ad10ce5d3"}},{"ruleId":"D1","level":"warning","message":{"text":"WeixinPanel.WeixinPanel (cyclomatic 30): WeixinPanel.WeixinPanel has cyclomatic complexity 30 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 14 belong to 6 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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7456d415b63182db26b668a3d3ef4775ba9239fbe8e5802c310ecf7c81649717"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatList.ActivePaneRows (cyclomatic 30): ChatList.ActivePaneRows has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 1408, 1451, 1459). 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":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc948cecb2913901dd92599af2c67db8297acae47880c808668fefec4bda110f"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeBlock.CodeBlock (cyclomatic 30): CodeBlock.CodeBlock has cyclomatic complexity 30 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 12 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d702bc28f1d7991a4e7b567590c2ff1d631460eb22d7571b412be86fd60a00d6"}},{"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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3265ab4a723f48cd61eccf62519c384471e23b1915bb4875628cf76997927443"}},{"ruleId":"D1","level":"warning","message":{"text":"segmented-control.SegmentedControl (cyclomatic 30): segmented-control.SegmentedControl has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 153, 109, 65, \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/ui/segmented-control.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b71628aae3749026a0a507ce27ef697fc91c850edd654b0b8e96c32d6231fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._build_turn (cyclomatic 29): AgentLoop._build_turn 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/loop.py"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea0bd5fb2067d7688533b8016dd78aa0c06546751a3a86f8855f6d15ed0de1b"}},{"ruleId":"D1","level":"warning","message":{"text":"MyTool._format_value (cyclomatic 29): MyTool._format_value 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/self.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a562f58e5e033510daec719df3d46d2b9c63159c1b06aa8d498f70511e46383f"}},{"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":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ca4bf913b598bcfad4bf254fe2852abd0a01c85c093e6f0b5feb2bda1e7e91"}},{"ruleId":"D1","level":"warning","message":{"text":"factory._resolve_provider_setup (cyclomatic 29): factory._resolve_provider_setup 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/factory.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdb40e1def78984b0399f48f078ddfe8dcaa75069b5b8b03123bcbe77d68ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSearchDialog.SessionSearchDialog (cyclomatic 29): SessionSearchDialog.SessionSearchDialog 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 9 function literals inside it that branch (lines 188, 85, 106, \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/SessionSearchDialog.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e956171954aaf7e1f3d707d4ba5f4eea805f287b1aafb01ea4aa3f2c59c29a74"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._dispatch_one (cyclomatic 28): AgentLoop._dispatch_one 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/loop.py"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"791f6693fe58a6d545a06842d9dac997f5642cd51a3e2db19f42382588ebfe40"}},{"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":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"067ab1fc5b5ca002641910687ff81096eaf72904d19748fd2c8aa4cbf53739f2"}},{"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":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"14025a78a8b87ea26a232f8652e7129b2307cba688e02597143475b23818056e"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUISettingsRouter.dispatch (cyclomatic 28): WebUISettingsRouter.dispatch 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/webui/settings_routes.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdf629fcfb20377c25e69c717cab685312c80ea6421c924291e5d4ec189e144"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_action (cyclomatic 28): GatewayHTTPHandler._handle_webui_automation_action 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/webui/ws_http.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc29423fc136d614d145f5f5faf602820184d39978c6416f06d329d23cb56dba"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearMemberAccess.LinearMemberAccess (cyclomatic 28): LinearMemberAccess.LinearMemberAccess has cyclomatic complexity 28 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 12 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":"nanobot/channels/linear/webui/LinearMemberAccess.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a47be06c9f3955acdbb9395804d0246eb8dc15363597f9f647a69aace589b0"}},{"ruleId":"D1","level":"warning","message":{"text":"App.readShellRoute (cyclomatic 28): App.readShellRoute 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":"webui/src/App.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d96ea9fbbe102196d54d85a28b5d4b7ff51b1cbc1dbd738162d0a66e6fab69"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsCatalogSettings.SkillDetailSheet (cyclomatic 28): SkillsCatalogSettings.SkillDetailSheet has cyclomatic complexity 28 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 11 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/SkillsCatalogSettings.tsx"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8616f844988c7be1e25db3aa141b404b8813d77fda899ca4cafa80bc68cc2909"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationRunDialog.AutomationRunDialog (cyclomatic 28): AutomationRunDialog.AutomationRunDialog has cyclomatic complexity 28 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 4 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/AutomationRunDialog.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7740d167787cd3669d0afb4725e672f82e6de87b79e51221094aa22295d85f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.MessageBlockMenu (cyclomatic 28): ThreadMessages.MessageBlockMenu has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 14 belong to 9 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. This is NOT this file\u0027s highest cyclomatic complexity: ThreadMessages.threadDisplayUnitPropsEqual (cyclomatic 30) 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":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e67a0d21774cbdb64ab2516aa96ef349445ad53b3e64f13eb15cf99d0a238fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._guard_command (cyclomatic 27): ExecTool._guard_command 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":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"853997de2047caddeae266f132b4767e1e0fdaffb2a4599b834252355710d94a"}},{"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":1031}}}],"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":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a7329caab14af9d1950a088c2276f034d4b0818b4b3fd8a1599cb7ec88cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api._mcp_server_config (cyclomatic 27): mcp_presets_api._mcp_server_config 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/mcp_presets_api.py"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"937adf7d3de2913977265088c53cb013ffe224464bc79a2e4e8f331c26bde496"}},{"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":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"309cee95abcf9704b3bbdff92223fd914896cc72edf0acc6282e91f53bf9dc61"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.fetchMentionCandidates (cyclomatic 27): protocol.fetchMentionCandidates has cyclomatic complexity 27 (threshold 15). Of this number, 25 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/protocol.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d904439535f2c89f8a24ecc9b3f9e9174e12062cd628d648601dfae76d2ff4c"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotTui.constructor (cyclomatic 27): NanobotTui.constructor has cyclomatic complexity 27 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app.ts"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b00fd63a9344a914f5a91b03eb44bb4bcd72f1a749ec4a390e3e4bdb92d884"}},{"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 literals inside it that branch (lines 932, 1055, 897, \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/App.tsx"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbfbefaacaa5abdee1e3cf55f6ef14caa9380f2b0a38b68aba7f79243fc0ae0"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.Sidebar (cyclomatic 27): Sidebar.Sidebar 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":"webui/src/components/Sidebar.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1352abdb61aebf96a3e54030d463713387bbbe6b31ccf3b60f03d01ad4f47b6"}},{"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":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"da29c86aa4f18a9c7dfede77c457aa31db93fb5fa7817d7e9f2f009c4a389214"}},{"ruleId":"D1","level":"warning","message":{"text":"generic-tool-model.activityLabel (cyclomatic 27): generic-tool-model.activityLabel 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":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8843038509c10d6014230deeb62fa3e5faad426b093d70f6666c8c1851919d5"}},{"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":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace339015ad0eeb9bf7f462e6515134229d479598a0c574bb5c639ddabb2a81"}},{"ruleId":"D1","level":"warning","message":{"text":"factory._make_provider_core (cyclomatic 26): factory._make_provider_core 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/factory.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc6e44e005c0f653943984f07b2535afef6defc72cc8cfc967a1e30a27b41a5"}},{"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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d50f788b5e57679ac5434b3dda3117c1613cbeed74b308412787e0a38a3c2b1"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlSessionStore._list_sessions_unlocked (cyclomatic 26): JsonlSessionStore._list_sessions_unlocked 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/session/manager.py"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbc363889f431e62a138ec718af2a01bee91bdd812ed24efa8dbf210fa7e668"}},{"ruleId":"D1","level":"warning","message":{"text":"session_list_index._scan_transcript_row (cyclomatic 26): session_list_index._scan_transcript_row 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/session_list_index.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b82d11b92089f0c67e4f72d677c1fb75cc6d985cb49d61ab0fb3a2314c2811"}},{"ruleId":"D1","level":"warning","message":{"text":"session_list_index._scan_session_row (cyclomatic 26): session_list_index._scan_session_row 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/session_list_index.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba99f0349aa2fbead00df35ede8d713de357d8affce4d7db4e642df32e8a8aed"}},{"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":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8672ce39f448644083b73d136440f819d361a4c5160b42b8af738e9efa8b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearResetConnection.LinearResetConnection (cyclomatic 26): LinearResetConnection.LinearResetConnection has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 41, 105, 77, \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":"nanobot/channels/linear/webui/LinearResetConnection.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"db525bf81437249a2363adfab6fba4c21bfcb5e39a9486b48ae564152ddff7a0"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.fetchSessionUsage (cyclomatic 26): protocol.fetchSessionUsage 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":"tui/src/protocol.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43f3b5bbce11f692e073e2e666426d5523983450c0629c9d0478ad618444ed2"}},{"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/diff-viewer.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c369cca622a6ef9c54e76d85de33efcb691e2df5116305d35196c140ae9a800"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewPane.PreviewPane (cyclomatic 26): PreviewPane.PreviewPane has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 73, 82, 36, \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/PreviewPane.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"105f15228a15a944b147551c2a9a3a502140ee7730b20ae9d09cd1bfd4ee8950"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsSettings.McpCustomServerPanel (cyclomatic 26): AppsSettings.McpCustomServerPanel 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":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ecfd5d8d2cd8a1a35f1e3b197b3cd76416084eb518208c9320b0015dc2ac7"}},{"ruleId":"D1","level":"warning","message":{"text":"attachment_ingress.store_inbound_attachments (cyclomatic 25): attachment_ingress.store_inbound_attachments 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/attachment_ingress.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ebaa1d8e31ea19a2fc916dd4b4dbe4cbdb37b8d285e62b12d960ede71b04c3"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.provider_models_payload (cyclomatic 25): settings_models.provider_models_payload 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":"nanobot/webui/settings_models.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"187fa651afbe263b0d3a9ce8c2f80d94c0d9a62034525e2d035e9b784d9fa712"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.fetchSessions (cyclomatic 25): protocol.fetchSessions has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 886). 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/protocol.ts"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57695f535e460e28b24d47e1e437b4134a0dd885f07765d97210ee6089232da"}},{"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 literals inside it that branch (lines 60, 54, 70, \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/FileActions.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4daed7db58130382f11c8dbe66798dde334b9d9ba5ef4b3edf45642e702f25"}},{"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":"api.hasValidProjectionMetadata (cyclomatic 25): api.hasValidProjectionMetadata has cyclomatic complexity 25 (threshold 15). Of this number, 20 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":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fbf58ad63781a270fd4bd4b840bdf0adff6105ec02efe0148f77574d4e83ef"}},{"ruleId":"D1","level":"warning","message":{"text":"Tool._cast_value (cyclomatic 24): Tool._cast_value 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/base.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb8e3daf31558da9f5e832f93dfdf2697ee93f6e3a29ebcb2cb85e4a5805b3a"}},{"ruleId":"D1","level":"warning","message":{"text":"server.handle_chat_completions (cyclomatic 24): server.handle_chat_completions 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/api/server.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bf2f83d53d671502f0b0bead682c73fa0b2b30658ed7d524a3a864ff714906"}},{"ruleId":"D1","level":"warning","message":{"text":"recovery.restore_runtime_checkpoint (cyclomatic 24): recovery.restore_runtime_checkpoint 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/recovery.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cbe819ab38d97c14c5ff8c33ec0bf87b95101d96890f6250e11a52806a4099"}},{"ruleId":"D1","level":"warning","message":{"text":"session_list_index._reconcile_index (cyclomatic 24): session_list_index._reconcile_index 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/webui/session_list_index.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a110d63a54252f1932ba7b244b72f1ec215d21ee36553ba7e6539975e0399189"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_model_configuration (cyclomatic 24): settings_models.update_model_configuration 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/webui/settings_models.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1023a7ec156c1d9f1d823993f46a3546ec84bb5ca5e0ec27bc5b7e76544d4d8c"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.handleMessage (cyclomatic 24): NanobotClient.handleMessage 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":"tui/src/protocol.ts"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9b71228b62d207cf42c46b07c03b20f15a576d929418c3d256f47cf450d71d"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReferenceChip.FileReferenceChip (cyclomatic 24): FileReferenceChip.FileReferenceChip 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, 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 28) 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":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9c287dbb75955393efe941f8befe97033a1fa7e9f10ae6a93f8309e035553d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelValidationProgress.ChannelValidationProgress (cyclomatic 24): ChannelValidationProgress.ChannelValidationProgress 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, separate the cases: extract each independent branch into its own 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":"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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7e87e6464aea5650adac17a8d83e0f8d064ee18b73773b7b1f8ad311388533"}},{"ruleId":"D1","level":"warning","message":{"text":"McpManagementDialog.ConnectionPanel (cyclomatic 24): McpManagementDialog.ConnectionPanel 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, separate the cases: extract each independent branch into its own 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":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ecd7e6b4f72af44e338c413952dbdcc0e5505994f9900a48c106553cb5fe7"}},{"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":"combobox.useComboboxNavigation (cyclomatic 24): combobox.useComboboxNavigation has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 56, 32, 48, \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/ui/combobox.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbcc1cf1513b62ea4f59e92e98d914ab31c4989736734a44bd66d7e51b50b0e"}},{"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":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5461a844369e0ab0ba765f03ea84dd9e3e6033df5c7bb9b9c7d389202c9679df"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.parse_response_output (cyclomatic 23): parsing.parse_response_output 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_responses/parsing.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d3ab5ab9cc7b26a497efdfb4306f3d1ea0476fa3fa48c3c7bedfc872ae3518"}},{"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/session/recovery.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab781ce4249ea48313731815c8a01f8f89e7a79d80f5cfe72e501e5b7e426a94"}},{"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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5266d3afb72b2d4632cf62b2fae023f5d593f8cbc65562521557e633b29d96"}},{"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":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"3206a5eb89f3ddf043d783c1b85897dcdbec6ad89bd2917cbfe53fe08b26e535"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter.dispatch (cyclomatic 23): WebUICommandRouter.dispatch 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/inbound_commands.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"552a1f55b1d1f532443929c9901b17fc73783a24d98c8ab57156277a7eeebbc1"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_thread_get (cyclomatic 23): GatewayHTTPHandler._handle_webui_thread_get 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/ws_http.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6497f70e9c041412e1d4ee351acc3da4f093698bd3a8bed5c1c336c8f63f3a"}},{"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/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3494eb200b560355e2a2c260b29d5f2fafb8e945b44136768bc91ebcf14ec9c"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentTile.AttachmentTile (cyclomatic 23): AttachmentTile.AttachmentTile has cyclomatic complexity 23 (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/AttachmentTile.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb4ab5d647655ec6f9ad8b3614c77ce5f30f5999847425e3dda6a686e63e915"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppMentionText.splitCapabilityMentionSegments (cyclomatic 23): CliAppMentionText.splitCapabilityMentionSegments 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/CliAppMentionText.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e120a99be6b15229feff7571bd2a7f7de73ed79793d09f1a053e15e029cdad3"}},{"ruleId":"D1","level":"warning","message":{"text":"ThinkingReasoningShell.ThinkingReasoningShell (cyclomatic 23): ThinkingReasoningShell.ThinkingReasoningShell 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/components/thread/activity/ThinkingReasoningShell.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a397d10ccc4a7760359914aeb723c3c5903e18a7016e3f13ad82a0b0c4ea9ce5"}},{"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":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ffd36a427f22d6ceb16a070e08886b252468c8cd284ae67c8f8552f0d1b880"}},{"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":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b471d5207624420bf79b9cbab284dcd203f650c8062b6cf6c31c7d3a136490e4"}},{"ruleId":"D1","level":"warning","message":{"text":"agent.agent (cyclomatic 22): agent.agent 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/agent.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b926afee0eaa2eaeeaab81f21b14e0fbc4e6fa85071b1884f7d0e7a91d2db0"}},{"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":400}}}],"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":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce8d901e326c5807c41f400e87d951eb407e8f5bd25f8825b9d4e3b31b920ef"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMUsageStore.usage_payload (cyclomatic 22): LLMUsageStore.usage_payload 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":"nanobot/llm_usage/store.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9ff9299e72cf09c487782a320f706fb811c8829da55c2bdae9e9f473c34ba6"}},{"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":536}}}],"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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d825a4096d6cad4d197a5b04cc97142522f69f7172aa90569e2b8870b750cd"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._sanitize_messages (cyclomatic 22): OpenAICompatProvider._sanitize_messages has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd0b7534aabdd8fbcfc1d6180a1e80007b60ed5282afe13509dca5fc8a45230"}},{"ruleId":"D1","level":"warning","message":{"text":"WebUICommandRouter.start_webui_request (cyclomatic 22): WebUICommandRouter.start_webui_request 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/inbound_commands.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a311040c3fda2e142aa1bda46575232837a7c0c6b4ceb24487bf88463e52619"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript._select_transcript_page (cyclomatic 22): transcript._select_transcript_page 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/transcript.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd33053d8b1e786a36cf537714b9e67e75c7df48ee91b7835a5dcfe6dc50c0c"}},{"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":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"328cbe03578d41b9e025542a7856d2ae465e35383b12a6022c52e6eb2af80de6"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.open (cyclomatic 22): NanobotClient.open has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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/protocol.ts"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"924c9910309dd19a1a03bdc7cb1a6292480aafd0d9a22d3f72187051f5eefc35"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.sanitizeConnectionFailure (cyclomatic 22): protocol.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 literal inside it that branches (line 1098). 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/protocol.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb8083049ffdc38ed0de1fcae1a1c7aa87103d5abcee249a79a4f6bfdbcb39"}},{"ruleId":"D1","level":"warning","message":{"text":"FilePreviewPanel.FilePreviewPanel (cyclomatic 22): FilePreviewPanel.FilePreviewPanel has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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/components/FilePreviewPanel.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed55b464a748bf7beb0c34ddf19e460dbd68a0bfa4be1a51ed09eaa081aba12"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadComposer.normalizeQueuedPrompt (cyclomatic 22): ThreadComposer.normalizeQueuedPrompt has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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/ThreadComposer.tsx"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c1cfb0aea60db0ee2ecbc5c55005e1dd0bea29b3aeb9a7d1b5589695ef3454"}},{"ruleId":"D1","level":"warning","message":{"text":"FileEditRow.FileUnifiedDiff (cyclomatic 22): FileEditRow.FileUnifiedDiff has cyclomatic complexity 22 (threshold 15). Of this number, 12 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":"webui/src/components/thread/activity/FileEditRow.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7566cf884dffb89add2a8f589f72e1d823912abad656bd5491390542016a63c"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMotionCoordinator.flushGeometry (cyclomatic 22): ThreadMotionCoordinator.flushGeometry 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/components/thread/thread-motion.ts"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ed0e8d69fc994b21389a8f4ec1a751edee0d8497e9dfe8dae5cab8a0f5a8ac"}},{"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":434}}}],"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":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"950f0b54c3d93d2adc6f152aaeec65e0f37e94453243793554d65c75dd5ec8d6"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnDelivery._publish_event (cyclomatic 21): TurnDelivery._publish_event 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":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c0ec1a79a35e982dda314c46c7c1629d2a30776b6f6b671bf7e84d7ac25d28"}},{"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":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c65d96d11a7295cb8905349109172629df72d5da8a4382e0a5db65be4f3184"}},{"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":831}}}],"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":1141}}}],"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":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"420879566fba08508c0744cc56481d4741820ceca0307a1507fd85a0cf9cee1d"}},{"ruleId":"D1","level":"warning","message":{"text":"transcription._post_stepfun_asr_with_retry (cyclomatic 21): transcription._post_stepfun_asr_with_retry 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/transcription.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6206964f4f782beb39cbc937591414765111aebda6bb82d473b1a393e822b9"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlSessionStore._repair_unlocked (cyclomatic 21): JsonlSessionStore._repair_unlocked 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/session/manager.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b359ec3bf3ecf88c332dd2bf24e72ba18aaf704348d373cca227ec1bc1660c"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers._estimate_prompt_tokens_with_source (cyclomatic 21): helpers._estimate_prompt_tokens_with_source 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/utils/helpers.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"840413a2434312de69439124cedba7ab1a226d83c73ad0a5a63f2d2f2e508f0b"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_settings_action (cyclomatic 21): mcp_presets_api.mcp_presets_settings_action 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/mcp_presets_api.py"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be00d31195c485875aabbdcab567aa8d963eaeca1f8982b89b85226fdf60aaa"}},{"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":295}}}],"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":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31b3780bff635a3deb39b487f5a62094b7a5261abd526b0012c307db366b9d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ZoomableImage.ZoomableImage (cyclomatic 21): ZoomableImage.ZoomableImage has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 52, 74, 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/ZoomableImage.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"870e9c2cf9a2f8995e78d06404d5c795c680ebd3c0177c2a1d8fc13392e1ecbe"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsageCard.TokenUsageCard (cyclomatic 21): TokenUsageCard.TokenUsageCard has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 139, 161, 119, \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":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"769fb748cd82be4a1fabfd6efe056227c8546dd2e1494c3c390742062ada8edb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelCatalogRow.ChannelCatalogRow (cyclomatic 21): ChannelCatalogRow.ChannelCatalogRow has cyclomatic complexity 21 (threshold 15). Of this number, 16 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":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af741ff12aaadcbf835247da0146898c38fe0f4c4589d67e6caddda39ec4188"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.completedMessageBlocks (cyclomatic 21): ThreadMessages.completedMessageBlocks has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 987, 998, 990). 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 30) 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":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"b868e97e86bdc41652d307bd5a364910262cb1e58484fa6865d53234ccc4f235"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadShell.recentComposerRoundUsage (cyclomatic 21): ThreadShell.recentComposerRoundUsage 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/thread/ThreadShell.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3377727e513d3167f3020b0aba450b3137c1167bdaf4f667bccc8b4d09a1e8f1"}},{"ruleId":"D1","level":"warning","message":{"text":"generic-tool-model.activityDetail (cyclomatic 21): generic-tool-model.activityDetail has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c5196eb1e18cb05c8ba8e8f8d839029624438e609ac50ea77209b727c78330"}},{"ruleId":"D1","level":"warning","message":{"text":"CronTool._add_job (cyclomatic 20): CronTool._add_job 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/tools/cron.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0601da2eccf7eb090e436369f24cc73aa4d18d1d7e4411fc7f5d9f1c1df6e4d6"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool._prepare_command (cyclomatic 20): ExecTool._prepare_command 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/shell.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f39c3a9ca80bcebe56c268d071c75135565fcf2059c4b5cb664578abd3059d"}},{"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":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da03173c2acf02f76dbaa2cfbb0f5dd7abd286c85d2d4786198e94a01d96752"}},{"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":546}}}],"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":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f86247d2f14bd72ee158791f135b48d46bcdc3fb7f58e055aaa4c45ec58babe"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlSessionStore._migrate_from_workspace (cyclomatic 20): JsonlSessionStore._migrate_from_workspace 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/manager.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"d289178508515c14c329a90d753e9edbae89b40acb936db29c25bca77b40e5dc"}},{"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":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c85955521b27873512ad94780eeb8e22a05a2c30255ea007feacd004daa5c6"}},{"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":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"964172423cf3e3abad4984f9fc06d4a975aeeb47f1967bb5dee06872a5ac2aac"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationSettings.ImageGenerationSettings (cyclomatic 20): ImageGenerationSettings.ImageGenerationSettings has cyclomatic complexity 20 (threshold 15). Of this number, 18 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/components/settings/capabilities/ImageGenerationSettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc7f6c6c6ddb6500bffedeb78fe2ea5018033145d55432d3e536a65a58a2e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationCalendar.AutomationCalendar (cyclomatic 20): AutomationCalendar.AutomationCalendar has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 277, 254, 356, \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/AutomationCalendar.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5a6d4fac49ede73ea6695acf27b42bd387a48e74a6593deab86cd69f6d4316"}},{"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 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":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e1e30f01e6e81bc9d4c7e29db3f72af324587b0daf8992b8a50c14010634e1"}},{"ruleId":"D1","level":"warning","message":{"text":"ComposerUsagePopover.UsagePanel (cyclomatic 20): ComposerUsagePopover.UsagePanel has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 493, 485, 478, \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/ComposerUsagePopover.tsx"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d13e40d48bd5675e0916d7555e537ead6f12c28ae69358aca9ac42b706540d"}},{"ruleId":"D1","level":"warning","message":{"text":"RecoveryNotice.RecoveryNotice (cyclomatic 20): RecoveryNotice.RecoveryNotice has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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/thread/RecoveryNotice.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b9aadd0e7def7f811f2ef44a524467e9ae40fcf1f1906a276d1d915e3e4bae"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop.__init__ (cyclomatic 19): AgentLoop.__init__ 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/agent/loop.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55f667a6e0c17e878df23bbae4af2cc29f45a72eec918431d2b6e1402b3faf7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop.run (cyclomatic 19): AgentLoop.run 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/loop.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9631751228bc224c42f7b987bd874219979bb3ffc37f86aae2ea6bdc04e2047"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._restore_turn (cyclomatic 19): AgentLoop._restore_turn 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/loop.py"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede07268f2a13188f4ea607a3e909eaf33a4c42269e40b7b9987656b44d585b1"}},{"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":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad879146ed6856058faadc2b11b2165a5bc386361866267a2a396e67ed4c18"}},{"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/agent/tools/long_task.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c35896762f15f015b5f619b19ca9437ef57a20321658a03f81658edea851e86"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPPromptWrapper.execute (cyclomatic 19): MCPPromptWrapper.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/mcp.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"e289720a0cd5545b7520f9b2648b53b8301a712142c16fa62ee5793aab673e4e"}},{"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":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35cf9f93350adb933ddfabc844665c1ebbcbf323af4dd0ba5bde83c8e67c670"}},{"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":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eb8f8e3ceb1baf79b1a99b7bbfd1e31848558218ca37fdf07df9ed9cab894f"}},{"ruleId":"D1","level":"warning","message":{"text":"automation_results.cron_run_response (cyclomatic 19): automation_results.cron_run_response 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/webui/automation_results.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3791b63f32897106a54ad85aebe0e4b6834855d8ec11117763c76f9738dbe549"}},{"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":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"971e769cc4cfefd081451b832f295c36dd57495363c9032dcebcf5587ddccc25"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_misc_routes (cyclomatic 19): GatewayHTTPHandler._dispatch_misc_routes 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/ws_http.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa61bd3df41dece4e7b90b66f936f0498a93ec77976449bae3460a9a282b976b"}},{"ruleId":"D1","level":"warning","message":{"text":"pty_smoke.main (cyclomatic 19): pty_smoke.main 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/scripts/pty_smoke.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebb99b5237517c003c6089786c4b985af4cc0fbb11a622e9aea6e36f04e406e"}},{"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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c6278a640dccbdbda4c9213df4550b93a0f04cfbf70718a82d621e8c6ceb28"}},{"ruleId":"D1","level":"warning","message":{"text":"useSessions.useSessions (cyclomatic 19): useSessions.useSessions 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 8 function literals inside it that branch (lines 234, 351, 227, \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":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0085797e121e1daa24181101aef2b735c00f2489595e9ad7a29af2ea38da7404"}},{"ruleId":"D1","level":"warning","message":{"text":"useSidebarState.useSidebarState (cyclomatic 19): useSidebarState.useSidebarState 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 9 function literals inside it that branch (lines 162, 181, 246, \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/useSidebarState.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a07e82db0bb8e162c427ac05f6a0fb39ed54f27c6acb86cca5c61e4589b11"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.projectToolActivity (cyclomatic 19): thread-event-projection.projectToolActivity 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/lib/thread-event-projection.ts"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"392233c737ca65cf298485bd2af56b65e0674bd5ec966b7ed802ec34de97e5a2"}},{"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":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b0cb22f2d92503168830a182958c30e44fb8936dbfc15ce1391826883541e6"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProvider.reload (cyclomatic 18): MCPProvider.reload 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.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c82ca912a920e6c32cd4c6bea6231b7822860e227cd8ff8fda8ba6b033bb9a1"}},{"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":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6674da55b2a2d71faee0b45ee97a813ad29c65fd3975d129c9ec87417099898"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider._build_kwargs (cyclomatic 18): AnthropicProvider._build_kwargs 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/anthropic_provider.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"92843a2a37980a2ec15aa95192e137379c83e4439075b3ba64faf2e59995bf81"}},{"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":138}}}],"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":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4efbe2ca96f717459dd9b67d32efb8bb16fa96b77d38d7bfab4ac523e92e1c"}},{"ruleId":"D1","level":"warning","message":{"text":"image_generation._parse_codex_sse_images (cyclomatic 18): image_generation._parse_codex_sse_images 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":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"0053c21807bfc655ad3da24beb93123cc26fd52a831023d1eb436a2a93c322bc"}},{"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":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b1c1efe1241ba69aa49718b49780ab91b490422d0e6b16d9c1549fee647df5"}},{"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":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5d6c9d2ab5c22261c10993b7e20112a87979f51ed5faa02ce5568f986e30ca"}},{"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":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"55268d5472380a80b74b8abb1689d3b0b9f1dc713497d522dee964d66c5c1179"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.estimate_message_tokens (cyclomatic 18): helpers.estimate_message_tokens 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/utils/helpers.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"db031ea644e135715784e151734ed65bb6d08a7b444168ee350ba1a5adfe84ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSettingsHandler.handle (cyclomatic 18): ModelSettingsHandler.handle 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":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1170e3abe960dc8b47deb381b5dd213666ec8ec6cdf4c89f3dfd416ce135b7"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_provider_settings (cyclomatic 18): settings_models.update_provider_settings 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/settings_models.py"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8017bf2456bb5427352ad76de398c7c54c6c0474137acb8e082fb9d10e75018f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.login_oauth_provider (cyclomatic 18): settings_models.login_oauth_provider has cyclomatic complexity 18 (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":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8729420ab67f55397724b8db438fb36c1ae9ce1a1c97ef911551d5ab47185c"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemSettingsHandler.handle (cyclomatic 18): SystemSettingsHandler.handle 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_system.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc1f63d264b869abbd8b54f350f3c29153ec139933498f5c19ef0d206442c29"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.write_session_messages_as_transcript (cyclomatic 18): transcript.write_session_messages_as_transcript 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/transcript.py"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c712c5845946c7cae156df134e435d36a7464ee77d89cb4f4ee288846182d3"}},{"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":"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/footer-hints.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0f1fef74ac8e75ccc60127ce3c1cc9830e7bfcf73356413de549f1780a059e"}},{"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, 73, \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":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd5b56892e5c50c26bceb362420578f2609792167340aaa0de71e221ee50e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"StarPrompt.StarPrompt (cyclomatic 18): StarPrompt.StarPrompt 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 6 function literals inside it that branch (lines 70, 65, 62, \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/StarPrompt.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31f361dfc7bf3db88337fea135f9e637b53972abdcada76036273b652126d4f"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSidebar.SettingsSidebar (cyclomatic 18): SettingsSidebar.SettingsSidebar has cyclomatic complexity 18 (threshold 15). Of this number, 15 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":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec11b9d56e43a0269162703f07dae506fc896c5ac4388e16650374df06d5e3cb"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionInfoPopover.SessionInfoPopover (cyclomatic 18): SessionInfoPopover.SessionInfoPopover 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 7 function literals inside it that branch (lines 85, 103, 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/thread/SessionInfoPopover.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be836deb5f18cdeb60226bca71ecc17bd10faaa5bd404cd8f4d896896f1ef33"}},{"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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8fe5da235c5dfa1e2c5a72947046f3b5488686425b1e850c8f6689f32afd44"}},{"ruleId":"D1","level":"warning","message":{"text":"NanobotClient.sendMessage (cyclomatic 18): NanobotClient.sendMessage 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/nanobot-client.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a0350e72da0c40407766f6f8c1f5970d97e56223a237d8067b779b2840b857"}},{"ruleId":"D1","level":"warning","message":{"text":"thread-event-projection.attachProjectedReasoning (cyclomatic 18): thread-event-projection.attachProjectedReasoning 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/thread-event-projection.ts"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"626f3181b640f95ccf245807b6abc541efb0d4af86385c970a395858bd0b06b8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRunner._try_drain_injections (cyclomatic 17): AgentRunner._try_drain_injections 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/runner.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f129a55a56f02b67b437c28dc257b961bf6ccfd6c06bd4a13c9496958c9f03"}},{"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":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51aec0d1630562a52e64905649bc6113f768329aab8621891e3290a65c6111b"}},{"ruleId":"D1","level":"warning","message":{"text":"execution._execute_tool_call (cyclomatic 17): execution._execute_tool_call 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/execution.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"826bd03eed7dabb3c28634790cebf41a38cdc075154f7f530402c89d7348073c"}},{"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":"gateway_runtime._run_gateway (cyclomatic 17): gateway_runtime._run_gateway 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/cli/gateway_runtime.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc308cbff748bada576be3805635e368488cc09a08fc5cd66193583e6423ec8"}},{"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":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ad900b727f559a6fae88eaedc2e9d8e43721301fd0276b9d4398552ef3638b"}},{"ruleId":"D1","level":"warning","message":{"text":"terminal._maybe_print_interactive_progress (cyclomatic 17): terminal._maybe_print_interactive_progress 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/cli/terminal.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a712d4c489ea1df44a1d760256f6ef09ffd75992dfbaadc952e88e1fe22a0d8"}},{"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":316}}}],"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":298}}}],"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":659}}}],"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":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1d51c05be53cdd982577029279dfa5bc44432aa6824e1ab05d5e7657ecebe0"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatProvider._should_use_responses_api (cyclomatic 17): OpenAICompatProvider._should_use_responses_api 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/providers/openai_compat_provider.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ac32a9eda2392a991913c6a98c320abdb0119d6b637f1a6ba086ebd7c46fe7"}},{"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":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca09a16593a2118e391ec966973158827af1d062f8b45d60c2b996fe36aab71"}},{"ruleId":"D1","level":"warning","message":{"text":"webui_turns.maybe_generate_webui_title (cyclomatic 17): webui_turns.maybe_generate_webui_title 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/session/webui_turns.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2bd722e08fcd703966d1b1776e587a81c8c8dbeb3c0871d33029785658267f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.update_agent_model_settings (cyclomatic 17): settings_models.update_agent_model_settings has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"181db89dc899d9b1825cbd6f97547201f3c3fb479836c65d4835822f20130af0"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.create_model_configuration (cyclomatic 17): settings_models.create_model_configuration 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/settings_models.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e612062a837d118d80210e06a639f3025b1ce86963be2deb41966fb4ab5640"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_models.complete_oauth_provider (cyclomatic 17): settings_models.complete_oauth_provider 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/settings_models.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf2aaa9f05ebef3d4bc5bdb2ab792911c3c780ad9f851b133e56eae13d5c48d"}},{"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/transcript.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb6321c8721f1ede1b8db721f1e0a1023f46ea28b6fa4c3399bd73e764c5e20"}},{"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":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b95c46a12ff6e5d21848247b7e29fb16a4792801e6bc623c7514e08a17ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptRail.PromptRail (cyclomatic 17): PromptRail.PromptRail 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 6 function literals inside it that branch (lines 152, 102, 68, \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/PromptRail.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5c9347457bb6979f468b4f31dd7832eac450135a3184dc3c78784f01e12231"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadMessages.pendingTurnProjection (cyclomatic 17): ThreadMessages.pendingTurnProjection has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 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. This is NOT this file\u0027s highest cyclomatic complexity: ThreadMessages.threadDisplayUnitPropsEqual (cyclomatic 30) 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":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"775ca755a69adc3de3e432a0e3395c851262f9eaf3c6f24f3d9e36a6181b1e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"activity-timeline.projectOrderedTurn (cyclomatic 17): activity-timeline.projectOrderedTurn has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 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/activity-timeline.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"260b84ed8799874a08227c0aedb60cef5c73baed0a37280c15b2f4fd9229f651"}},{"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":"NanobotClient.reconcileCanonicalCompletion (cyclomatic 17): NanobotClient.reconcileCanonicalCompletion has cyclomatic complexity 17 (threshold 15). Of this number, 14 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/lib/nanobot-client.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ed27c27428e36ce2b55c5939c84dffd1545b0e4c1a0fdf15b7f5ed32389ea"}},{"ruleId":"D1","level":"warning","message":{"text":"remark-tex-math.tokenizeMathFlow (cyclomatic 17): remark-tex-math.tokenizeMathFlow 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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd56ac7142eb56692bf47261321fa8dad8f5d0632842d6c339d6b811db522a2"}},{"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":172}}}],"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":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ad8376d588608b4d1b5bc833910929adeb00eccc4596d1c407aacc1e2e0974"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop._process_message (cyclomatic 16): AgentLoop._process_message 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/loop.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989c84661b69bcb66c30ad2ce61d96ee3d3259c8adc581ffb05c694b2fe3152"}},{"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":637}}}],"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":464}}}],"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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcaf88d0889b8ed49da611d8fe98d1bc4d2ebd1b0e2e87f8ed7e0ca7416a2f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecTool.execute (cyclomatic 16): ExecTool.execute 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/tools/shell.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3143a4eb995c99b7be1188979994f1c70cca13ec388e1f8498b442235c6b3b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnDelivery.complete (cyclomatic 16): TurnDelivery.complete 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/turn_delivery.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3099a4f1591e052149cc45fd60280a9b9cba7b5575544b7ae952d0cd9ba6cbe"}},{"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":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d27c163cf481163b475d8878b735ad007a6c155063f3d8955624e5e1ab3c78"}},{"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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd9eeec97b9d9dd198464a4981931f4630e2196cebad895b68407571870d84"}},{"ruleId":"D1","level":"warning","message":{"text":"loader._resolve_in_place (cyclomatic 16): loader._resolve_in_place 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/config/loader.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1ab9f91e326faf43430b557f0865ad26a89ae4292bb3803e25c50eab309dd0"}},{"ruleId":"D1","level":"warning","message":{"text":"AzureOpenAIProvider._build_body (cyclomatic 16): AzureOpenAIProvider._build_body 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/azure_openai_provider.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"babb17ec9c63181e1d9470026d8ae3ef760c6a7bf4838d87a14f6e40317ab6bc"}},{"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":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38032e3633572f771478fccad8ec5251631cc01c2474902a364dc70248cc735"}},{"ruleId":"D1","level":"warning","message":{"text":"image_generation._download_image_data_url (cyclomatic 16): image_generation._download_image_data_url 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/providers/image_generation.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"46de39e41eb80a130c9f11e391ff358e316a6f830a37a0990d5313b5f66bda8f"}},{"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":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7700fdb1fa80c1663a5a29aebb9946f4d6546a3a24d1e15bba95cb1f3459d807"}},{"ruleId":"D1","level":"warning","message":{"text":"local_runner.run_local_trigger_queue (cyclomatic 16): local_runner.run_local_trigger_queue 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/triggers/local_runner.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a118960f3769d0fabee45b81884c817374d591c952ca5bc19321ebedb56ea133"}},{"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":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9657755b9284e3c00bef9643bbc7208d50b10e3733d34f31463937125ccaab9"}},{"ruleId":"D1","level":"warning","message":{"text":"session_access._visible_projection_events (cyclomatic 16): session_access._visible_projection_events 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/session_access.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9d5787f393c7ebc453c2a8a3c64e792f687d5b61322e9a07b648958262ea8e"}},{"ruleId":"D1","level":"warning","message":{"text":"skills_marketplace._install_skillhub_skill (cyclomatic 16): skills_marketplace._install_skillhub_skill 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/skills_marketplace.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"d218687ab174124c857a548fa9484c9b8f6abe9440054bc4ada58720acc8605e"}},{"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":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f138e2cc0863abead06ae692b9697dc3ee883cd7dee38a91d7688015957ff1b"}},{"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/desktop.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3db31116674ea393e1afa70315650ae1beab6e80bceb3865c732e0c672bca2"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppMentionText.CliAppMentionToken (cyclomatic 16): CliAppMentionText.CliAppMentionToken has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b528aa76988418de0988d517b63f1f243f47cf5457013ef0c2ff5b255a4561c6"}},{"ruleId":"D1","level":"warning","message":{"text":"CliAppMentionText.McpPresetMentionToken (cyclomatic 16): CliAppMentionText.McpPresetMentionToken has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 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":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f8081026f42c1170e447744acd8643b4d114cbda291e4ee36fb969570ad590"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentActivityCluster.CliRunRow (cyclomatic 16): AgentActivityCluster.CliRunRow 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/AgentActivityCluster.tsx"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2b5593380eccb9ff27c9aa72734648ca4aee6e838e4a42e3ca613510dc596a"}},{"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 572, 595, 566, \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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcea8c7e1861efb48e89d92f8718952e30a1a4587ae0e00ad77bf22082f6be6"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.ThreadComposer (cognitive 436): ThreadComposer.ThreadComposer has cognitive complexity 436 (threshold 15). Drivers by points: if/else 147 (175 pts), ternaries 100 (160 pts), boolean chains 100, loops 1 (nesting depth added 88). Of this number, 128 points are the body\u0027s own statements and 308 belong to 85 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/ThreadComposer.tsx"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e95b3a66963b7cca81ff68dd8c67b64a65d6b5c15d2b999f38aa44222fe5b0"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Shell (cognitive 295): App.Shell has cognitive complexity 295 (threshold 15). Drivers by points: if/else 124 (140 pts), ternaries 59 (72 pts), boolean chains 64, error handling 13, loops 6 (nesting depth added 29). Of this number, 58 points are the body\u0027s own statements and 237 belong to 100 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":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13051e4ad6c5532a8383ab39d7ae4b74fd66c55c7eeb392c128b079ae4e449f"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadShell.ThreadShell (cognitive 269): ThreadShell.ThreadShell has cognitive complexity 269 (threshold 15). Drivers by points: if/else 105 (124 pts), ternaries 59 (75 pts), boolean chains 65, loops 3, error handling 2 (nesting depth added 35). Of this number, 80 points are the body\u0027s own statements and 189 belong to 66 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/ThreadShell.tsx"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daec2670b912bffaaee52cdc2dc88c04455970d4dcae27fcf5753d6383493de"}},{"ruleId":"D2","level":"warning","message":{"text":"useNanobotStream.useNanobotStream (cognitive 248): useNanobotStream.useNanobotStream has cognitive complexity 248 (threshold 15). Drivers by points: if/else 91 (125 pts), ternaries 42 (77 pts), boolean chains 42, loops 3 (4 pts) (nesting depth added 70). Most of this is not in the body itself: 2 of the 248 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 561, 929, 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/hooks/useNanobotStream.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b8fb623405c8110652a64691d51a50598fe2b1ccf7c019c1b3a00a6bca0249"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatList.ChatList (cognitive 235): ChatList.ChatList has cognitive complexity 235 (threshold 15). Drivers by points: ternaries 54 (114 pts), if/else 47 (67 pts), boolean chains 41, loops 10 (13 pts) (nesting depth added 83). Most of this is not in the body itself: 9 of the 235 points are its own statements and the rest belongs to 39 function literals inside it that branch (lines 772, 709, 599, \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/ChatList.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32c18c8f06f1cfb4e0bd573e8ff4b65c3568af39f637c493873c28b17820c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.consume_sse_with_reasoning (cognitive 175): parsing.consume_sse_with_reasoning has cognitive complexity 175 (threshold 15). Drivers by points: if/else 38 (128 pts), boolean chains 34, ternaries 3 (12 pts), loops 1 (nesting depth added 99). 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":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d4d716dccd2b0e879e0b0b9cec8ae98f3e6352940320f84b6d11d20018adbf"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.handleKey (cognitive 167): NanobotTui.handleKey has cognitive complexity 167 (threshold 15). Drivers by points: if/else 58 (97 pts), boolean chains 36, 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.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd49c40f29fbac37c11b5f89673d755214fd4261b93a6275716fb2fba8b15281"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelControls.ModelIdPicker (cognitive 167): ModelControls.ModelIdPicker has cognitive complexity 167 (threshold 15). Drivers by points: ternaries 37 (118 pts), boolean chains 42, if/else 7 (nesting depth added 81). Of this number, 141 points are the body\u0027s own statements and 26 belong to 11 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/shared/ModelControls.tsx"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"543c3eee80d9644a4f9b5450345deffc35022fa929bb974af2fa186ab75eda14"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.consume_sdk_stream (cognitive 146): parsing.consume_sdk_stream has cognitive complexity 146 (threshold 15). Drivers by points: if/else 32 (105 pts), boolean chains 31, ternaries 2 (9 pts), loops 1 (nesting depth added 80). 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":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdf1f5d8c2f5546929da45ccf580a65c3145eaa9353c12e4707d5a14b50da56"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsSettings.ModelsSettings (cognitive 145): ModelsSettings.ModelsSettings has cognitive complexity 145 (threshold 15). Drivers by points: ternaries 34 (56 pts), boolean chains 46, if/else 27 (43 pts) (nesting depth added 38). Of this number, 23 points are the body\u0027s own statements and 122 belong to 21 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/ModelsSettings.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a581811d47677612003cb20fb8fd07a4b2fa8dc10251cd1ff554b607349490a"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.accept (cognitive 135): NanobotTui.accept has cognitive complexity 135 (threshold 15). Drivers by points: if/else 46 (97 pts), boolean chains 23, ternaries 6 (14 pts), match/switch 1 (nesting depth added 59). Of this number, 131 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.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a11a8664168acd0c203eed8abf86504709ea148fda9a506a13778c04d10a00"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadViewport.ThreadViewport (cognitive 135): ThreadViewport.ThreadViewport has cognitive complexity 135 (threshold 15). Drivers by points: if/else 60 (66 pts), boolean chains 37, ternaries 27 (32 pts) (nesting depth added 11). Of this number, 28 points are the body\u0027s own statements and 107 belong to 35 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":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ee3bbfea8eb63d4c615d20efa18c5d3ba0f554109055c2c42d926b7affd8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneWorkbench.PaneWorkbench (cognitive 135): PaneWorkbench.PaneWorkbench has cognitive complexity 135 (threshold 15). Drivers by points: if/else 42 (65 pts), ternaries 31 (43 pts), boolean chains 20, loops 5 (6 pts), match/switch 1 (nesting depth added 36). Most of this is not in the body itself: 10 of the 135 points are its own statements and the rest belongs to 31 function literals inside it that branch (lines 304, 714, 592, \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":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"384a9871188e8bec8fba1b5763ea3908f933913e8c7bfcf15d178ef611660bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelSettingsActions.useModelSettingsActions (cognitive 121): useModelSettingsActions.useModelSettingsActions has cognitive complexity 121 (threshold 15). Drivers by points: if/else 46 (64 pts), boolean chains 27, ternaries 13 (15 pts), error handling 11 (14 pts), loops 1 (nesting depth added 23). Most of this is not in the body itself: 0 of the 121 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 157, 380, 476, \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/useModelSettingsActions.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7c5b94827c249736f510b2cf03aa85abbb13ac716a2d0abcb5807be6c7fc75"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.McpAppsCatalogRow (cognitive 121): AppsSettings.McpAppsCatalogRow has cognitive complexity 121 (threshold 15). Drivers by points: ternaries 28 (89 pts), boolean chains 20, if/else 5 (12 pts) (nesting depth added 68). Of this number, 106 points are the body\u0027s own statements and 15 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/system/AppsSettings.tsx"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"1998272fc031c043710922612a5ad854240e78d395885ca82e79918c896c7fb4"}},{"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 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":"tui/src/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0990895c3f6634b96cd7195b12923bcf4f8da6199b77ca7228a566fa135154a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearPanel.LinearPanel (cognitive 110): LinearPanel.LinearPanel has cognitive complexity 110 (threshold 15). Drivers by points: boolean chains 43, ternaries 26 (40 pts), if/else 20 (22 pts), error handling 3 (5 pts) (nesting depth added 18). Of this number, 47 points are the body\u0027s own statements and 63 belong to 23 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/LinearPanel.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f4c847fb62bf8de57cee8e36edf454650bfc8ca4c9b937e078b4e41a0bb92"}},{"ruleId":"D2","level":"warning","message":{"text":"createSystemSettingsActions.createSystemSettingsActions (cognitive 110): createSystemSettingsActions.createSystemSettingsActions has cognitive complexity 110 (threshold 15). Drivers by points: if/else 43 (52 pts), error handling 20 (25 pts), boolean chains 18, ternaries 11 (13 pts), loops 2 (nesting depth added 16). Most of this is not in the body itself: 0 of the 110 points are its own statements and the rest belongs to 22 function literals inside it that branch (lines 417, 371, 219, \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/createSystemSettingsActions.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"468af4a5571582b51f66e14e937466adcd3869edd4527897ec56d7b98ddb7054"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderSettings.ProvidersSettings (cognitive 106): ProviderSettings.ProvidersSettings has cognitive complexity 106 (threshold 15). Drivers by points: ternaries 35 (69 pts), boolean chains 27, if/else 10 (nesting depth added 34). Of this number, 19 points are the body\u0027s own statements and 87 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/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"f859db55956c3fc7c6cb5f8583d1c62f5602e91a238e87c38408a06a82ed1177"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._client_projection_event (cognitive 104): transcript._client_projection_event has cognitive complexity 104 (threshold 15). Drivers by points: if/else 37 (79 pts), ternaries 6 (12 pts), boolean chains 11, loops 1 (2 pts) (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/webui/transcript.py"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7c6a03a5ed5122263e21872c03446055d3f4812922a1b8a9caaffe2736f8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.projectThreadEvent (cognitive 103): thread-event-projection.projectThreadEvent has cognitive complexity 103 (threshold 15). Drivers by points: if/else 37 (63 pts), ternaries 13 (25 pts), boolean chains 15 (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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1592bee9f2e6c5fd7c3b6f4ad7d64b4a4c661fc36cee44a825d728945374f49"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._run_core (cognitive 93): AgentRunner._run_core has cognitive complexity 93 (threshold 15). Drivers by points: if/else 31 (69 pts), boolean chains 17, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/runner.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccabbb3ac066fc51ec60bb153fe4736e3974efef4de8763afdde18a3cc75c36"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelSetupPanel.ChannelSetupSurface (cognitive 93): ChannelSetupPanel.ChannelSetupSurface has cognitive complexity 93 (threshold 15). Drivers by points: ternaries 27 (43 pts), if/else 25 (26 pts), boolean chains 18, error handling 5, loops 1 (nesting depth added 17). Of this number, 47 points are the body\u0027s own statements and 46 belong to 21 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/channels/ChannelSetupPanel.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fbccac436888832765d30822def6985ce02c8d85edea726ee439fdb08ce3ba"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeSettings.RuntimeSettings (cognitive 92): RuntimeSettings.RuntimeSettings has cognitive complexity 92 (threshold 15). Drivers by points: ternaries 47 (85 pts), boolean chains 4, if/else 2, error handling 1 (nesting depth added 38). Of this number, 81 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/RuntimeSettings.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd93d14fc82e8106394e562f5cf5ee858d8dd6812d3527a3acc0d7b4c5a6ba7"}},{"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":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"953016fd59b1c01ae3d0742911e756ead9119c7d66685795f8864988de44efdc"}},{"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":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f72d79f1531654abc378ef0784be19efd7d49c7cf7b8784c360e51b3d4bb1cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPresetBadge.ModelPresetBadge (cognitive 90): ModelPresetBadge.ModelPresetBadge has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 22 (42 pts), if/else 22 (30 pts), boolean chains 18 (nesting depth added 28). Of this number, 44 points are the body\u0027s own statements and 46 belong to 18 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/ModelPresetBadge.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9c2323f8534ebcdc1bd682e2fe9ab80e10de3670abaf7b386f96b7911ae271"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProvider._run_with_retry (cognitive 87): LLMProvider._run_with_retry has cognitive complexity 87 (threshold 15). Drivers by points: if/else 22 (58 pts), boolean chains 14, ternaries 6 (14 pts), loops 1 (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/base.py"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9e56b19463f0d660e6758aa90345248f6888c42a69e58648b201d229e8373"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.AutomationsSettings (cognitive 82): AutomationsSettings.AutomationsSettings has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 26 (67 pts), if/else 7 (8 pts), boolean chains 7 (nesting depth added 42). Of this number, 36 points are the body\u0027s own statements and 46 belong to 6 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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a977fc8696de3e192e3ec7d24a8de8d64db8c03d393216b2ee9167b5d3f1ceea"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider.chat_stream (cognitive 81): OpenAICompatProvider.chat_stream has cognitive complexity 81 (threshold 15). Drivers by points: if/else 16 (44 pts), ternaries 3 (15 pts), boolean chains 11, error handling 4 (6 pts), loops 2 (5 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its 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":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29243159cab683864dc467e027ac4314d9eae0d171a4a45fbefbc73b52072bf"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.handleMessage (cognitive 81): NanobotClient.handleMessage has cognitive complexity 81 (threshold 15). Drivers by points: if/else 36 (49 pts), boolean chains 17, ternaries 6 (14 pts), error handling 1 (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/lib/nanobot-client.ts"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"e813e3dd552bd7a79ca877d56e736977ae2ea46bafe89097aea5d70837bf461c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._parse_chunks (cognitive 78): OpenAICompatProvider._parse_chunks has cognitive complexity 78 (threshold 15). Drivers by points: if/else 21 (55 pts), boolean chains 14, loops 4 (7 pts), ternaries 1 (2 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/providers/openai_compat_provider.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c859933b0beb2cd631b4ba6d76ab9937f5072de0393ad89ceb186fc726417f8"}},{"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":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd853a9df3517e3f4d8d210e6674a9fddd799547953c2856831caf0a67f63a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"FallbackProvider._try_with_fallback (cognitive 77): FallbackProvider._try_with_fallback has cognitive complexity 77 (threshold 15). Drivers by points: if/else 25 (48 pts), boolean chains 15, ternaries 4 (11 pts), error handling 1 (2 pts), loops 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/fallback_provider.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8772b8b2c6201765a38701e2c1c0f008dd73340f6a371d19c5dd5bd365086ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._build_kwargs (cognitive 77): OpenAICompatProvider._build_kwargs has cognitive complexity 77 (threshold 15). Drivers by points: if/else 29 (45 pts), boolean chains 24, loops 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af4808d9da040c0cdbbc869c3fb5eb2b6b0df1dc69817433676ea84b219caf2"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeConfigSettings.RuntimeConfigSettings (cognitive 77): RuntimeConfigSettings.RuntimeConfigSettings has cognitive complexity 77 (threshold 15). Drivers by points: ternaries 18 (54 pts), boolean chains 19, if/else 4 (nesting depth added 36). Most of this is not in the body itself: 5 of the 77 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 171, 156, 205, \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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"742118ca94708ee3b2a8c81ed66d57d7f10300287043deb2cb20e0b453dc1d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._list_sessions_unlocked (cognitive 76): JsonlSessionStore._list_sessions_unlocked has cognitive complexity 76 (threshold 15). Drivers by points: if/else 12 (49 pts), ternaries 3 (12 pts), boolean chains 6, loops 2 (5 pts), error handling 2 (4 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its 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":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8d2794f7aedb64742626c4191234aed0af103fe0205c5dbcbf08573fc27107"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelQrConnectFlow.ChannelQrConnectFlow (cognitive 76): ChannelQrConnectFlow.ChannelQrConnectFlow has cognitive complexity 76 (threshold 15). Drivers by points: ternaries 18 (35 pts), boolean chains 21, if/else 15 (16 pts), error handling 4 (nesting depth added 18). Of this number, 48 points are the body\u0027s own statements and 28 belong to 11 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/ChannelQrConnectFlow.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"84077121b67522a67f288df1a5903b487ee2e6ae76d8650b49eff62eaa4cb0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.get_history (cognitive 75): Session.get_history has cognitive complexity 75 (threshold 15). Drivers by points: if/else 23 (52 pts), boolean chains 10, loops 5 (9 pts), ternaries 1 (4 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":"nanobot/session/manager.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1606225f1168575c91c878ff73124b062b3bf1fb309d1e0b50154b5f219829"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter._dispatch_message (cognitive 75): WebUICommandRouter._dispatch_message has cognitive complexity 75 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 19, ternaries 9 (15 pts), loops 1 (2 pts), error handling 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/webui/inbound_commands.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"7597e9a15c25e8a0f3a2c8c31a340b87ce21934d21a655d6f26f9bc08e1817fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.SettingsPage (cognitive 75): SettingsPage.SettingsPage has cognitive complexity 75 (threshold 15). Drivers by points: ternaries 22 (43 pts), boolean chains 19, if/else 11 (12 pts), match/switch 1 (nesting depth added 22). Of this number, 34 points are the body\u0027s own statements and 41 belong to 11 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/SettingsPage.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6422192c171eb7e07e2967835807d8a50dbf42f8371b76639325853b3ac446"}},{"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":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b2a666445ea5c129a617e3fc5a869518f008e3471a9f7b71c8b2fcc27849ac"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._parse (cognitive 74): OpenAICompatProvider._parse has cognitive complexity 74 (threshold 15). Drivers by points: if/else 20 (43 pts), boolean chains 23, loops 4 (6 pts), ternaries 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_compat_provider.py"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bcef3db0c17c95a5650791211e24885ec4d4e906adbf6deb701a07d37c5c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._save_turn (cognitive 71): AgentLoop._save_turn has cognitive complexity 71 (threshold 15). Drivers by points: if/else 23 (49 pts), ternaries 5 (11 pts), boolean chains 10, 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/loop.py"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1a7db953f5bbf2a19ceab509a9d254b29190358caf54a62dbeec9b41e02afb"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerUsagePopover.ComposerUsagePopover (cognitive 70): ComposerUsagePopover.ComposerUsagePopover has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 34 (55 pts), boolean chains 14, if/else 1 (nesting depth added 21). Of this number, 39 points are the body\u0027s own statements and 31 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ComposerUsagePopover.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3425bf3988cea845d9b30cccc5d5b5b91400765d9b9d2b717880edde691cf071"}},{"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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cd850bbae582f8f340709a0c19f86a926e9b37d21178b97c0c53b4d0ba7182"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationsSettings.AutomationDetailPanel (cognitive 68): AutomationsSettings.AutomationDetailPanel has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 30 (49 pts), boolean chains 16, if/else 1 (3 pts) (nesting depth added 21). Of this number, 63 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":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fbd4a8af71119bc2445283ab4409138606805fee1a549c77394e950364188f"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.decodeInboundEvent (cognitive 64): protocol.decodeInboundEvent has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 38, if/else 20, 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/protocol.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5091a7bee80be32c7abda658d12a8562420c83b98f9cfce6d0d453612341bae"}},{"ruleId":"D2","level":"warning","message":{"text":"useSessions.useSessionHistory (cognitive 63): useSessions.useSessionHistory has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 20 (28 pts), if/else 19 (22 pts), boolean chains 11, error handling 2 (nesting depth added 11). Most of this is not in the body itself: 2 of the 63 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 453, 561, 478, \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":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6ad2983ef90a1d8625f3bb6539c84e13abadc6526cec5d4970a0d54b90738b"}},{"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":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c5f0c1c222783a554c906db61adba72e53d72b9345cdcd961c0a19c328278c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.AppsCatalogSettings (cognitive 61): AppsSettings.AppsCatalogSettings has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 22 (49 pts), boolean chains 9, if/else 3 (nesting depth added 27). Of this number, 47 points are the body\u0027s own statements and 14 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/system/AppsSettings.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"803fe884a82bfe2d3ae6f3be746f23d9e87d3507e6672fff00b4dc76c8682ee2"}},{"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":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"3401fb53b72dace4ee69652663616537819d107f53b932c66cde40595a4a7938"}},{"ruleId":"D2","level":"warning","message":{"text":"useAttachedImages.useAttachedImages (cognitive 61): useAttachedImages.useAttachedImages has cognitive complexity 61 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 7 (17 pts), error handling 4 (11 pts), loops 5 (6 pts), boolean chains 2 (nesting depth added 29). Most of this is not in the body itself: 0 of the 61 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 296, 367, 423, \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/useAttachedImages.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff6bd3a7cfca1bb6f732149f3aae884c3d3b4461bef6839e10b9f9f5e01eea3"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.validate_json_schema_value (cognitive 60): Schema.validate_json_schema_value has cognitive complexity 60 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 17, loops 3 (7 pts), ternaries 2 (5 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/agent/tools/base.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5bc3c12d83516a6bd2af49031a3e7c3fabd1bd389fad788cdcafeb9aff87b2"}},{"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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d485925804c878e2d3756532c780fd86c2f275643ba4ff39dc60b387aeb2812a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceControls.WorkspaceProjectPicker (cognitive 59): WorkspaceControls.WorkspaceProjectPicker has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 20 (26 pts), boolean chains 22, if/else 10, error handling 1 (nesting depth added 6). Of this number, 42 points are the body\u0027s own statements and 17 belong to 6 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/thread/WorkspaceControls.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5ddae680fbb581101553f51207ff65ce5559f8d3c88eb43381dfe0d5e535cd"}},{"ruleId":"D2","level":"warning","message":{"text":"EditFileTool.execute (cognitive 56): EditFileTool.execute has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 12, error handling 3, ternaries 1 (2 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/agent/tools/filesystem.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d2ff0bd7e09d2cc8965b6e99b8476a53ea305bd81a90780f19a2cbca534212"}},{"ruleId":"D2","level":"warning","message":{"text":"image_generation._parse_codex_sse_images (cognitive 56): image_generation._parse_codex_sse_images has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (42 pts), error handling 2 (8 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 39). 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/image_generation.py"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b62d6c5e4f6fb8b0ddd1effef25067c3d3fbc149682a9365de58780c966db3"}},{"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.ts"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dab524c14b6d663a98a62c7e27daefd05d42046d352d4dd126d51fe01d747b6"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.webui (cognitive 55): webui.webui has cognitive complexity 55 (threshold 15). Drivers by points: if/else 25 (38 pts), boolean chains 8, error handling 5 (7 pts), ternaries 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/webui.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4069ebf97f2ddc20fa162ae60992e4c7a6325c2380e3dd2d301e1a3a31693d46"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_runtime.update_runtime_config (cognitive 55): settings_runtime.update_runtime_config has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (29 pts), error handling 4 (10 pts), loops 6 (9 pts), boolean chains 7 (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/settings_runtime.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3554f5aa380157a25146ac9c0a3b5db544b161fb0b46a27fba45e979130eb8"}},{"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":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7818edfb9db6d1f84c0a99758d009521be2513fae895b0899e2e7f4c273f857"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICodexProvider._call_codex (cognitive 53): OpenAICodexProvider._call_codex has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 14, ternaries 8 (10 pts), error handling 2 (3 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/providers/openai_codex_provider.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d51129565924541522f0b006911d7cab8a75283a8ad1409bc98703f42b6bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadFileTool.execute (cognitive 52): ReadFileTool.execute has cognitive complexity 52 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 8, error handling 3 (4 pts), ternaries 1 (3 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/agent/tools/filesystem.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"966df64489868813dad2cd1749616a39eb1b5e813cf1cec7b54586ffaa922a61"}},{"ruleId":"D2","level":"warning","message":{"text":"session_list_index._scan_transcript_row (cognitive 52): session_list_index._scan_transcript_row has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (38 pts), boolean chains 7, error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/session_list_index.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"119f60868e3df918116b98f170941322c903aeabb1bf9c3a7959f82c48e85477"}},{"ruleId":"D2","level":"warning","message":{"text":"api.parseThreadProjectionEvent (cognitive 52): api.parseThreadProjectionEvent has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 21, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/lib/api.ts"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dcb0bd8dbfc4468900fdcec636ff6879340b7d2c8f6b6f933439b71adcf0f7"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._build_responses_body (cognitive 51): OpenAICompatProvider._build_responses_body has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 11, loops 1 (3 pts), ternaries 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/providers/openai_compat_provider.py"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dbef3a636eb69fe3c7ab08ebd7bc6853e5e6b7f58fd0fab87795eb56c4aa1d"}},{"ruleId":"D2","level":"warning","message":{"text":"useSettingsController.useSettingsController (cognitive 51): useSettingsController.useSettingsController has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23, boolean chains 21, error handling 3 (4 pts), ternaries 2 (3 pts) (nesting depth added 2). Most of this is not in the body itself: 6 of the 51 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 206, 151, 349, \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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc718b30c63fba9592522dca66bfce963832559b424b5a3add364742f089ba3b"}},{"ruleId":"D2","level":"warning","message":{"text":"MyTool._format_value (cognitive 50): MyTool._format_value has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (24 pts), ternaries 9 (21 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/self.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45e562cd267876266df6cd934ee118cb0600ab4bd3703a4311e6f7ddee6cd2c"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.fetchHistory (cognitive 49): protocol.fetchHistory has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 11 (26 pts), if/else 7 (15 pts), boolean chains 7, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/protocol.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"728a8b09f27957080678eab2865d4206e767cead2d6221b0258dfb067966ee7e"}},{"ruleId":"D2","level":"warning","message":{"text":"useSystemSettingsEffects.useSystemSettingsEffects (cognitive 49): useSystemSettingsEffects.useSystemSettingsEffects has cognitive complexity 49 (threshold 15). Drivers by points: if/else 33 (35 pts), boolean chains 10, error handling 3, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 0 of the 49 points are its own statements and the rest belongs to 22 function literals inside it that branch (lines 94, 205, 58, \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":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08064c9aee388447f33a0bacc6eee5c932126716ffc77242673c13128ebb68"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPPromptWrapper.execute (cognitive 48): MCPPromptWrapper.execute has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (26 pts), error handling 4 (8 pts), loops 3 (7 pts), ternaries 2 (6 pts), boolean chains 1 (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/agent/tools/mcp.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8696882ecb530a6c4ab3d21ba3035687e551e4f37cc05ea06489745efbf8d0"}},{"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":1031}}}],"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":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b86e0e71b868636c9a79130f7e4017d30fd3a406f0e20f398e8a1e6cf1bc79a"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUIOutboundProjector.send (cognitive 48): WebUIOutboundProjector.send has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 7 (14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/outbound_projection.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc30cb1862a8a02eaf92b36e55080824b2527486d5f2bcbc8c109a7511fe4a6"}},{"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":"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":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"305147fc97a82183cc5460d0d706f91d52113bb6211e5bf31f2ab73d6e66b606"}},{"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":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b5cd841a9185ea486984657897b2abc8648da231b4b871f1c62b05fa1b8adf"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageBlockMenuActions (cognitive 47): MessageBubble.MessageBlockMenuActions has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 17 (30 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":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4754b55e048505c8ac642988988f865aef8cf77bff8a029742a434356d2c5b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.FoldedAgentActivity (cognitive 47): AgentActivityCluster.FoldedAgentActivity has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 12 (24 pts), boolean chains 14, if/else 8, error handling 1 (nesting depth added 12). Of this number, 35 points are the body\u0027s own statements and 12 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/thread/AgentActivityCluster.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaabdc220d67aea3eab02f564556705888505a21268fc226e2a801d31d497b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._guard_command (cognitive 46): ExecTool._guard_command has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 7, loops 2 (4 pts), error handling 1 (3 pts), ternaries 2 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/shell.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7ec8f1c42fc075057e37844dc948f6187fbcbdc6756a43577bd6e42e66e3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities.update_image_generation_settings (cognitive 46): settings_capabilities.update_image_generation_settings has cognitive complexity 46 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_capabilities.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb8465ddc7f729ac257d4765104001b7adb01a2fedbd34fd88ab67c41fc3540"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.submit (cognitive 46): NanobotTui.submit has cognitive complexity 46 (threshold 15). Drivers by points: if/else 32 (39 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.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6243e968a55e1ce8aa0619870d761d7fd28345764612827fad704a74d8399c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageBubble (cognitive 46): MessageBubble.MessageBubble has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 16 (32 pts), boolean chains 10, if/else 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"59748799de75f8119446e3461686d8ca90f545b8a9d61d0665dc4a70859681bf"}},{"ruleId":"D2","level":"warning","message":{"text":"useComposerMentionInput.useComposerMentionInput (cognitive 45): useComposerMentionInput.useComposerMentionInput has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 11, ternaries 5 (nesting depth added 7). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 12 function literals inside it that branch (lines 57, 84, 149, \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/useComposerMentionInput.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1b88fe0e68305a6845223f8f840adf1b3ccd14cd9490e73fa3ac165be167a1"}},{"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":422}}}],"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":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1cccd0a17761b6b32153f4bcb9b9ccb4b94611b747169dbdca92480ddbbb39"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsCatalogSettings.SkillDetailSheet (cognitive 44): SkillsCatalogSettings.SkillDetailSheet has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 16 (33 pts), if/else 6, boolean chains 3, error handling 2 (nesting depth added 17). Of this number, 30 points are the body\u0027s own statements and 14 belong to 7 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/SkillsCatalogSettings.tsx"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"892f749ef4576791b902b630f90abe86375a6f9f983fc67dfe90832f6e97b441"}},{"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":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd6fc6722dbf0336e4e70e2ceab324145334dfcbe08f7e533ee6da2159fb48d"}},{"ruleId":"D2","level":"warning","message":{"text":"session_list_index._scan_session_row (cognitive 43): session_list_index._scan_session_row has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 7, error handling 1, 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/webui/session_list_index.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eea0264ae7e791d504ebd97ba868702b2f7dab61443d7286d1488377a67842"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelsSettings.ChannelsSettings (cognitive 43): ChannelsSettings.ChannelsSettings has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 15 (28 pts), boolean chains 10, if/else 5 (nesting depth added 13). Most of this is not in the body itself: 15 of the 43 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 128, 56, 61, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/ChannelsSettings.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4aec20b9b724829dd930ff21096892279fb873faeaea08ce6eca8bec6ed7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"transcription._post_stepfun_asr_with_retry (cognitive 42): transcription._post_stepfun_asr_with_retry has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (25 pts), error handling 4 (8 pts), ternaries 2 (4 pts), loops 2 (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/providers/transcription.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c315f0a9f6e35ac654e6fa36a2bde3913c7d61999d132cfe23f753f31768c7"}},{"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/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82bc6a7d7c526b258ea839589d6d9a2450a87bcafca3cf5e80ea18d9b7f20ea"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsSettings.McpCustomServerPanel (cognitive 42): AppsSettings.McpCustomServerPanel has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 19 (37 pts), boolean chains 5 (nesting depth added 18). Of this number, 40 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":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"6728438181e7b8b02c2bce895fa8555eff9837975bff3e2af3ea6a9a9538287d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatProvider._sanitize_messages (cognitive 41): OpenAICompatProvider._sanitize_messages has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (26 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":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a982538c41e63eba7e210b0ed8bc0d48812c677118304065d50f469a6ba912"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.fetchMentionCandidates (cognitive 41): protocol.fetchMentionCandidates has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 5 (9 pts), boolean chains 8, loops 4 (6 pts) (nesting depth added 18). Of this number, 39 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":"tui/src/protocol.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"6144e7af221fc6ab428ea84057ae28b958b56463bdd8d724fde7120b175cfb85"}},{"ruleId":"D2","level":"warning","message":{"text":"useCapabilitySettingsActions.useCapabilitySettingsActions (cognitive 41): useCapabilitySettingsActions.useCapabilitySettingsActions has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 17, if/else 17, error handling 4, ternaries 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 0 of the 41 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 139, 74, 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/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f796ba90a2eef0ec7f019cef9802c6fd31e0ffa8084e05820875645501fdb90"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUISettingsRouter.dispatch (cognitive 40): WebUISettingsRouter.dispatch has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (26 pts), loops 2 (6 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_routes.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"826f3635b5710feefe7c7f6632447853f59c77ccc14edd55b60a58be2c69032b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSearchDialog.SessionSearchDialog (cognitive 40): SessionSearchDialog.SessionSearchDialog has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 12 (14 pts), boolean chains 4 (nesting depth added 13). Most of this is not in the body itself: 7 of the 40 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 188, 85, 106, \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/SessionSearchDialog.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f78dee9a8ed9941a1571301609af2b1c8942a4131c6f7556efe07e2bd4b64"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._dispatch_one (cognitive 39): AgentLoop._dispatch_one has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 9, error handling 5 (7 pts), loops 2 (3 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/loop.py"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cec84fdee166e30ba30a9b6ef9dbe03a49a0083e57e8c9485e84a268941eccb"}},{"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":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f54af3949a49774d599e7305a91d651ddcaa7fcffa457ceaad3af0ceb005fea"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers._estimate_prompt_tokens_with_source (cognitive 39): helpers._estimate_prompt_tokens_with_source has cognitive complexity 39 (threshold 15). Drivers by points: if/else 6 (18 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":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"33697994d1e04b96d764d39890472b292f30addbf035cd61f8eec10004ee8318"}},{"ruleId":"D2","level":"warning","message":{"text":"attachment_ingress.store_inbound_attachments (cognitive 39): attachment_ingress.store_inbound_attachments has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 4 (8 pts), error handling 3 (7 pts), boolean chains 2, loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/attachment_ingress.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69aff3355147c59446a9e1c756b8e97e1badf0795ae2f8142f7b24ad4b2981e"}},{"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 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/LinearSecretField.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24bd678ce92a4308e6fd0cd7147362e7bd3e52f6db312677527c82d7d129099"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelInstancesPanel.ChannelInstancesPanel (cognitive 39): ChannelInstancesPanel.ChannelInstancesPanel has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 14 (20 pts), boolean chains 13, if/else 4, error handling 2 (nesting depth added 6). Most of this is not in the body itself: 2 of the 39 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 152, 104, 120, \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/channels/ChannelInstancesPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9906d48d82a00be2a04c33c57849f0aeaede7c6283d760cc14299c1bd6bf17"}},{"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":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"b619568d6a7069b9670979b0b08f9d52cac6b1f86afdb8654fe9d837afc6f672"}},{"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":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"9522133c34fd4cd954f08c594d759a8a32894cc85cc93dfbd851a828b180d6c8"}},{"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":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65166fb896adbf7cdb80b9b9daf2e7f85a2b0fc0b3b8013958d899eda599247"}},{"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":823}}}],"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":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e93417e08196d5253c0d0cba5822596201eb1c0d4f27594d0619e412633c452"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._make_provider_core (cognitive 37): factory._make_provider_core has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 15 (30 pts), if/else 3 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/factory.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1f200f2f9f1000de792237c736f2c6b7b21e0f6fb6b2ea553396e0b661a4cd"}},{"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":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49c74774942eae663a951a4256411816782f1df4e225df19c5a7e2a24b7fa49"}},{"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":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9ee1cfdac12ca0ac49a7070a1774261dd5e70aa2a0cd752f6416a17790648b"}},{"ruleId":"D2","level":"warning","message":{"text":"automation_results.cron_run_response (cognitive 37): automation_results.cron_run_response has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 4, 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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebb0f02a449679ca47169316a445aa03ea54b9e872802b3145e262a3c55770b"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePreviewPanel.FilePreviewPanel (cognitive 37): FilePreviewPanel.FilePreviewPanel has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 15 (31 pts), boolean chains 4, if/else 2 (nesting depth added 16). Of this number, 25 points are the body\u0027s own statements and 12 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/FilePreviewPanel.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c82a2c379e09d86605077efacb2319764cfa499c76a2117e0090abdcd113ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsMarketplace.SkillsMarketplace (cognitive 37): SkillsMarketplace.SkillsMarketplace has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 17 (23 pts), if/else 11, boolean chains 2, error handling 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 21 belong to 17 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/SkillsMarketplace.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"835a1de7823d21d16577ad4e8cc1d06d769a0506b17e532f848139042b8257c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._run_agent_loop (cognitive 36): AgentLoop._run_agent_loop has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 18, ternaries 9 (12 pts), if/else 4 (5 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/loop.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6a7224d5c502366dc82e38046f12871630ca251c2216fb3f2190dfdcca2f2b"}},{"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":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7a6c0e4ce0ecf8e7f7a0af57502c6b39622af3d48907d10204ebf0e1e1e52"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.parse_response_output (cognitive 36): parsing.parse_response_output has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 8, loops 2 (4 pts), ternaries 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/openai_responses/parsing.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"b280565e90b21368b1717b1d303ca7e57f0f39f5d6b7d08b6615f41f6f23d439"}},{"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":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"63748fd89341432dd38bf2439ba4d317a55835dc76f6cd1fe4ae32f68bf7d01e"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._select_transcript_page (cognitive 36): transcript._select_transcript_page has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 6, loops 2 (3 pts), ternaries 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/transcript.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed8e612f542e3de695716ae96f8a3584963adcda0b37850965710d0bdadf54a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatList.ActivePaneRows (cognitive 36): ChatList.ActivePaneRows has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 17 (26 pts), boolean chains 8, if/else 2 (nesting depth added 9). Most of this is not in the body itself: 0 of the 36 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1408, 1451, 1459). 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":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef308b4477c801e375010fec7d5449221caa7380e7c686ad0eb1a6cd992442e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationRunDialog.AutomationRunDialog (cognitive 36): AutomationRunDialog.AutomationRunDialog has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 16 (26 pts), boolean chains 6, if/else 4 (nesting depth added 10). Of this number, 32 points are the body\u0027s own statements and 4 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/AutomationRunDialog.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2967f7be151183d8fc74ddb106b7302ec9bd0922f1dd518ada6248793e487b"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.GoalStateStrip (cognitive 36): ThreadComposer.GoalStateStrip has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 12 (18 pts), if/else 12, boolean chains 6 (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 13 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":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5edae5084e35bb6fc124c5963515d5eb2ff909abf50fbd6adbaee74dec1425"}},{"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":"AgentLoop._build_turn (cognitive 35): AgentLoop._build_turn has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 10, 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":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fd4cb57cb2c57133b8c9629f7178319c4bd2c0cdf1acb788bca564e6e1ea4a"}},{"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":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"230af3e5fa76bfe96c50820a86bc50a7cd87ec983dfcc85827de6211d2ac7cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageTool.execute (cognitive 35): MessageTool.execute has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 10, ternaries 8 (9 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":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2196485e1b7d6ca18f5f5152c36d6ad44140e32f400777ab1bab28bfa63e84fa"}},{"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":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e4b709a92deb792c2eb3360f079eed978062a38e3ba6bf0f8e7de66f279e10"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.write_session_messages_as_transcript (cognitive 35): transcript.write_session_messages_as_transcript has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 6, loops 2 (4 pts), ternaries 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/transcript.py"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb30d104fd43ec07a1ccd5feef749c469cc1a876bf9f8cf2ac9360e00b4169d"}},{"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":"ThreadMessages.ThreadMessages (cognitive 35): ThreadMessages.ThreadMessages has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 17, ternaries 13 (14 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 6 of the 35 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 174, 144, 164, \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":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bc1e68524dacf00105793e4cd4f2c892ab520f4b189dffa04ec81d39f5f7f4"}},{"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":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eb43ea78e0745be3fa66512700e1be25036f0b6aebadfeb3723c0ff74295c1"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnDelivery._publish_event (cognitive 34): TurnDelivery._publish_event has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/turn_delivery.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a622cccf9699430bb48c5f56dfd3aa1e24d482bae6986e465f6abb395c4a2f"}},{"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":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f30145b08def42e1a4385fa1a186f0b2560b112d5570a5f18dce262087f0e32"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter.dispatch (cognitive 34): WebUICommandRouter.dispatch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (24 pts), error handling 5 (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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e87e3553b138478db4fc821de0e2cf6a37556e2ae46d7d9065be1d96e2f32ab"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_automation_action (cognitive 34): GatewayHTTPHandler._handle_webui_automation_action has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 3, error handling 1 (2 pts), ternaries 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/ws_http.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"306253dc64470e90f5c0b7cb9f0ee6d7214744b27a278c5e8ec6cfdbe83be436"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTextRenderer.MarkdownTextRenderer (cognitive 34): MarkdownTextRenderer.MarkdownTextRenderer has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16, boolean chains 9, ternaries 9. Most of this is not in the body itself: 3 of the 34 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 551, 538, 547, \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":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"26885ce7cf7a8405acd05cd18fbae7d7ad28cf83ba993cd1bd99d13229490ee0"}},{"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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e4840f8f3c1c29eef68f93553164bc621a3f9e25062c852cddcd194262a3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ThinkingReasoningShell.ThinkingReasoningShell (cognitive 34): ThinkingReasoningShell.ThinkingReasoningShell has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 13 (25 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":"segmented-control.SegmentedControl (cognitive 34): segmented-control.SegmentedControl has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 11 (14 pts), boolean chains 6 (nesting depth added 5). Most of this is not in the body itself: 7 of the 34 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 153, 109, 65, \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/ui/segmented-control.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdedda2243bd72410cfa9f8a1798d736e83c54be93fa96062e771c94669e284a"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._repair_unlocked (cognitive 33): JsonlSessionStore._repair_unlocked has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/session/manager.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca12fb62b25e97026306211103553e87c4b500cfd0da08bbda178fdd49cb605"}},{"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 literals inside it that branch (lines 932, 897, 993, \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/App.tsx"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"705b784180d916cecf231a22448d8e9d462d37129c7855c0d38f15400aa85df5"}},{"ruleId":"D2","level":"warning","message":{"text":"useVoiceRecorder.useVoiceRecorder (cognitive 33): useVoiceRecorder.useVoiceRecorder has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21, boolean chains 9, error handling 3. Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 15 function literals inside it that branch (lines 164, 243, 155, \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/useVoiceRecorder.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37bc25abed215398442154d92fe9d5fa1bb066bb0ed8743a415f07e1ec76649"}},{"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":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f3e8aed9dd673f7bb5f67f48c09a6e43a5014c08d848735b8703be5f7f1bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.run (cognitive 32): AgentLoop.run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (20 pts), error handling 3 (6 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/loop.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9726c6b311179c92584801b1d4c8af270a776cc14f9c07d247faf346c53eadde"}},{"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":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9fbccef203fd83a8f42f695de84e6a31e1c0f20e9a04935c6b9e4ab48ab582"}},{"ruleId":"D2","level":"warning","message":{"text":"server.handle_chat_completions (cognitive 32): server.handle_chat_completions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 7 (8 pts), boolean chains 4, loops 1 (2 pts), ternaries 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/api/server.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"db29d452c2db51fbff447a57d33d13c493dd02dd82dc7c78709d99a04f72cada"}},{"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":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98b02443755fc39f52659f6a9a61c92d1bbab253f876f5f6047254c5e8c6961"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.agent (cognitive 32): agent.agent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (21 pts), error handling 4 (6 pts), boolean chains 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":"nanobot/cli/agent.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecba3995058c89119beeee59b41e58631ba23b7db781f98afa80a0a5d2548775"}},{"ruleId":"D2","level":"warning","message":{"text":"session_list_index._reconcile_index (cognitive 32): session_list_index._reconcile_index has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, ternaries 3 (6 pts), loops 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":"nanobot/webui/session_list_index.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbc991324a360c541eb5f7b749999f7217c64c7094746cfae595f3d07a248b8"}},{"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":630}}}],"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":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b9956c9221edbc597f02ce6f6e0fc6d6d7b9bbc8e08ddfa79ea049ebb9aab2"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._resolve_provider_setup (cognitive 31): factory._resolve_provider_setup has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (11 pts), ternaries 3 (5 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/providers/factory.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e7f0d1d2edb2879ad4e6ad6068c0fc2b29ae05c6dcf457b0303b016f87e592"}},{"ruleId":"D2","level":"warning","message":{"text":"image_generation._download_image_data_url (cognitive 31): image_generation._download_image_data_url has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 4 (7 pts), loops 2 (3 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/providers/image_generation.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba514b06be2848460d59e6ecd104bb84f2b940a89b1bb9075d6414172b78ba4"}},{"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":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e89d709b1283db40e6d77c6b1f2bbf1c9a56e14c4fa2e4b187affbbcfb4d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery.restore_runtime_checkpoint (cognitive 31): recovery.restore_runtime_checkpoint has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 5 (7 pts), boolean chains 6, loops 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":"nanobot/session/recovery.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa4caa8f64a088fae160e22e042dce5ca3d14bbf2244e388b738796cb4ed7df"}},{"ruleId":"D2","level":"warning","message":{"text":"local_runner.run_local_trigger_queue (cognitive 31): local_runner.run_local_trigger_queue has cognitive complexity 31 (threshold 15). Drivers by points: error handling 4 (12 pts), ternaries 2 (8 pts), boolean chains 4, if/else 3 (4 pts), loops 2 (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/triggers/local_runner.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"099d33f66a61416c3c0558885d661898650ee8b0d2e8854bcf9206805c269bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_settings_action (cognitive 31): mcp_presets_api.mcp_presets_settings_action has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 7 (13 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/mcp_presets_api.py"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0621fc12184f567fbfff8f201b5a52db2b74a8d8a58c09cc1785a8ff53888c"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeConfigSettings.useRuntimeConfigSettings (cognitive 31): RuntimeConfigSettings.useRuntimeConfigSettings has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 13, error handling 1, loops 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 62, 39, 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/settings/system/RuntimeConfigSettings.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29cb47ca2b41095bc0f333e692211ce001185a86a4a7f35a4d1283c4b0d4284"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.MessageBlockMenu (cognitive 31): ThreadMessages.MessageBlockMenu has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 8 (11 pts), boolean chains 7 (nesting depth added 6). Most of this is not in the body itself: 15 of the 31 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 404, 508, 520, \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":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cfeaa1b44e0b2b1724d07c4d6871aafd10f0d3d5cbe7a7d08d2c737f93a53f"}},{"ruleId":"D2","level":"warning","message":{"text":"Tool._cast_value (cognitive 30): Tool._cast_value has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7, ternaries 3 (6 pts), error handling 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/agent/tools/base.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d663284359b0b783ad3ea1201b33486d419000eca695655efb0d42e5bce03aa2"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolWrapper.execute (cognitive 30): MCPToolWrapper.execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), error handling 4 (8 pts), ternaries 2 (6 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/mcp.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ce2a9e061feaee3d6b5deeb7c03370d2ef4d395a4dbbd3a7990f5accaeef2"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPResourceWrapper.execute (cognitive 30): MCPResourceWrapper.execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 3 (6 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/mcp.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6ff90f563edca5a33712c2163eee5fddaff7f00a827aa79969843e922ccfb9"}},{"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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"805fef9f6b8e4a84437f588a7a5fa5ab952e1613fceb13131d977d17b08e9fba"}},{"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":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"05911982d3d957a1c5237fb94037c9c0ecffa5b02d2b610f70838582fa1408b5"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialForm.CredentialForm (cognitive 30): CredentialForm.CredentialForm has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (20 pts), boolean chains 8, if/else 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 99, 149). 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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6419cac7ae9f2733b29f062305c0fee4cb2a0104584024850b814d6779c169"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.ConnectionPanel (cognitive 30): McpManagementDialog.ConnectionPanel has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 17 (24 pts), boolean chains 6 (nesting depth added 7). Of this number, 24 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":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"d302c4d9aa234807e614d6f54f7dc72bf5a14cc28f4ec3d43c03beb1ee3a7891"}},{"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":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22ea9efe50b408e29859d99c6e0b7fc84b676a0800fc38317d914d1580c0679"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._migrate_from_workspace (cognitive 29): JsonlSessionStore._migrate_from_workspace has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/session/manager.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f63b67477f76a6bec039527865119e1a7082381b6a4b588168e84a07200469"}},{"ruleId":"D2","level":"warning","message":{"text":"WebUICommandRouter.start_webui_request (cognitive 29): WebUICommandRouter.start_webui_request has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 6, error handling 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":"nanobot/webui/inbound_commands.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe00e48e217ea766717d255df3afc4953a258fb828e43cd2025dbf28b7f38ec"}},{"ruleId":"D2","level":"warning","message":{"text":"session_access._visible_projection_events (cognitive 29): session_access._visible_projection_events has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (22 pts), ternaries 1 (5 pts), boolean chains 1, loops 1 (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/webui/session_access.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4854ad7485a530b0882bccf4733d20e45cc38599a60dd0cf619d1c8afcce252"}},{"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":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc89776f1d805d553fcf108c5fb5715ed36499e1f454070a00eaf1dfb492705"}},{"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 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":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dc7e4b31f8a9a63b98df6235ec1ddfabc6bb397881f3b2a4941ebacf00890a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecSessionTool._wait (cognitive 28): ExecSessionTool._wait has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 5 (13 pts), if/else 4 (10 pts), boolean chains 4, 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/exec_session.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd567db021e498419b0c83863c79174024565b2e9d8a28a2605a28122d1b61ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._prepare_command (cognitive 28): ExecTool._prepare_command has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, ternaries 3 (4 pts), error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/shell.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52dd7ccfdce9be47f89fbbd1cb94163b965c675e8608f5cef88486cac029d9"}},{"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":2081}}}],"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":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"08030d75e2a6ee75a09be281c4bef7164cd7596650b361f0d30d9e57607a8c11"}},{"ruleId":"D2","level":"warning","message":{"text":"transcription._request_json_with_retry (cognitive 28): transcription._request_json_with_retry has cognitive complexity 28 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 5 (10 pts), ternaries 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/transcription.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b289bb971286c9d1e94329b7416ddbfd987530b17aa3603cd55daaba6b52d91f"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api._mcp_server_config (cognitive 28): mcp_presets_api._mcp_server_config has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (13 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":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd2dcde2f3b526175fdfa4dbbc07ca4808ca220366a61b0857fe1846aeb518c"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_model_configuration (cognitive 28): settings_models.update_model_configuration has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 9 (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_models.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf873c2fb4fc7c9b024cf12194125ec5bed410f68627a3ace947a17957c8d4b6"}},{"ruleId":"D2","level":"warning","message":{"text":"WeixinPanel.WeixinPanel (cognitive 28): WeixinPanel.WeixinPanel has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10 (12 pts), if/else 7 (8 pts), boolean chains 5, loops 2, error handling 1 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 13 belong to 6 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":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc35ba884d7990f14762427caedae6892dde5208acaab901558ef9564efd0653"}},{"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/protocol.ts"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f821b75854599122edee54edc736564c9b66b13d0b8466c7a0a98f794a401231"}},{"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/diff-viewer.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c756005b5158f2ef9b8946b211f49ed9d8fb6ec2468a566576445abfa9a261bd"}},{"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/transcript.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da8e31620aa7dcb2375cf3634efe78d2ab5c0968346bcbfccb0ad4b1b97430d"}},{"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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0012196bccc5930c8988bb69eb6446dc957e632a8527c2a7bc50236e1dfd9f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadShell.recentComposerRoundUsage (cognitive 28): ThreadShell.recentComposerRoundUsage has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 4 (12 pts), boolean chains 8, if/else 2 (5 pts), loops 2 (3 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":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e5f431e6644a00195f4b63f8af602136fcf608331799ca925a6d87f8659f58"}},{"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":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"6303d6b4313605b49c4400ea37595bbe2bcdcdc1834f97cc5d4e91a95e674069"}},{"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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85d4c5ff4856d2b172b83d71425bf631762697b6531cf573835d332ec1e60d9"}},{"ruleId":"D2","level":"warning","message":{"text":"windows_browser.launch_browser (cognitive 27): windows_browser.launch_browser has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 3 (9 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/windows_browser.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c6d97f4092539c6eba1b6c908cb5efb9e59ebdfae49d4c8fa1584721019b81"}},{"ruleId":"D2","level":"warning","message":{"text":"loader._resolve_in_place (cognitive 27): loader._resolve_in_place has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 4 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/config/loader.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e85d745db2c7ed919129fe63e608fdb7baf2ccd52e1721686756ccdc7515b5a"}},{"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":188}}}],"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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc8c13d64c255acb31c1715d091409caa7b9b01fbcba4bdad175641196f8182"}},{"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/session/recovery.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"216b54ef9c27074523588a253ffc56b0d7608d980ab05a106d7cff2b9d00748c"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.provider_models_payload (cognitive 27): settings_models.provider_models_payload has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 10, 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/settings_models.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"23522a3e48240b64b50fb63ff1cb77b632733f2899cf34914b9bcde5caa8425d"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearMemberAccess.LinearMemberAccess (cognitive 27): LinearMemberAccess.LinearMemberAccess has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 7, if/else 3 (4 pts), loops 1 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 11 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":"nanobot/channels/linear/webui/LinearMemberAccess.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bce215d678292c2afabe1d0a8c78bbd9c06089c2606f35ab9bcd2648eeaea9c"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.fetchSessionUsage (cognitive 27): protocol.fetchSessionUsage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 6, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/protocol.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"576c829ebc0f2d69e48e36b948a6e746c44eba56d8beb1f891b818814e6a3981"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.Sidebar (cognitive 27): Sidebar.Sidebar has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 16 (18 pts), boolean chains 9 (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":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"397bcdffd552e078c9999dd25e75626d44d423974506959dd6d7f6a058346fde"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationCalendar.AutomationCalendar (cognitive 27): AutomationCalendar.AutomationCalendar has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (18 pts), if/else 5 (6 pts), boolean chains 3 (nesting depth added 8). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 277, 254, 356, \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/AutomationCalendar.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"99757818c031b3c1176777aa5d7ab23a73b3b0a23748a7fcb3d04f59a317228b"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.McpManagementDialog (cognitive 27): McpManagementDialog.McpManagementDialog has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 8, if/else 5 (nesting depth added 3). Of this number, 18 points are the body\u0027s own statements and 9 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, 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":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cc46dcc5d2780432aa5ed5b950c45e00afbd0d5650ccd2680da2ba170be9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.normalizeQueuedPrompt (cognitive 27): ThreadComposer.normalizeQueuedPrompt has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 9 (13 pts), boolean chains 7, if/else 5 (7 pts) (nesting depth added 6). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 476). 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":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8b7eacafaaf885e294ac280fbff4588f4a8187c4c6fc0f29b088ec24d4ddb6"}},{"ruleId":"D2","level":"warning","message":{"text":"activity-timeline.projectOrderedTurn (cognitive 27): activity-timeline.projectOrderedTurn has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 2, boolean chains 1 (nesting depth added 10). Of this number, 22 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/lib/activity-timeline.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa6c6f1bd9ddd01152063dbd6b170cef2e63a074f6ba47f4ea67b876cc08a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._restore_turn (cognitive 26): AgentLoop._restore_turn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 1 (2 pts), 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/agent/loop.py"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"146da960f5b1a3d41f267ec34188201ad501c222f8af239a19650c8534356254"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._try_drain_injections (cognitive 26): AgentRunner._try_drain_injections has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 2 (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":"nanobot/agent/runner.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"441abfe8deba219a0d01bd9716c0eb449432a5aa5d12b535456b5fa3686edc07"}},{"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":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"459606942404e95537de0774b6b9d058d80a33165a7cb44ac151a25588cd84f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolLoader.load (cognitive 26): ToolLoader.load has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (19 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/loader.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5286efe8128406acc327ea0de6d4ba3cd530cf5cfc288a60f5cfc6606d3fe293"}},{"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":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db8c6c3ddcbecbe9b479262a5caebb5b12cedfeb79f887fd33b9cb50ef05284"}},{"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":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a127990646644a44ab7110768241e4d67874313a526a87969e8f2211244ad1a"}},{"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":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0398a72ae5779792512c96c2349da86313b5fc801c8b7c97f63faa113ce4e1"}},{"ruleId":"D2","level":"warning","message":{"text":"WebuiSessionAccess._messages (cognitive 26): WebuiSessionAccess._messages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (6 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/session_access.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb102b21ada2bb6178347aef19f4fd89b3e56315f2ef7755a0e56e2a3ed76fb0"}},{"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":838}}}],"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":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"d173eda1a5cd8097921efecec129db111f058783c227530919743a7fa4a093f6"}},{"ruleId":"D2","level":"warning","message":{"text":"install_channel_dependencies.ensure_repository_channel_dependencies (cognitive 26): install_channel_dependencies.ensure_repository_channel_dependencies has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 3 (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":"scripts/install_channel_dependencies.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ed0004e87d1bb309807436248c56f9bb812f455a81538836ec340f9839aeba"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.fetchSessions (cognitive 26): protocol.fetchSessions has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 12 (13 pts), if/else 6 (7 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 886). 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/protocol.ts"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc75d2dce2a9f3f3a91bbe266d76ad4483cc7a13e9d710b3224bf03af0671d1"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewPane.PreviewPane (cognitive 26): PreviewPane.PreviewPane has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10, ternaries 10, boolean chains 6. Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 73, 82, 36, \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/PreviewPane.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7176ab332046b8b2ea82839dd1b4939d1d24ada5ae9a59448cdec8c235fb499"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoomableImage.ZoomableImage (cognitive 26): ZoomableImage.ZoomableImage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 6 (10 pts), boolean chains 2 (nesting depth added 5). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 52, 74, 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/ZoomableImage.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641cd733e7b1fc8b917f45c36a856c9d1a75cb96e570f6041ec3b4bc80e52b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelCatalogRow.ChannelCatalogRow (cognitive 26): ChannelCatalogRow.ChannelCatalogRow has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9 (15 pts), boolean chains 7, if/else 3 (4 pts) (nesting depth added 7). Of this number, 16 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/channels/ChannelCatalogRow.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8440795396ac0a072374b8e0f7ee06d8759a09c0d642e8de53b7be82494b4499"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagementDialog.ToolsPanel (cognitive 26): McpManagementDialog.ToolsPanel has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 11 (24 pts), boolean chains 1, if/else 1 (nesting depth added 13). Of this number, 24 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/settings/system/McpManagementDialog.tsx"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb082812c280d5697c18d4f22b147784a87950b0e97f9d6aa385a0417d65caf"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerUsagePopover.UsagePanel (cognitive 26): ComposerUsagePopover.UsagePanel has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 7). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 493, 485, 478, \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/ComposerUsagePopover.tsx"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c47438d5bb1588237121a4f5f55aa0b7574c6dba9c3d88ebcee8624b4efc3be"}},{"ruleId":"D2","level":"warning","message":{"text":"useSessions.useSessions (cognitive 26): useSessions.useSessions has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 5 (7 pts), boolean chains 6, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 234, 351, 227, \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":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"259286aef33bb9c46f24a614c84ca7ec3693189dc7bd975ed0914cf0e80fd494"}},{"ruleId":"D2","level":"warning","message":{"text":"CronTool._add_job (cognitive 25): CronTool._add_job has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, error handling 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/agent/tools/cron.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada5722dd429560d98dd1e04deee934da76b0b7e637add1ecc38a18bbfcaffd9"}},{"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":1350}}}],"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":1262}}}],"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":316}}}],"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":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5b9c5f948ac3ecb387b010f5a2d43dcf53e0a039b204ce9456a34a3b27018"}},{"ruleId":"D2","level":"warning","message":{"text":"transcription._post_with_retry (cognitive 25): transcription._post_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":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"649e1be41568d08b0bd5bfcd866d99800f896c9f2c1efadd6e4356c70fd0d3f7"}},{"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":39}}}],"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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"618a376f78de2266bf9c10b13ecb5ef19c2d85b6bfb0db7424c7b9876005dfc7"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.estimate_message_tokens (cognitive 25): helpers.estimate_message_tokens has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 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":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89d7ba55d2e2fba1b474016b8391393366df416e8086b347f865005797667e"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_provider_settings (cognitive 25): settings_models.update_provider_settings has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (21 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":"nanobot/webui/settings_models.py"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0e0547a3b7d133366ed0436afb9d66598996794321be06da429209840e1100"}},{"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 7 (14 pts), if/else 5, boolean chains 4, 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":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff24669f7f1ffae13ddf1e2c3a17bf6e244c9aed195d652c7590b070ddd8b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearResetConnection.LinearResetConnection (cognitive 25): LinearResetConnection.LinearResetConnection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 5 (6 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 41, 105, 77, \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":"nanobot/channels/linear/webui/LinearResetConnection.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7517bf23a4f74e79621a25320de786c25e888286ef97646a5e2b729c3634d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerMenu.render (cognitive 25): PickerMenu.render has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (17 pts), if/else 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 21 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/picker-menu.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b31c399d47f4f84170c26a8274157e8543230a8c340c05b30d3baf22876c69"}},{"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/footer-hints.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f648eb8649eaa605f3305c854326da7608ee216ad2a7a35469ff660fffca12"}},{"ruleId":"D2","level":"warning","message":{"text":"App.readShellRoute (cognitive 25): App.readShellRoute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9, ternaries 5 (7 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed37669c92c3dec73221ae304b2f3a9c36b31d7eda4056d31aed9c1ee0a8a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.splitCapabilityMentionSegments (cognitive 25): CliAppMentionText.splitCapabilityMentionSegments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (7 pts), boolean chains 6, loops 1 (nesting depth added 6). 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/CliAppMentionText.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eca758ad751ba7675451ef0be0feead38c48a91e323f6f61a520d3f91ffbd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelValidationProgress.ChannelValidationProgress (cognitive 25): ChannelValidationProgress.ChannelValidationProgress has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 12 (17 pts), boolean chains 6, 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 129, 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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"198f9d43033c5e4bba4e87113a3a950ed605fad5f97e12b1d11892608757956c"}},{"ruleId":"D2","level":"warning","message":{"text":"generic-tool-model.activityLabel (cognitive 25): generic-tool-model.activityLabel has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/generic-tool-model.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1efe3180280971912c3e33814b3c6ca67aa1c2e94f37293596ee8e98b7797a"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.reconcileCanonicalCompletion (cognitive 25): NanobotClient.reconcileCanonicalCompletion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 21 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/lib/nanobot-client.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46cd838de17f561e3569518f43683e68dbc66543cfd1e4b4c70b00a4d0ae3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsLoader.build_skills_summary (cognitive 24): SkillsLoader.build_skills_summary has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (7 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":"nanobot/agent/skills.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe785bbbe3f37e4b2cd011dc8d2d9d822508ab196428d577bda7e55824044382"}},{"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":372}}}],"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":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a96f857dbb887b66093a4f0c294ed5089ff62ba1f6815e75abd984b93eb7e"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._recover_incomplete_turns (cognitive 24): transcript._recover_incomplete_turns has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 2 (3 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/webui/transcript.py"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d0c273d414bf3b71f0d1428e2b67d1d37a7416dfe3112b29090976cbe03960"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.open (cognitive 24): NanobotClient.open has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2, error handling 2 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 9 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/protocol.ts"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fbcf5b8e154998232cb5bcc4673f583e15a7b07335b4dc86b083da40761ca3"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.sanitizeConnectionFailure (cognitive 24): protocol.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 literal inside it that branches (line 1098). 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/protocol.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b3a689534f633894bd9ec308d68e31d0a49802fc56f79600f9ccc15d09d8cd"}},{"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/latex.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44aafc5d29e4f95e108cec0f1af0100f5285a5643f93db66e72a36054d50dc2"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsageCard.TokenUsageCard (cognitive 24): TokenUsageCard.TokenUsageCard has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 7, loops 2 (3 pts), if/else 1 (2 pts) (nesting depth added 7). Of this number, 13 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26c3fb9bc8dd418c36b2d14e544228be8b73cc174cf26e98e112ee4745fe860"}},{"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":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2095a55abaa6c2d5062e6217a7507bdff44c1adb0d2c6a0567a0e7bfb5f258"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMotionCoordinator.flushGeometry (cognitive 24): ThreadMotionCoordinator.flushGeometry has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/thread-motion.ts"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cc1e1b2f057e940c996da263a8a6e2f71cd459de4c7a9d59963ff6db3b8940"}},{"ruleId":"D2","level":"warning","message":{"text":"combobox.useComboboxNavigation (cognitive 24): combobox.useComboboxNavigation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 7 (8 pts), boolean chains 3, match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 56, 32, 48, \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/ui/combobox.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c7e059c42b43b7eed726c7562ff0f1f0e11a664b5ebde4e9cb591cff8b245a"}},{"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":124}}}],"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":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"dada3f62180302eb9d5aa72dbbb3f152bf1d031a04f734cf37207524ab1d5b67"}},{"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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c1ab95609a2e6a3ef2c63cdc0e7cf1dad0da29d93517bab4c100070efa3403"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool._spawn (cognitive 23): ExecTool._spawn has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, error handling 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/agent/tools/shell.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a1c91ccb32362a2c3fdea31ed89d4a7541f8422f64ddf6f32b39fecff9bf24"}},{"ruleId":"D2","level":"warning","message":{"text":"server._parse_json_content (cognitive 23): server._parse_json_content has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/api/server.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"490ef971bbf63f1c0c42a8a454ec6d2b11b4636d9a2eeee91f3af18b2658ac74"}},{"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":1252}}}],"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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d90d505400db7adcb8a63df2d80eda3a461a139a4fba048ff71fc9f606eff96"}},{"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":783}}}],"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":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37235d01b58363da47eaeb1636f91cba123c4f214494d9400ab9eabb791e313"}},{"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":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9439bad7d5308331b0fadca86762874fa9c5cdfdcd3f8e3fbd75448f8e19c958"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._claim_workspace_namespace (cognitive 23): JsonlSessionStore._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/manager.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8742c2ed1654cc97e0983292470ae906937bdc568e2eaa6a35614360eb8ee3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._load_unlocked (cognitive 23): JsonlSessionStore._load_unlocked has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 5 (8 pts), boolean chains 4, 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/session/manager.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae535759a2b4d7f43eaaac38c97af6d1fe36d7e8ae149b45595f43b5f74c86b"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._read_unlocked (cognitive 23): JsonlSessionStore._read_unlocked has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 5 (8 pts), boolean chains 1, error handling 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/manager.py"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4d7493b85e4e7a1efda8358e5d30f06972638e99a83aaa21c2dd1d9f705fdc"}},{"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":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe9792a65c0ffccea4b67c7bde62b52c50f99c53a5a0edc1955abeb08c7b756"}},{"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":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bba21571813171f5b4ed47e8d90bbdfe38f81df1ef4ed83146d3c0de93ca781"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.update_agent_model_settings (cognitive 23): settings_models.update_agent_model_settings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, 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/webui/settings_models.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a78ed2171d6f5e3289f6350e43de86bc9029d6f80c2e188b38f19d26d06085"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_webui_thread_get (cognitive 23): GatewayHTTPHandler._handle_webui_thread_get has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, ternaries 7, boolean chains 4, 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/ws_http.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"4773c2392744ad19b9da35227d9b6abe1334361c2fd73fcdba35e9a46d17c5ab"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-renderers.toolLabel (cognitive 23): tool-renderers.toolLabel has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 8 (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":"tui/src/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aa980bd3a1b4a8951fb76edbd969858c4720629a93a8592b7f8a0bef6119ce"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlock.CodeBlock (cognitive 23): CodeBlock.CodeBlock has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (9 pts), boolean chains 8, if/else 6 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 9 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":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7010b73b4e91f539e8d8865342000f2c2a949f09a64e014d8b5e0b8db98b0b6a"}},{"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 literals inside it that branch (lines 60, 70, 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/FileActions.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"508f41a75283d0c596ccd894c1fb9e0558510753d619a086f2c2879ace6d4200"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReferenceChip.FileReferenceChip (cognitive 23): FileReferenceChip.FileReferenceChip has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 8, if/else 2 (nesting depth added 1). Of this number, 20 points are the body\u0027s own statements and 3 belong to 2 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":"webui/src/components/FileReferenceChip.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1533e099678e6f3f13a44f1c70c6b5c9583ca346502f8c056b948520d44b8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditRow.FileUnifiedDiff (cognitive 23): FileEditRow.FileUnifiedDiff has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 8, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 231, 236, 198, \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/activity/FileEditRow.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b767062ddfbc9f0493065fbf05b30d8277a89702ab3fa2df625241c7be6e8a6"}},{"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":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a617ab9145513906964b2ab7f18e549506ea0eb509c24dfa01fa74916bcbd60a"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.attachProjectedReasoning (cognitive 23): thread-event-projection.attachProjectedReasoning has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, ternaries 2 (3 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":"webui/src/lib/thread-event-projection.ts"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3372d9e33dcc223949fcf8c11685b794ddb3525ed31e3423d7d5d4208725ae"}},{"ruleId":"D2","level":"warning","message":{"text":"execution._execute_tool_call (cognitive 22): execution._execute_tool_call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), error handling 2, ternaries 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/tools/execution.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28bc8307af653effa075d37036aa9865e6f23ac74d731a61457d41aa4f16af3"}},{"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/agent/tools/long_task.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a3bc23b52b953cc1bb8af78fcff54167a3f19b920de4bc85823aed6fbe153b"}},{"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":652}}}],"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":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0945bd6d43fe45a7c284f31c7a24bc50fb4fd7f824e000a68547d479b5c2cea"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_runtime._run_gateway (cognitive 22): gateway_runtime._run_gateway has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 3, error handling 1 (2 pts), 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/cli/gateway_runtime.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"409bb40b83231931e02c170fed3714d34eb940bc0cfd75b157041a40d598eda3"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMUsageStore.usage_payload (cognitive 22): LLMUsageStore.usage_payload has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, ternaries 6 (7 pts), boolean chains 5, loops 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":"nanobot/llm_usage/store.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ebd83798bd3fa54c30e89e0feb07b8deb78a63ad9ccecbff9d7bcd8b54ec3c"}},{"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":123}}}],"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":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"812510947f2264de8e7e2e774c9787d95b261adbef0a2059c5b5325ce2454c87"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_presets_api.mcp_presets_action (cognitive 22): mcp_presets_api.mcp_presets_action has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 1 (3 pts), ternaries 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/mcp_presets_api.py"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7e422efddf1e4108c68f8aa503988f24884edf9020638e1aedcae25e26edb7"}},{"ruleId":"D2","level":"warning","message":{"text":"WebuiSessionAccess.search (cognitive 22): WebuiSessionAccess.search has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (8 pts), loops 3, 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/webui/session_access.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"523e9831141b8190c2a4a80d3915b8c2cd39346ca6fc87663ab1202d80f4518b"}},{"ruleId":"D2","level":"warning","message":{"text":"pty_smoke.main (cognitive 22): pty_smoke.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3, boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/scripts/pty_smoke.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b7c8cc649fc08b4fc3c5bdeaf5caf98b04378010285eb6a8074565c5a2e73d"}},{"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/latex.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8c07d6d2200095fda4332fb5ce1a7ac95c3dc81b0de34b02a7de5c61560ccf"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentTile.AttachmentTile (cognitive 22): AttachmentTile.AttachmentTile has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 9, 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":"webui/src/components/AttachmentTile.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bd05474d2f0f91b8c84ceeabc9bc08fb02bf7918c5abc68bfa5d06088540c1"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSidebar.SettingsSidebar (cognitive 22): SettingsSidebar.SettingsSidebar has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 13 (18 pts), boolean chains 3, if/else 1 (nesting depth added 5). 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 into named stages: move each independent step or branch into 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":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6522abe0e905b3b9e0be957fb6513964c2c5bd90ef36f404e1dd049da9bac4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.ActivityTraceRow (cognitive 22): AgentActivityCluster.ActivityTraceRow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (18 pts), boolean chains 3, if/else 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b05a612cf52e0bae7acd0b38758a6ddeb2ab0d8beff5bc4a2190c812eca7aa"}},{"ruleId":"D2","level":"warning","message":{"text":"RecoveryNotice.RecoveryNotice (cognitive 22): RecoveryNotice.RecoveryNotice has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 4, if/else 4 (nesting depth added 3). Of this number, 17 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/RecoveryNotice.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"503ebbdc69418dd80b7fbf08c74beb33bd58b4132291ebf1154c2f6d32cb7ab9"}},{"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":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d6b73bf0582823b683b7d985620d276720fa89ff1889cf9af99f683d59f686"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._drain_injections (cognitive 21): AgentRunner._drain_injections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (3 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/runner.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3b691d65803e5ec79564c4be8d0840558f14e25182c9bb83fb64030abac253"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_runtime._pick_heartbeat_target_from_sessions (cognitive 21): gateway_runtime._pick_heartbeat_target_from_sessions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 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":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb4a35f935c92246258b1c53855553f7666581b606db46616404b68b5351865"}},{"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":266}}}],"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":819}}}],"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":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d751392ef566a7495e4052631abd3c63626dc2d1a19f4778aac9f1eb91273ec"}},{"ruleId":"D2","level":"warning","message":{"text":"webui_turns.maybe_generate_webui_title (cognitive 21): webui_turns.maybe_generate_webui_title has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/session/webui_turns.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e9415f919c46c20750b275c5197a196927ed4ac5e438f7588f421979dc99ed"}},{"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":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d012391c322e4043105fca940b05cd07b025b4fa5e91730df0094f63c68a24"}},{"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":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5ddfec4a399612291fc293d617844957ba4494820f41ea3f9afa73b7cd7c10"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._dispatch_misc_routes (cognitive 21): GatewayHTTPHandler._dispatch_misc_routes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (17 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":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac72136b06f3b843076b1c53cad386cf3b335dc192b5edf64cdeba4e6a52e24c"}},{"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/latex.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e12f3ee1f0a3a71444973c733cc7acdd582883a98390798230a2acd34e50a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationSettings.ImageGenerationSettings (cognitive 21): ImageGenerationSettings.ImageGenerationSettings has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (14 pts), boolean chains 7 (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into 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":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c598b1778559855ef655dd8f2db779360598a37f283f59cbe1cf90fd1af612"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderSettings.ProviderIcon (cognitive 21): ProviderSettings.ProviderIcon has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 10 (17 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/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"0476851638f621554f1fcdb097ce63951a4b3285db6b824bec9b018384f82de6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionInfoPopover.SessionInfoPopover (cognitive 21): SessionInfoPopover.SessionInfoPopover has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7, boolean chains 2, error handling 2 (nesting depth added 5). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 85, 103, 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/thread/SessionInfoPopover.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e3c70d7e21ea0a39ccbb2c8a7e50c62831db44e01eee69817425fb2fbed47c"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.completedMessageBlocks (cognitive 21): ThreadMessages.completedMessageBlocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 4 (nesting depth added 4). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 987, 998, 990). 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":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aed0ccc2e9389d6779d91bde8aec03719d692ad0eef815f5aebba7435835679"}},{"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":132}}}],"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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e0f30cee460aecaf8728327d75b99d44a410a07b502232c2c1637c9bdd923"}},{"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 220, 196, 198, \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":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8fb4663152028291143a9cdb53c6f424b9c8fbd0c24bbecb27523b16998e62"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.__init__ (cognitive 20): AgentLoop.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), ternaries 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":"nanobot/agent/loop.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be42e94a17569717f2a08c47f2476643bc2171a22eab1fa9c596efc7260e5e0"}},{"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":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03d041b71f646e6e079fdd093b74fc9b6072563454d4f35713744d74e475f7b"}},{"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":447}}}],"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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdaca00ba5008967d878b9ec85f3566e448b231b0d0a96432ee402946484630"}},{"ruleId":"D2","level":"warning","message":{"text":"terminal._maybe_print_interactive_progress (cognitive 20): terminal._maybe_print_interactive_progress has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6 (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":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1024d0e9be62a14dd930eb033edc4965e5fa2b1d7cc2822e78f78ec67c6f84b"}},{"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":428}}}],"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":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2247fec1e56e2afd991432d4c19c04a12ab33e6037c419343c0ac40308957b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebuiTurnRoutePolicy.__call__ (cognitive 20): WebuiTurnRoutePolicy.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, 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":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cdd6c823a4045bef220fc401cb5dfb91edad078f006522e9942bc3226c3f59"}},{"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":68}}}],"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":479}}}],"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":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a3ee6da541f5ee96f6f1b443ca440f377a6c09d9dbc2126846969c972c7c52"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSettingsHandler.handle (cognitive 20): ModelSettingsHandler.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (5 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e36506b1d497e1048c641eed9ae0f645478a9cb2ed8b4a6bc5f7d5953ba127b"}},{"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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd5f49c24ce491ad022ccbf7c9844505a3549b3581c719654792a079997168a"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript._compact_completed_stream_deltas (cognitive 20): transcript._compact_completed_stream_deltas has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (5 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/webui/transcript.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99918ad475277e92fcdae1d7b78c359792a84b69925cb2dad49fd0a8ebbd103"}},{"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":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ea1478ba88231f9cd3ea51c4e10031a0cc07d1da1e4ec8060c3a7f2b04792e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.CliRunRow (cognitive 20): AgentActivityCluster.CliRunRow has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11 (16 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca65f773f9b24d1f95ec70dd0ac86700fe1d942cbf44f7430407399192828f8d"}},{"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":"NanobotClient.sendMessage (cognitive 20): NanobotClient.sendMessage has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 5 (7 pts), boolean chains 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c449013b8d65768b8ba5202a4b9eeb5c6fd16bd1da8b52b12746c46011f3292"}},{"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":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7b6becd0239749d4d5acc781590f82e1f0b5cd4c368184df0cdcfc434ac8b2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._persist_user_message_early (cognitive 19): AgentLoop._persist_user_message_early has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 2 (4 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/agent/loop.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"49480cb4cb56841a06409cc6dd8fc33b59d673fd7cc1f94f0003356e4ccbb832"}},{"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":529}}}],"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":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"56129d5f8f5306a7fbffdfb2ddf17c0bdef0dd63b703ab6da611e96e800e7413"}},{"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":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c0322a29b5940c700f3d058f52fa46ddc3335dccbb7e11d62cb87768b46072"}},{"ruleId":"D2","level":"warning","message":{"text":"CronService._execute_job (cognitive 19): CronService._execute_job has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 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":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d45ffa3d9c256f71ecdd8e9032250f93beab72bfe49b86f7fcb5812752de3"}},{"ruleId":"D2","level":"warning","message":{"text":"optional_features.install_extra (cognitive 19): optional_features.install_extra has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 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/optional_features.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0298e3b02132ba979cca1bd0fdd502cd4f5edc7f983db8a385d812a03c2cf27"}},{"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":230}}}],"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":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e703eea8dc7386584a67077fa59ddc1736c2397c1dbc3db6b31d8cf4357bfb69"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.rename_model_preset (cognitive 19): SessionManager.rename_model_preset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), loops 2 (3 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/session/manager.py"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"232cadf2a517678ab261193ba24eb95a15e516431d891e1f8043e9e4fec1e9a2"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemSettingsHandler.handle (cognitive 19): SystemSettingsHandler.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, error handling 1 (2 pts) (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/settings_system.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f541145fcaa12f1f6b09f204b99a760c66ffd7f4841b617653a561e268af6c1"}},{"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._client_projection_events (cognitive 19): transcript._client_projection_events has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/transcript.py"},"region":{"startLine":2403}}}],"partialFingerprints":{"codehealthFindingId/v1":"344ae88f3fca136fc734baeae2fd49a82471622151f9cd913761dce1841d8608"}},{"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":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf029fe1c5b90ee50c673ac4aad9b72bd7bdc7701458405331b2919bcf16b8"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageMedia (cognitive 19): MessageBubble.MessageMedia has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (4 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"50177d97239f55b71e02438fa75880a7412fd24338ed127cc46baf84b03565e0"}},{"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 literals inside it that branch (lines 157, 74, 67, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/AutomationRunAtPicker.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccc4272117ab03c2ee6253b79cdbe2eabd3b594aa04c86a35a80482bf2bbf70"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentActivityCluster.McpRunRow (cognitive 19): AgentActivityCluster.McpRunRow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10 (15 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":"webui/src/components/thread/AgentActivityCluster.tsx"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d63af0b987886d48eeed4d12d2e5c7b4b26513a43612d59a61dc35003482738"}},{"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":"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":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da7c991adf106328ae870e8dd9dc9f9547ad12954a1485538cc631e0e186804"}},{"ruleId":"D2","level":"warning","message":{"text":"thread-event-projection.projectToolActivity (cognitive 19): thread-event-projection.projectToolActivity has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (15 pts), boolean chains 2, 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":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fad252f566c2923b04afd520a3626c840a1c31d0d7125e2b244bc3d6aea8e7e"}},{"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":72}}}],"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":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0c35e34dca8052aaaa67fcc826596e39fee229717a8e510d446f114f1b9a7f"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProvider.reload (cognitive 18): MCPProvider.reload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, 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":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4565ccedb9b4df0c0fb72dbe5192d01f0492af5680243c59d356219e50d142"}},{"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":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dfc07e36a8e91eab760358f692579a3c32deca443f8eff33264625d9b89ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnDelivery.complete (cognitive 18): TurnDelivery.complete has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), 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/agent/turn_delivery.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e3978c54804a7beae0e4496feea178da1ac5d263ef20884c5966b1ad0f251b"}},{"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":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f697228bc8757b0e880cf7cf223821235c212768dd44c4d45527fabab07895"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProvider._strip_image_content (cognitive 18): LLMProvider._strip_image_content has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (5 pts), loops 2 (4 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/base.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"622c5c3cda72c10a9750296d6064acaee1e22ac28e0fbffabfe2e97f46225bda"}},{"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":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d3d12dd6b95b32395a2a75910537e0b41729046f14278bbd589374d98138ec"}},{"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":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"5540ba6d0f1bef20d6041543f402459458037afa672ed88115e55fe0a058d36e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_compat_provider._extract_text_tool_calls (cognitive 18): openai_compat_provider._extract_text_tool_calls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, error handling 1 (2 pts), 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/openai_compat_provider.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0193de3b88efa33917ca48f06572cf5fb8f182207c1f91c9eb2a406b9b14af0"}},{"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":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2ec2c15524ca3d567d90462f1ec4bcc34ad4daa0946daf316988572000c8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlSessionStore._read_metadata_unlocked (cognitive 18): JsonlSessionStore._read_metadata_unlocked has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 4 (7 pts), boolean chains 1, error handling 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/session/manager.py"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f32a76e36e499b620d6e5b7d40a4cb4a6a3fc51379afe512b3f06c97d47fdc"}},{"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/session/recovery.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"f239631130b891ba02b6b4eb25e90bdfb9c9d11914a801b724167204cd16a073"}},{"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":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa39f9dc01b739a39867271e81fa0f4be7fcb71ed0ffa1af3e07f915e756e102"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities.update_api_settings (cognitive 18): settings_capabilities.update_api_settings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (4 pts), boolean chains 3 (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_capabilities.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"527a5d5685c639bdbd61b83bb4c9b2f4269bf6b0f7476b1f60326bd00e1277f2"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.complete_oauth_provider (cognitive 18): settings_models.complete_oauth_provider has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 3 (4 pts) (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/settings_models.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"655030727a6150d1d8170803192a7fcc883864961e2dc193f1a27c650e07b271"}},{"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":27}}}],"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":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e91a804e643c5e67eb1b0a8b18dbf9a609140f8e2da3e778ad04b7ddafa0530"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHTTPHandler._handle_session_delete (cognitive 18): GatewayHTTPHandler._handle_session_delete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 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":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2775b8495c1158f3d8839b55b4040c048e328b4ca77911b6ac47364ff79d255c"}},{"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":1367}}}],"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":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"4227af57865ef9daf2210a2e9ceb36d44a09e0cc357ff1045775195a3ad7a35c"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotTui.prepareChat (cognitive 18): NanobotTui.prepareChat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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.ts"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"032f3784ebda54ec23ecc589063e3019131b31cafb9f3ecdfc690518672aa1da"}},{"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":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e4e7d0e84098f04d28f7dc6e30e9a6e751b5a4462af4024524cbce65b777fd"}},{"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":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"798ce2079e247fbdbf6e56082689fba561b42fe6e66969da4a4bcfb168397008"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMessages.currentActivityClusterIndices (cognitive 18): ThreadMessages.currentActivityClusterIndices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 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":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb04bd360ad31cb590ba328af6a4e0d66dcf16878b23942069731e6ecd6910e"}},{"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":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd94bf9dda90aad7e4074af46d8743a9487e83b1a75a868e59c6e7d725d0c21c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGovernor.summarize_provider_compaction (cognitive 17): ContextGovernor.summarize_provider_compaction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, ternaries 2 (4 pts), error handling 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/context_governance.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"68265605c9514a63dd781778da7c9768428704473ee226193ec9e830c78f8661"}},{"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":769}}}],"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 8 (10 pts), error handling 2 (3 pts), loops 3, 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":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"832035eef242265fe028dc91f4d4847e96684727ed111a3f23034dc29650e415"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsLoader.list_skills (cognitive 17): SkillsLoader.list_skills has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/skills.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"23163d9552fac29b2f81efa827fdafa88d548d5896d13efd4e777fbf85033d9b"}},{"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":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44c3e49749c7aa43f33f21ac8fb6e1a4a643217ddce423730b97015b41d1c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecTool.execute (cognitive 17): ExecTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 3, boolean chains 2, 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":"nanobot/agent/tools/shell.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"74404eb25c743e4d0930aa38dda1651ab397709a0ddb391093fd521a870d197d"}},{"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":999}}}],"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":"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":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae957897c9ea4bf47d80b9330cfc9febfe9356e044ce442ae7fce89b0641d32"}},{"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":77}}}],"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":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e7302dd173e42454d9f6b6a22d6c96754284d9832201c70c3bc39d0ccd1685"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionHandleResolver._ensure_all (cognitive 17): SessionHandleResolver._ensure_all has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (6 pts), error handling 1 (2 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/session/session_handles.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5908c835c3ea45d099f707e499fc9cc6adf69906ab677c52503c001f3765f9ee"}},{"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. This shape REPEATS in the file: one other method here (webui_turns._latest_title_inputs) 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":"nanobot/session/webui_turns.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d841e23217cb10213542ba76f95a5fad6c54711c1f5f3718f6a622b53ff1809"}},{"ruleId":"D2","level":"warning","message":{"text":"webui_turns._latest_title_inputs (cognitive 17): webui_turns._latest_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. This shape REPEATS in the file: one other method here (webui_turns._title_inputs) 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":"nanobot/session/webui_turns.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c331f143934fb147340fe5dc7e13777b55e1333a75fdb97e020815f7933f83e4"}},{"ruleId":"D2","level":"warning","message":{"text":"file_edit_events._resolve_single_path (cognitive 17): file_edit_events._resolve_single_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (4 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/utils/file_edit_events.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3184f503cd790d6d461aafaa31e5f780fd169474430ecb3507158e20e2d3d27"}},{"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":81}}}],"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":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2616b905e6cffacf43fb49d813d481d7064c68b957e569f2c74e4b4e5671e287"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_capabilities._image_generation_provider_rows (cognitive 17): settings_capabilities._image_generation_provider_rows has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 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/webui/settings_capabilities.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87929a54b4b117264bfcdc61cbe425ef68e0983dd50af34b4df8311a9a5eba7"}},{"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":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c2a84b8393caaa1d5d6715ceb83b9c5f1ed7c51fb4b9b0afe204d412353f18"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.CliAppMentionToken (cognitive 17): CliAppMentionText.CliAppMentionToken has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 5 (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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6546e265f519e36b535bb1d0b8dc4bc0fc54c17e79055fc23835b6416c843d"}},{"ruleId":"D2","level":"warning","message":{"text":"CliAppMentionText.McpPresetMentionToken (cognitive 17): CliAppMentionText.McpPresetMentionToken has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 5 (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":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c8965e465aee11c14db5f152b4661e696b62a4c0cd1535a845ecd2d53e236f"}},{"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 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":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a51dbc503e92b5d7bab22f9fccc03117a6428d2c2353676a21ae03ce8247d"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptRail.PromptRail (cognitive 17): PromptRail.PromptRail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 7 (8 pts), boolean chains 1 (nesting depth added 1). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 152, 102, 68, \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/PromptRail.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3336e0935fabfdb5432e364928335016cf20984842792b9b67fe9c91314713e9"}},{"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":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa2c519d6dd4683d34f213e52591f0f7eb1cda2d9077d49c1ae95670a750cad"}},{"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":172}}}],"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":"useSidebarState.useSidebarState (cognitive 17): useSidebarState.useSidebarState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 162, 181, 220, \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/useSidebarState.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c1a8e3dd16c66aed2b4736775bebb51b4226570d24f932d5873c54d92fd98a"}},{"ruleId":"D2","level":"warning","message":{"text":"NanobotClient.handleClose (cognitive 17): NanobotClient.handleClose has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (4 pts), boolean chains 2, 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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddbb8736736d90d99792eeedaae71390327461f521755972c34df035c9a1b38"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop._process_message (cognitive 16): AgentLoop._process_message has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 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/agent/loop.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82a921368d83b3f448c7cfb4416f49c3718d0786546a1844787e08ac42371a"}},{"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":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"789aaf1ee82544a66d1b8c2166a535adb718a8aa6dd4d28685fc57f4740d513e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRunner._request_model (cognitive 16): AgentRunner._request_model has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 5, loops 1 (2 pts), error handling 1, 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/agent/runner.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7e3c023b685b6b81db1bbc178d78082b5eceb182c5a9ac4f5c6c4e1e045222"}},{"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":1425}}}],"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":459}}}],"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":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae31d6128bdba026b3b7be747139a1089c4545aa0da704bf335fd7f963a56bf"}},{"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":1539}}}],"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":253}}}],"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":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b2656e8b5746d39488f9ace2a77d444259cb92464ffd5884ce99761cc5b6c7"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider._build_kwargs (cognitive 16): AnthropicProvider._build_kwargs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, 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/providers/anthropic_provider.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd4c91296f21136aa8b61aa4971ffc21f887f1b64d8a5ee6b65ba3668908867"}},{"ruleId":"D2","level":"warning","message":{"text":"github_copilot_provider._parse_github_copilot_models (cognitive 16): github_copilot_provider._parse_github_copilot_models has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (5 pts), boolean chains 3, 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":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8c01457b6879c9c167abf6b940bd3830d5f5d254b7265254277a14da67b6f9"}},{"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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae56bc7a573eb413d94b85144c61bbbe42a653bd446b767e6eab4494196af87"}},{"ruleId":"D2","level":"warning","message":{"text":"file_edit_events._limit_unified_diff_lines (cognitive 16): file_edit_events._limit_unified_diff_lines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 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/utils/file_edit_events.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"15595aa0506096cc4f4cbd33b46c6050674a748d59ea006d94bfdcb8b4249dc6"}},{"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":146}}}],"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":91}}}],"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":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9ae3c990ff4e49dba71ce8d0257123b219a6cbc960a79a7f16d336ebb00e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models._validated_provider_config (cognitive 16): settings_models._validated_provider_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/settings_models.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be7a692507a770a997873b9ac992872ee8cd5dfc94424dba8ec283b70701746"}},{"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":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523c1b7c0aa17876bcbc6652347404b8554807eaf290a3e514eff4374f44c88"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_models.create_model_configuration (cognitive 16): settings_models.create_model_configuration has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, 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":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e69443dfe915c5e67635eeff68da476246129281a38e928d31b381d45cbff06"}},{"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":149}}}],"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":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf17e59ec868575af8bb8643ab0483adcfd69e8acbe0f8b8e26e41b3adc17ed"}},{"ruleId":"D2","level":"warning","message":{"text":"build_tui_wheels._base_files (cognitive 16): build_tui_wheels._base_files has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, loops 2, 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":"scripts/build_tui_wheels.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb10f8d0ad778fca70b43568db68ac8cb0bab87e784aeacb8b049f910bd55e1f"}},{"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/latex.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec755a75e27c88fa41e16e9dba98cf516b857a0ed6397d1d2c1ceb1efb20a721"}},{"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 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/transcript.ts"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfc6e28fb997ecf497e4a2e6ef7e64c5330ccc0e468b9cbc49d484fabe37d05"}},{"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, 73, \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":"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":1037}}}],"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":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff3c73a5d7539c099d94a085ccae23f02330f1319816a24784e6bebb5f94549"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadComposer.SlashCommandPalette (cognitive 16): ThreadComposer.SlashCommandPalette has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 3209). 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":3182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd996d969d4e909a04aa3e872844eda89c3e0927f5a4dc33c66a383af5f98542"}},{"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":"remark-tex-math.tokenizeMathFlow (cognitive 16): remark-tex-math.tokenizeMathFlow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 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":"webui/src/lib/remark-tex-math.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f9ce5074a58da4541f3819e39a7fbeebb50838e489619679811987f51ff948"}},{"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":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"770ca989da118608621e8fb5e4ea160a3f44bfa685ed03ebe6dd9d872affa1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.Shell: FunctionTooLong \u2014 Shell runs 1646 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1546 over it, 16.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a475b9acfa8d3a4e774588ca5b52191911e6524f37b0bbed994205dc6cf44d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadComposer.ThreadComposer: FunctionTooLong \u2014 ThreadComposer runs 1534 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1434 over it, 15.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"141cca4aa3853c75d9872e5dcc8d0d247dd792bbbced5aacba9b0d5505863145"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadShell.ThreadShell: FunctionTooLong \u2014 ThreadShell runs 1120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1020 over it, 11.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/thread/ThreadShell.tsx"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eeefd8444c336a3c50cca83ad05e643df4edaf58cee2e448798daa006ae155f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useNanobotStream.useNanobotStream: FunctionTooLong \u2014 useNanobotStream runs 736 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 636 over it, 7.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/hooks/useNanobotStream.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f516d8f2dae74c6925af07535a6170ffb86760a01eb503877e5bb0643f4c74cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsPage.SettingsPage: FunctionTooLong \u2014 SettingsPage runs 687 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 587 over it, 6.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5bd4d3989a91fbf30b44976cf11e856dc36ff49882f0644b0539c6166ac098"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsSettings.ModelsSettings: FunctionTooLong \u2014 ModelsSettings runs 628 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 528 over it, 6.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/ModelsSettings.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"07448017bf5e75598a5fde681c1c9b07c827f771b4317e5a9847281cf1f92da5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadComposer.tsx: FileTooLong \u2014 2841 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2341 over it, 5.68\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/ThreadComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a577deaa31d7451a573f91cf51ddd4a62ac638c05dc0cbbbc846e3b3675ef7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PaneWorkbench.PaneWorkbench: FunctionTooLong \u2014 PaneWorkbench runs 561 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 461 over it, 5.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c3227731c2f9702fa0583ff89b419d05abb12f48a8e7d9af3661bb8ead9c0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderSettings.ProvidersSettings: FunctionTooLong \u2014 ProvidersSettings runs 549 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 449 over it, 5.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/models/ProviderSettings.tsx"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"074b79a059629c5ac1762a741873ebefe669d9f90602fa3448633992ff36f6f5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NanobotTui: ClassTooLong \u2014 2063 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 1663 over it, 5.16\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.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21104b3922e1f75f0ce69aaf8bcd8d49d5e0c9e5f34ac2e832acc6d4a639df8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSettingsController.useSettingsController: FunctionTooLong \u2014 useSettingsController runs 514 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 414 over it, 5.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/useSettingsController.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f18e7fc5379d82af5943524ff8fde8074c8ea413190ac3e9a3bf8883d8f4f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/App.tsx: FileTooLong \u2014 2542 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: Shell (1097-3124). The bar is 500 significant lines; this is 2042 over it, 5.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1717715d0d9518a449e2a3ae007e0e03a923d4d7e0c9589a2e0320f1ab7b175"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearPanel.LinearPanel: FunctionTooLong \u2014 LinearPanel runs 502 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 402 over it, 5.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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"230bbb4f3209c5f0c1bc06d2cf70b314e784b5fc8da2a103def4804f7a7cc6ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/app.ts: FileTooLong \u2014 2455 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: NanobotTui (486-3062). The bar is 500 significant lines; this is 1955 over it, 4.91\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c37d53281de87b0e2b9868c985a7847ae738540e0d73c23157df2d1280ec8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelSetupPanel.ChannelSetupSurface: FunctionTooLong \u2014 ChannelSetupSurface runs 488 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 388 over it, 4.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa044395a84410977d0f6d57de8457610a8393ac18807948c73e3a962c67438"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: createSystemSettingsActions.createSystemSettingsActions: FunctionTooLong \u2014 createSystemSettingsActions runs 487 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 387 over it, 4.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21d09aee4cbc6d6f40a675dbb0ce718b4a4693291559dae918540acc87da9dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useModelSettingsActions.useModelSettingsActions: FunctionTooLong \u2014 useModelSettingsActions runs 451 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 351 over it, 4.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/settings/models/useModelSettingsActions.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b971788545ade262fe7f86c9dbc302e50f452b35c4b56dbd0efb2b40022175e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/transcript.py: FileTooLong \u2014 2101 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1601 over it, 4.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/webui/transcript.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e603ee6373aeb64fa8dde4973c56620cda50889358d5dd014eb7062b80d953b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/loop.py: FileTooLong \u2014 2054 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1554 over it, 4.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/agent/loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66984f0a5cc7529635893669d98a94047d30acc80b3252e41f83e3f6d624887"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadComposer: ClassTooLong \u2014 1534 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 1134 over it, 3.84\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 374 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 274 over it, 3.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae4ca4f5b5722d63d6932cdc21ef8fe6049f171d93ee51ff7d83e02073b13d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RuntimeSettings.RuntimeSettings: FunctionTooLong \u2014 RuntimeSettings runs 356 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 256 over it, 3.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/system/RuntimeSettings.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae05cf5ff19fc3868643ccc7370265414fe09148a1f4dff0d30b391458339623"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NanobotTui: TooManyMethods \u2014 106 methods. The bar is 30 methods; this is 76 over it, 3.53\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.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5974e39fab81d252a654e056348faab9e11dfe801e1de3c4643db8a23db915"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelControls.ModelIdPicker: FunctionTooLong \u2014 ModelIdPicker runs 340 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 240 over it, 3.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/shared/ModelControls.tsx"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a08e1ef1c5550c72cd75ee4efccaf26f024c88fd75766f3eaf42f6eb4059dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_compat_provider.py: FileTooLong \u2014 1690 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1190 over it, 3.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/providers/openai_compat_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"430b0acc838162f7f005d694867a4ea38bcc4d05a272dd7f5556ba981bcc9672"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/ChatList.tsx: FileTooLong \u2014 1679 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1179 over it, 3.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/ChatList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a639ba841436e862d8003fab6d8de8ee5198bb0f5993b6bdbdc73837ba505c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadShell.tsx: FileTooLong \u2014 1619 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: ThreadShell (630-1978). The bar is 500 significant lines; this is 1119 over it, 3.24\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":"FunctionTooLong: ComposerUsagePopover.ComposerUsagePopover: FunctionTooLong \u2014 ComposerUsagePopover runs 322 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 222 over it, 3.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/ComposerUsagePopover.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"502d27b15d06863c0f435321f8b613d735ae88fe1102e16de768b7e329d22d3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/image_generation.py: FileTooLong \u2014 1558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1058 over it, 3.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/image_generation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ccc1ddccb7dd66bdfb4cde5a9881b185f510a1d804defda07c4d5ce680e25e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/ws_http.py: FileTooLong \u2014 1546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1046 over it, 3.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/webui/ws_http.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ecdbf3dff338c8ddb775957c8296bd1adeb8258eb1f7dfcd0d71bb0cafd916"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/base.py: FileTooLong \u2014 1545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1045 over it, 3.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/providers/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3366312a45079f9e1175fa3669486ba396affc2db9c60bfb6f80e0a9d91ca6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/onboard.py: FileTooLong \u2014 1537 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1037 over it, 3.07\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: webui/settings_models.py: FileTooLong \u2014 1527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1027 over it, 3.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"525ec5a406db566a9b5008c996b2f4784cee8f0d14bfbd24cc59cbdc1403c06c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationsSettings.AutomationsSettings: FunctionTooLong \u2014 AutomationsSettings runs 297 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 197 over it, 2.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0cd2d7af4adfcbd18955a5b45fa555ab7dc1fbb432010751c53425dccdb97a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelPresetBadge.ModelPresetBadge: FunctionTooLong \u2014 ModelPresetBadge runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83df3ced04be02cbd83ff159191fc9052f7857c6f233f9bd93e6a20900d3d1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/manager.py: FileTooLong \u2014 1476 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 976 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/session/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3765c06d0d99312379564a4894cf7f1165fa6d001913603d4d581136d7e5eeaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelQrConnectFlow.ChannelQrConnectFlow: FunctionTooLong \u2014 ChannelQrConnectFlow 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/channels/ChannelQrConnectFlow.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"809d3734310f925a251d57958266fdb928f039dbef33b1cfdc3a8f2e18d6833c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/mcp_presets_api.py: FileTooLong \u2014 1423 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 923 over it, 2.85\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: AppsSettings.AppsCatalogSettings: FunctionTooLong \u2014 AppsCatalogSettings runs 283 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 183 over it, 2.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/system/AppsSettings.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e74c24026d4528f08aec433a2b18fd9e7eae2e41c446be9974924557e25c4ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadShell: ClassTooLong \u2014 1120 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 720 over it, 2.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadShell.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed4afab2b6596c863dc4ae47cae101d458fb0f2fb63bf166e7473b640114b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/AppsSettings.tsx: FileTooLong \u2014 1383 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 883 over it, 2.77\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: AppsSettings.McpCustomServerPanel: FunctionTooLong \u2014 McpCustomServerPanel runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fe82223d7ffbf283911671e638e84d849272fb452c48188b10b596cfba707e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/mcp.py: FileTooLong \u2014 1332 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 832 over it, 2.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/mcp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6ee4be16b197591ed54ae8178edb2745ecd8025b79bcc27c1602b095ea4e78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/ProviderSettings.tsx: FileTooLong \u2014 1330 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 830 over it, 2.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":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b199cc307f9beab69a386d9fb1f7c6cd6dfd8d197d1994b9b6f6e47f1124e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSessions.useSessionHistory: FunctionTooLong \u2014 useSessionHistory 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/hooks/useSessions.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"774f45c4b86f2ce4f27880c7260e36e1f7ff8e798315b0b182914fcbdfcd48f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/types.ts: FileTooLong \u2014 1297 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 797 over it, 2.59\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":"FunctionTooLong: SkillsMarketplace.SkillsMarketplace: FunctionTooLong \u2014 SkillsMarketplace runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.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/settings/SkillsMarketplace.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51374235b18ffd54721f9c951f5508467cc31c45b2a6b4b460e0baa07a9f11d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/protocol.ts: FileTooLong \u2014 1244 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 744 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/protocol.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1fbc2ae34182b3acc8d0c7e2accc30ae911910fd69ecf2b2a1747083f20b09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsCatalogSettings.SkillDetailSheet: FunctionTooLong \u2014 SkillDetailSheet runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.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/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e626e471afe78ecd250c8a0711629e80f124cd23c963ee81e13b046616f674"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NanobotClient: TooManyMethods \u2014 73 methods. The bar is 30 methods; this is 43 over it, 2.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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abba893bf6ce5f8395869c5a50fb558d9a729c05a04e455618246367b7c7f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WeixinPanel.WeixinPanel: FunctionTooLong \u2014 WeixinPanel runs 241 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/channels/weixin/webui/WeixinPanel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2f40a6aa3ad5a564e3d6bc09a087df26616616bb118d3fe0307fa226c79e0e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentLoop: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.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":"nanobot/agent/loop.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bb6d571ddc1aa9a6652f2085b6c86a9cb65505d48331139cd11ee39b3556c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NanobotClient: ClassTooLong \u2014 930 significant lines (blank, comment-only and punctuation-only lines excluded), 73 methods. The bar is 400 significant lines; this is 530 over it, 2.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":"webui/src/lib/nanobot-client.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fef7342c024d9cf62aa80efd56d7e446155ed79ff916893e731fc24d89cec46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/runner.py: FileTooLong \u2014 1155 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 655 over it, 2.31\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":"FunctionTooLong: WorkspaceControls.WorkspaceProjectPicker: FunctionTooLong \u2014 WorkspaceProjectPicker runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.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/thread/WorkspaceControls.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51d4046a8dd9e30e9cb06365e1878dc54c4e748e5a6550100cd55046d9f44f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useVoiceRecorder.useVoiceRecorder: FunctionTooLong \u2014 useVoiceRecorder runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.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/hooks/useVoiceRecorder.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a897a2d2851264610e013b4ffe7983e998b2093ee427db7e0d60a375ecb296a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/AgentActivityCluster.tsx: FileTooLong \u2014 1122 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 622 over it, 2.24\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":"FileTooLong: tools/web.py: FileTooLong \u2014 1082 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 582 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":"nanobot/agent/tools/web.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7d84a35336ff848b9f8b227007719cd580ec568c8b3fa2e6c57467356e229"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.Sidebar: FunctionTooLong \u2014 Sidebar runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.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/Sidebar.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc66d03541fab403c65438ddc29814db03595f3bd384d9cd1bd5f839ed0dbcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelInstancesPanel.ChannelInstancesPanel: FunctionTooLong \u2014 ChannelInstancesPanel runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.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/channels/ChannelInstancesPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e42650204260d055ae656464acc53baf28aa80d8c2c3440a39e938760acd1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/AutomationsSettings.tsx: FileTooLong \u2014 1066 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 566 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1036228ab26c816f3d7e1141de7f5396e93a63c106994fa2449cd421bac5a9a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WebSettings.WebSettings: FunctionTooLong \u2014 WebSettings runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/capabilities/WebSettings.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3046b93b8b1c85727975185e3f160af5272eaa51d1dd5c41880a7897532713"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/nanobot-client.ts: FileTooLong \u2014 1045 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: NanobotClient (189-1539). The bar is 500 significant lines; this is 545 over it, 2.09\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":"MethodTooLong: NanobotTui.accept: MethodTooLong \u2014 accept runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.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":"tui/src/app.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b667710f92c426a8c4b298f83b8878027f76b82d0e30de12da047270e9137497"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderSettings.ProviderAdvancedOptions: FunctionTooLong \u2014 ProviderAdvancedOptions runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.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/settings/models/ProviderSettings.tsx"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e411b0272cea163140ba07399152e988b041ef9efbc6bbf3d5c2af5b8c386b94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.ActivePaneRows: FunctionTooLong \u2014 ActivePaneRows runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f258283ea9ec1e2b0f3c4ea025e2bf23540663052543d69242742e3f036fbb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/api.ts: FileTooLong \u2014 1016 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 516 over it, 2.03\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":"ClassTooLong: ChatList: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 405 over it, 2.01\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":"MethodTooLong: NanobotTui.handleKey: MethodTooLong \u2014 handleKey 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":"tui/src/app.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"727f63f5eaa53e27248895224bc7934165191a1cd071ef7c3634d9c87d3bfaba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/memory.py: FileTooLong \u2014 979 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 479 over it, 1.96\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: thread-event-projection.projectThreadEvent: FunctionTooLong \u2014 projectThreadEvent 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/lib/thread-event-projection.ts"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"833ae4d1e5c79eb1f60d735c0e3321d1be516d2700d8f455b39dd190546d1867"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.McpManagementDialog: FunctionTooLong \u2014 McpManagementDialog runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/McpManagementDialog.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5545457d1d8f4bf5ba4a7267373d047d19447732c7b8d35f25ea6ad6ad1e887d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentActivityCluster.FoldedAgentActivity: FunctionTooLong \u2014 FoldedAgentActivity 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/thread/AgentActivityCluster.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b63f92ab3bf77a66d6a31856a0c3f47612842d8aa271bac28793b18f483dbe"}},{"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":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97915f7d1beaab3677f3c1ddf4edd7b19eade69556c4a95646a059382e2d4ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionSearchDialog.SessionSearchDialog: FunctionTooLong \u2014 SessionSearchDialog runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"82426155c9d0630aead967451402eb87b8a3574493a1e1eec742c84148e845a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadMessages.ThreadMessages: FunctionTooLong \u2014 ThreadMessages runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51299ce4c147cc545a07c29e59d6f49edb2580b64e6daac7ba6d74de134f357"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useNanobotStream: ClassTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 336 over it, 1.84\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":"TooManyMethods: GatewayHTTPHandler: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5fce764a2a640f680a2316df359ac3444606c8c33abba317c1259199643a40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadMessages.tsx: FileTooLong \u2014 913 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 413 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadMessages.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f524f55584c6f07e07793c427c6a9d74147a662319dfd36400b421cfd2d601a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/shell.py: FileTooLong \u2014 911 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 411 over it, 1.82\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":"FileTooLong: tools/filesystem.py: FileTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 410 over it, 1.82\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: models/ModelsSettings.tsx: FileTooLong \u2014 905 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: ModelsSettings (180-875). The bar is 500 significant lines; this is 405 over it, 1.81\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: cli/service.py: FileTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 399 over it, 1.80\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":"FunctionTooLong: CredentialForm.CredentialForm: FunctionTooLong \u2014 CredentialForm runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/channels/CredentialForm.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3675ad35b11918a92fa1f1bc52c30755877f9b86e585e6a35d34039e88bd495b"}},{"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":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e0916de501526ee535a3a3a6b838c1d5c89b0fd8ee37ff2a2558f2ad3d74a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/inbound_commands.py: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 383 over it, 1.77\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":"FunctionTooLong: ThreadComposer.GoalStateStrip: FunctionTooLong \u2014 GoalStateStrip 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/ThreadComposer.tsx"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a94533d88386b97eb69c1f8fe0e93c5422e220707b9c359695d5d33c401c2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_system.py: FileTooLong \u2014 859 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 359 over it, 1.72\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":"ClassTooLong: SettingsPage: ClassTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 287 over it, 1.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8066cb032ca86919bee684ff276b6daa89a21e353f2005cd1a25c105de27fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ImageGenerationSettings.ImageGenerationSettings: FunctionTooLong \u2014 ImageGenerationSettings 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/ImageGenerationSettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98383f661f71dc208d495cf6e9b9d6359c8c61c08dd497d935ec876e4a0be4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSystemSettingsEffects.useSystemSettingsEffects: FunctionTooLong \u2014 useSystemSettingsEffects 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/useSystemSettingsEffects.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3495a17cfa460a82b4dcbc0074e24821a311e781bfc246650f72c3c29b6985a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/builtin.py: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 342 over it, 1.68\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":"FunctionTooLong: useCapabilitySettingsActions.useCapabilitySettingsActions: FunctionTooLong \u2014 useCapabilitySettingsActions runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4f6eec0a5151d225a561390795a6e405bfe57e0c9f2d582f30717faa693ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionInfoPopover.SessionInfoPopover: FunctionTooLong \u2014 SessionInfoPopover runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/SessionInfoPopover.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c846771e114408cc1bcb5653897187d00cccb8dfd04707f95b769d92bbfffc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/useNanobotStream.ts: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: useNanobotStream (134-1066). The bar is 500 significant lines; this is 334 over it, 1.67\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":"FileTooLong: cli/gateway_runtime.py: FileTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 314 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/gateway_runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f209036ac3e9e126e4fdf48cc5c8a1d83b740df83ec5b144ccce4cba9e98b5af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ThreadViewport.tsx: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: ThreadViewport (228-1009). The bar is 500 significant lines; this is 313 over it, 1.63\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: lib/thread-event-projection.ts: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 298 over it, 1.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/thread-event-projection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa83d81ef5d906a0fefa616c814c9630dc7ff680ff0149d5c81a8cc26a3c082"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreadViewport: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 236 over it, 1.59\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: App.App: FunctionTooLong \u2014 App 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/App.tsx"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e0a5ca16ea61442175f6e338800a78fa02764dcacfb012c1a12502e0db49fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.ConnectionPanel: FunctionTooLong \u2014 ConnectionPanel 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/McpManagementDialog.tsx"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e80d5f094193abfac694ce34cc00f8cf11225d7e5e27892cc031fe27188773"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelsSettings: ClassTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 228 over it, 1.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":"webui/src/components/settings/models/ModelsSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8735b5f5764aa1dcfbb38b1bbc6b44b7b8f56470ab4bb0bef6a83afd8bd782f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useAttachedImages.useAttachedImages: FunctionTooLong \u2014 useAttachedImages 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/hooks/useAttachedImages.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"654d3d404a0668385f57b43ee573845f8adbffe011551c2d7cd64998336d9655"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useComposerMentionInput.useComposerMentionInput: FunctionTooLong \u2014 useComposerMentionInput runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.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/hooks/useComposerMentionInput.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce54e08f8528bf413ece1cfdd7afa6d0b182e7bc2417f50a9b89de9e2163b7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/skills_marketplace.py: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 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/webui/skills_marketplace.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"339789006ddea4c776db34630635b673193bc9c03256ec051c273a203eb67cdc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryStore: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"561b8141d8a129dd9d17250c3d70262d5c0f269477fda673ea565af9372ecb44"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationsSettings.AutomationDetailPanel: FunctionTooLong \u2014 AutomationDetailPanel runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae0133a9e1e470de0fbcb20555e4e19425b96ba632a89265f657e76fc519d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelsSettings.ChannelsSettings: FunctionTooLong \u2014 ChannelsSettings runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d70d7eec7a07c413de317c6b4314698a0143859adf28b73acd5c446b005f8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/context_governance.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/agent/context_governance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"193a482ff6b60831bac4df03596227e0c027ec775c5cabf03b2264b53fde5472"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SettingsPage.tsx: FileTooLong \u2014 750 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SettingsPage (68-811). The bar is 500 significant lines; this is 250 over it, 1.50\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":"FunctionTooLong: PromptRail.PromptRail: FunctionTooLong \u2014 PromptRail 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/thread/PromptRail.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2f2b85bb45441f443625b5083ec141bcc0e86d8fce36fa78e9eae98faade46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/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/latex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"479064026a2cd8d3b98720dd6c266245cb8a8d0a406190ff516816a9405a5ef0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workbench/PaneWorkbench.tsx: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: PaneWorkbench (199-851). The bar is 500 significant lines; this is 234 over it, 1.47\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":"TooManyMethods: JsonlSessionStore: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.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":"nanobot/session/manager.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee0ad2e4e36e0004c62765f9e6f1d107724262f5671c97b8802c93dd7bb5531"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/recovery.py: FileTooLong \u2014 727 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 227 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/session/recovery.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d0e7ac294bc19783fb62a173d3e9eae61ada887c4c8aced91e955b6739a9e3"}},{"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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c2a44c650ae834581a73fe978b1688418c37d535cd11972cf3e17f04305447"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadMessages.MessageBlockMenu: FunctionTooLong \u2014 MessageBlockMenu 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/thread/ThreadMessages.tsx"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"259c566342653c29a7db6125b8a6c3145dc6e622c6a52586cf679e31e95f52df"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FileEditRow.FileUnifiedDiff: FunctionTooLong \u2014 FileUnifiedDiff 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/thread/activity/FileEditRow.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"231bda704d646e0179c32528300ff970070b792c6f39632c858b95c0e553e35b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/search.py: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 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/search.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cfd512205307403aa50afb241f240df591376eb24f336cdf873474faa74de5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nanobot/optional_features.py: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 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/optional_features.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3ef68277b805eeaebf80ce0139ffc19678fc677eb2403a7f0136aa6c99d66a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai_responses/parsing.py: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 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/providers/openai_responses/parsing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd734bb20bc205aac76b845f112016b70cc612f690b31614325ad636f4bd19ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/MessageBubble.tsx: FileTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 220 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":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c8836e07e15f98170bf6ab2f4cc3fe284e6a50a55ad5b00e74a3a60c22c791"}},{"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":"FileTooLong: providers/openai_codex_provider.py: FileTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 213 over it, 1.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":"nanobot/providers/openai_codex_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e926143f56b398526872c02e444423fbb3efe64f01fa5f0546611cd89e0d3981"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai_grok_provider.py: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 211 over it, 1.42\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: useSessions.useSessions: FunctionTooLong \u2014 useSessions 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/hooks/useSessions.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a913997aa8ac908e2984c79f69836761c0e22505ff04d2339b74beae096f4670"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/bedrock_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/bedrock_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcb6141036883ec0e60c5d11bb29734c19fccb208e380c37d0f4cbf1505cd16"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaneWorkbench: ClassTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 161 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74add88a49a2bd1c696d7b4c2bc1fb97cedf458da0a35ef732f2f06cca5fbbbf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.WorkbenchTabHeader: FunctionTooLong \u2014 WorkbenchTabHeader 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/ChatList.tsx"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64337b2e41bd3766389206468e18a7dcfc95896170bd062000439fc1e285b90"}},{"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":"FileTooLong: utils/helpers.py: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 194 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/utils/helpers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf4f273cde67d4107d31113986e975c5ddac45b0892a575c442cd4a60c6bd70"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TranscriptionSettings.TranscriptionSettings: FunctionTooLong \u2014 TranscriptionSettings 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/capabilities/TranscriptionSettings.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bda595aeab2210bfa9ab0c4f3b952de1d27eba8fbb1bb03bda298071a027003"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpManagementDialog.ToolsPanel: FunctionTooLong \u2014 ToolsPanel 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/system/McpManagementDialog.tsx"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa9e80ae7b1db0db5fe27577b882e22318a3f6bebc72d3b6be0783afec259b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LLMProvider: 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/providers/base.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b70ecb41b6ab9d27a4fb102837a195aec9226c8dd77c81b6c41cc220831f72f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAICompatProvider: 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/providers/openai_compat_provider.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"1492e67d4141653a1ed10b4b32456cd20b3e75d6c177cca86fcc057220c18eb6"}},{"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":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f98de3a4c9adff961f3d0244580a0b75cd57ead362eea81d3fb16bb5d56753c"}},{"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/transcript.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"710a9844243768bddccb7b5489b4cacc769c0b1e6f40d69e3650fdf9056d7b95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cron/service.py: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 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/cron/service.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4395899288d1d5c6ba0a3ff1bb4c3666bbb828005b138d21ef0a77549f8d87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channels/ChannelSetupPanel.tsx: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ChannelSetupSurface (175-734). The bar is 500 significant lines; this is 162 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/channels/ChannelSetupPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ad720d2b8ec740632c9fcc547f16bc3c5bc0c07693e24e62279029276f7f84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_capabilities.py: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 155 over it, 1.31\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":"FileTooLong: session/webui_turns.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/session/webui_turns.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe661415dd47d62fb5b84e4c464e83dd9faf07670e3da6e362dfc569b06db753"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/settings_routes.py: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 148 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/webui/settings_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1390af4a8d0f0837a56dd3ceb404ab49c6c3379c6c1a37defc987d68ce8cefd"}},{"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":"ClassTooLong: Transcript: ClassTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 117 over it, 1.29\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/transcript.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28d1fd76eaa242965a96c685445d08cac8c09c5ef4ddac3d36c6f893e896e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/anthropic_provider.py: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 144 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":"nanobot/providers/anthropic_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12f5514617ec84c1c8cd846880d5631d4d2038bb7d64d4a6ff688238a54c76d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useSettingsController: ClassTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 114 over it, 1.29\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/useSettingsController.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6549e679a21c0e5e5511e4153edd9d627b69e2d468bb313f1ea3cf99c46e22fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationCalendar.AutomationCalendar: FunctionTooLong \u2014 AutomationCalendar 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/settings/system/AutomationCalendar.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f535b3bb4750cefac358a8f3d237394c4b467d8285685116a44fbe3d682ba1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transcription.py: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/transcription.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbbbaca7e5f553a71e92a6dadf3413f4631e2ddf444c217eb84e3daa4134406"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/exec_session.py: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 130 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/agent/tools/exec_session.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c99192316a5562fb1534e34ead9be3da38cc67c36f55a959590fdef2270f57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SkillsCatalogSettings.tsx: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 130 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":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ce4648c3dc9c7e196a6c8545370a7b24995695a8fa13a1d852dac50257de38"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OverviewSettings.AppearanceSettings: FunctionTooLong \u2014 AppearanceSettings 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/overview/OverviewSettings.tsx"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed473d71bdb1551a3bae1720bb4437ae684ff4d6db044406cdd6435b17cb1d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NanobotClient.handleMessage: MethodTooLong \u2014 handleMessage 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/lib/nanobot-client.ts"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a76c4598c9f3654ea29a441d1c13d8b888583da2d003490d1f6c718c0739096"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LinearPanel: ClassTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 102 over it, 1.26\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/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"559ba557c34ec5e7ef6fd98f5b669016604e6fd46fe468b0b33f2ef402407cbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsCatalogSettings.SkillsCatalogSettings: FunctionTooLong \u2014 SkillsCatalogSettings runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/SkillsCatalogSettings.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a56d909b594015e2ac17a3b39bc836a012d5f1fc1540034380e8c7567321be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/McpManagementDialog.tsx: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24\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":"FunctionTooLong: TokenUsageCard.TokenUsageCard: FunctionTooLong \u2014 TokenUsageCard runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aed08283a0403e4f76735ca6fafa0f77384b30db90579e4761a55a4ab05fe33"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSystemSettingsState.useSystemSettingsState: FunctionTooLong \u2014 useSystemSettingsState runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d036f1e64e6b9e6c4ef757deff031f9fe6b06c30cea04e6497b5e512b13f018f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai_oauth.py: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 118 over it, 1.24\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":"FileTooLong: src/transcript.ts: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: Transcript (109-761). The bar is 500 significant lines; this is 115 over it, 1.23\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/transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80774a1a83b216c68121653f792e04c4c0e92abdc93caba658c36a9b3e9502ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nanobot/process_runtime.py: 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":"nanobot/process_runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a5ab3026ed742d4f5880b776009e3ed58393f40c129f3e07d567a99cd4e6d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadHeader.ThreadHeader: FunctionTooLong \u2014 ThreadHeader 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/thread/ThreadHeader.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe2830aeb0286490652f575acf54ab806c7b7d420161ed40c004a2af8e4b05c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: createSystemSettingsActions: ClassTooLong \u2014 487 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 87 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/system/createSystemSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bae8a5f0e50b8946dd8f7b6be1dd185612b998348596dd1dd897fa315391de8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/ModelControls.tsx: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/shared/ModelControls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb196044cd5bc679cc3bd32f1314891b168a566cd943c5fbffe429c5b671ae8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/session_list_index.py: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/session_list_index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9cf2351b247f6bbac856e0324a3050a1cd7ab6bd6f8aad5e2c04ccd083afc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/fallback_provider.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/providers/fallback_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfb0fb318b432ae26a8e63df17b49bbfad8258f34caaab0e7aa0e3b87cbd706"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatList.ProjectGroupHeader: FunctionTooLong \u2014 ProjectGroupHeader 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":"webui/src/components/ChatList.tsx"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"55734958890193f736be07501f710c2c293ff19dc77f798f04b9bfe7470d6600"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/useSettingsController.ts: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: useSettingsController (71-645). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/useSettingsController.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d59e68d9de946d1964a377cccab3faa6e337ddf9d6f82c9a8db8b03b4c56813"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/useSessions.ts: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/hooks/useSessions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf95ac965da66adac9d9195f669342892cb9bdb81634f8468d5bd7d71ef709"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/registry.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/providers/registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e193ee8eda8d0574d4bd35ccddb884e624bbb635854261e6773caf8bc88696"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SkillsMarketplace.tsx: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 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":"webui/src/components/settings/SkillsMarketplace.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57127135f02daaaa58bdc3dd88612b18a6be01c0bf89dbbdd98c2e9f71e964"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/runtime.py: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/gateway/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d86f7e2bc145d35f3a7537b1261f0b11101f190b4c7761f5c3551b7e07a197c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsSidebar.SettingsSidebar: FunctionTooLong \u2014 SettingsSidebar runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/SettingsSidebar.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f465b765bba8ea98e1b43e0f86dff238334e144be8cdd690fdcee57250383a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useModelSettingsActions: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 51 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/models/useModelSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15335a6d9620b4ef19575ebd5c97db2bdacbd1cdcd24aeb421689b867e2f689e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: system/createSystemSettingsActions.ts: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: createSystemSettingsActions (81-683). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/createSystemSettingsActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1675fac532450a253b4a870721cabb8d1dfc784145e699b10f7032d04258d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webui/LinearPanel.tsx: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: LinearPanel (59-616). The bar is 500 significant lines; this is 56 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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c4a7886fd189404e373082e2ebb17180cc5ae8068901802ff35f5f167df294"}},{"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: ImageLightbox.ImageLightbox: FunctionTooLong \u2014 ImageLightbox 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/ImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f514b3af660142a52fc75eecacaf16a047cd52bf6a9e6ab3a29d43292f190256"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearMemberAccess.LinearMemberAccess: FunctionTooLong \u2014 LinearMemberAccess 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":"nanobot/channels/linear/webui/LinearMemberAccess.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e003c7af884ea10c42529081fdef8d80b7ff80a5748bf677fb98cbf5c6e78c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/document.py: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 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/utils/document.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0359f54635cba35a9e00368b2f979045ebc21d8229d31cc770ebbe72f6da94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/ModelPresetBadge.tsx: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 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":"webui/src/components/thread/ModelPresetBadge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"884d2522ad707c361804e168f26ec6e5ff1c7c09a8dbe5e38800286fedc15f73"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.PairingCodePopup: FunctionTooLong \u2014 PairingCodePopup 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/App.tsx"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"864af3fb3459eb7ace9c03151b6a258d6b7c38e5914f817f7aec9608acdb6c23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: segmented-control.SegmentedControl: FunctionTooLong \u2014 SegmentedControl 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/ui/segmented-control.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fed99f1d0d2c2a10f6f1bad14524afa0035d0a9be1ca5d8c37b8877d9cbf361"}},{"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":"TooManyMethods: SessionManager: 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/session/manager.py"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd9e42187dd8831443551b7cca2da12e377f294a57298055974cc91e688b7c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebUISettingsRouter: 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/webui/settings_routes.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a567be53abb56f1304140117b6aa11ff2c02b3e1f8366fbee9e2e0b87393e5"}},{"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":"FunctionTooLong: ComposerUsagePopover.UsagePanel: FunctionTooLong \u2014 UsagePanel 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/ComposerUsagePopover.tsx"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e8b4daf46fb43504a4d828d5745c86b072dda25dc38273f8a2ed9ef7e1cdd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ThreadComposer.QueuedPromptRow: FunctionTooLong \u2014 QueuedPromptRow 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/ThreadComposer.tsx"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28f7f1cdb3ec1e574c7a0c233054441e85684cd91aa990fbce3fec86ce2ef1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LinearResetConnection.LinearResetConnection: FunctionTooLong \u2014 LinearResetConnection 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":"nanobot/channels/linear/webui/LinearResetConnection.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7065b7e3db45166a2ebc6de74e692ea89604f477982759b692368f7f2db69eac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CronService: 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/cron/service.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb659353470f3a8bb60174b0a29f02d7151c99b59e15f5a522a6a35a163a70a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelValidationProgress.ChannelValidationProgress: FunctionTooLong \u2014 ChannelValidationProgress 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/channels/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"68300be90ce201c30e62709f93bd151b52b94b785b57a6cac6d50aa73c246ee0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutomationRunDialog.AutomationRunDialog: FunctionTooLong \u2014 AutomationRunDialog 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/system/AutomationRunDialog.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcfa05e352b03362bd4775a3eb9f181a8a7f05db2c1dd1eaf4674e265d46b6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/self.py: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\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/self.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0c7981e44f16d77debd2f0f1dfc13b73125855d8b329a0dfce1594a81cb9a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/useModelSettingsActions.ts: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: useModelSettingsActions (70-617). The bar is 500 significant lines; this is 12 over it, 1.02\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":"FileTooLong: cli/commands.py: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 11 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/cli/commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb0503dc3ad167c6774cf5938d7ad6ba1a6ae46324f901444777798fe30b16c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/webui_support.py: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cli/webui_support.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9380faf6721467b8a0a133f41dd4bf9268c9160ddcf63076925d9ad333db9c9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FilePreviewPanel.FilePreviewPanel: FunctionTooLong \u2014 FilePreviewPanel 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/FilePreviewPanel.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"08042feef8f15d4045c9e82c2347bc117a0d10697e14ea1b41a27c1ace1eb043"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsSettings.ModelAdvancedFields: FunctionTooLong \u2014 ModelAdvancedFields 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/models/ModelsSettings.tsx"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc32cc7f50c1d365d7708c919b80a211c589a8a332b51ea9abcd422830a1f96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/subagent.py: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/subagent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b14c58e2308bbebda5ced16681fe70771c035b9240b85ed44762a10fe79d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): nanobot/session/manager.py:940-1009 | nanobot/session/manager.py:1016-1092 \u2014 These two members are variants of one another: 33 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/session/manager.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4ba6ecc991b5e530e2b7e45868d2240c73384464496850edc14c4a8f401ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): nanobot/webui/settings_models.py:1119-1160 | nanobot/webui/settings_models.py:1233-1299 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace1510f943b751290de05e47f7e0ddaab96818395bfa3ba5f9e2c3a6d4f3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): nanobot/agent/tools/web.py:652-687 | nanobot/agent/tools/web.py:766-819 | nanobot/agent/tools/web.py:822-859 | nanobot/agent/tools/web.py:862-903 | nanobot/agent/tools/web.py:914-1022 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/web.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd7176f30b89de675948faa20fa85676746921459084d75e077f6031427a8b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): nanobot/webui/skills_marketplace.py:121-157 | nanobot/webui/skills_marketplace.py:210-239 | nanobot/webui/skills_marketplace.py:248-275 | nanobot/webui/skills_marketplace.py:283-310 \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":"da1c759b9382d61363099ea9f1d180db186981c3468432cdb720b7b0f72225e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): nanobot/agent/tools/mcp.py:820-852 | nanobot/agent/tools/mcp.py:954-986 \u2014 both copies are in the same file, so extract the block 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/mcp.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92ca7decfa986f757ad1b330e9f0afae849c3255d855f394e0a242fb4710af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): nanobot/webui/settings_models.py:1131-1159 | nanobot/webui/settings_models.py:1249-1277 \u2014 both copies are in the same file, so extract the block 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":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd9d687d4b9c6437a74d9107aa708dd89852a4969f454aba189757db0be4db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): nanobot/providers/azure_openai_provider.py:209-235 | nanobot/providers/openai_compat_provider.py:1298-1324 \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 \u0060nanobot/providers/azure_openai_provider.py:209\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/azure_openai_provider.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc97909c68c2f78cb8ce60c1bda5e173ed7d44bcd24049beffb83aed456d0b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): nanobot/providers/image_generation.py:758-783 | nanobot/providers/image_generation.py:816-842 \u2014 both copies are in the same file, so extract the block 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":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"c358b4e777252792d75846808cc7d032854396a2c744ca0bc09780d46eefa129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): nanobot/agent/tools/mcp.py:652-675 | nanobot/agent/tools/mcp.py:820-842 | nanobot/agent/tools/mcp.py:954-976 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/mcp.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"414891b3e8d3687a7909427b671e550835b5617ff1b32d7a14f2bc35209c3643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 3): nanobot/cron/service.py:447-468 | nanobot/triggers/local_store.py:414-432 | nanobot/utils/run_records.py:40-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/cron/service.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54acfd769ca775ba5e402d616c8ffde7d17c5d12530b88ca33cdb5843bddf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): nanobot/providers/transcription.py:150-171 | nanobot/providers/transcription.py:464-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/providers/transcription.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d20aceeb3b929c428d68b8f84e1093e61bb376afc01a8b5c22345b4d05cbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): nanobot/agent/subagent.py:248-268 | nanobot/agent/subagent.py:312-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nanobot/agent/subagent.py:332\u0060 calls \u0060info\u0060 and \u0060nanobot/agent/subagent.py:270\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/subagent.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a65b66e2146471176189099d24b9ac50f0763aeaeb5f4d20f854af734d2e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 2): nanobot/agent/tools/long_task.py:216-231 | nanobot/agent/tools/long_task.py:326-346 \u2014 both copies are in the same file, so extract the block 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/long_task.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"948b647e6a5e65111842f0491394e5924925f88582b0a639bb147f367b927383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): nanobot/providers/factory.py:333-351 | nanobot/providers/factory.py:352-372 \u2014 both copies are in the same file, so extract the block 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/factory.py:333\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/providers/factory.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"412bb74f37c37533d22eaafa550d629f3f07ea06ac7ad267104c205f2e52f697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nanobot/agent/tools/exec_session.py:385-404 | nanobot/agent/tools/exec_session.py:413-432 \u2014 both copies are in the same file, so extract the block 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/exec_session.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7711f26c81d12f13041088367e67c924afa29b6891fd6475fa5cee8443a9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nanobot/providers/anthropic_provider.py:144-163 | nanobot/providers/openai_compat_provider.py:1870-1889 \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":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"db39112f93e7d0451f419f9d5767142824ac428a495973e1c8eb2a3dc36304b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): nanobot/session/manager.py:952-970 | nanobot/session/manager.py:1316-1332 \u2014 both copies are in the same file, so extract the block 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/manager.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bad0bd113b17d25b9b86120519e0eea06a5eeb49dac9a476a942a570240ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): nanobot/session/webui_turns.py:151-169 | nanobot/session/webui_turns.py:177-195 \u2014 both copies are in the same file, so extract the block 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/webui_turns.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1038c7d2228eb7e409f339fefe7af5c49e2202d3ec785ab978e809d8be1c8c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nanobot/command/builtin.py:554-571 | nanobot/command/builtin.py:604-621 \u2014 both copies are in the same file, so extract the block 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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0c7b50382459c5112594f2b5cb3ee4ce967df5b55cdd0cc494ae88bca1bea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nanobot/providers/openai_compat_provider.py:1993-2010 | nanobot/providers/openai_compat_provider.py:2104-2121 \u2014 both copies are in the same file, so extract the block 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/openai_compat_provider.py"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a7f31938efbf127d28c77b3bc0d2dcc6a4ea6e49cc59ffd8e3339fc706630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nanobot/agent/tools/web.py:842-858 | nanobot/agent/tools/web.py:886-902 \u2014 both copies are in the same file, so extract the block 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":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"68314cefd7b6a1991c0261221b1c6eaa34a3945500042d3e682a04bf0d1b7157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): nanobot/providers/transcription.py:645-659 | nanobot/providers/transcription.py:695-711 \u2014 both copies are in the same file, so extract the block 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":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2897f16ac7c3a1a5c01ff2ac38db3c8dc586701ffeb05d90c3cfeee68ada7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nanobot/webui/sidebar_state.py:258-274 | nanobot/webui/workspaces.py:98-114 \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":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a104f34d881727e03b235de0f0fd488bc00af25d1cb99b47b8621834c5b45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): nanobot/agent/tools/filesystem.py:706-721 | nanobot/agent/tools/filesystem.py:775-790 \u2014 both copies are in the same file, so extract the block 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":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec4b49df06de374c57f62bf91d3cb7f1e941e8614f0c1747a486a4b59c8f717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): nanobot/providers/azure_openai_provider.py:193-208 | nanobot/providers/openai_codex_provider.py:102-115 \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 \u0060nanobot/providers/azure_openai_provider.py:193\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/azure_openai_provider.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2a553d3b163bd8e8254b4740d89f1dad3c876d6f4f18e9e6fe72282d43892d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): nanobot/providers/azure_openai_provider.py:415-430 | nanobot/providers/openai_compat_provider.py:2077-2091 \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 \u0060nanobot/providers/azure_openai_provider.py:415\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/azure_openai_provider.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ace792b27df7e25dae68ed99d7b4c9f73397ac405fcf568609789c2eaba3612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nanobot/providers/image_generation.py:1259-1273 | nanobot/providers/image_generation.py:1343-1357 \u2014 both copies are in the same file, so extract the block 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:1259\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":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd65ee282bd5bf714e9ac60bc3604607591421dedbdf970bff5496543c73e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): nanobot/providers/image_generation.py:1848-1862 | nanobot/providers/image_generation.py:2006-2019 \u2014 both copies are in the same file, so extract the block 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":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"7323a2f670ae3e85c4a941c57b46e1f7f91fdc5aa18d4a08b40fa777325568ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nanobot/providers/anthropic_provider.py:124-137 | nanobot/providers/openai_compat_provider.py:1854-1867 \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":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae7efd7dba38973dd6436bcb79aa70cf02029e8220ace75964ca14849aac32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/agent/context.py:180-192 | nanobot/agent/context_governance.py:267-279 \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":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e2647b9650bd0b51dcf0c68dff4b368ba06268f3123ff28f4df898dfcd5c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/agent/runner.py:725-737 | nanobot/agent/runner.py:745-757 \u2014 both copies are in the same file, so extract the block 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/runner.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92631c45088d0e4741a75ac9379848686750cf6b5c4c21ccd7c07fde3ff07bc"}},{"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:363-375 | nanobot/cli/gateway.py:386-398 \u2014 both copies are in the same file, so extract the block 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":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"255ebe8c144e27987db35bcaf406e8c04d19cc4df2e01ba32c716f3bbf923c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/cli/provider.py:176-188 | nanobot/cli/provider.py:205-217 \u2014 both copies are in the same file, so extract the block 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":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"88557838d039f91aa7cd3198c0e57a4fc69ea0e2d5bff38dd174536125b6fd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/providers/image_generation.py:1340-1352 | nanobot/providers/image_generation.py:1456-1468 \u2014 both copies are in the same file, so extract the block 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:1340\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/image_generation.py"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fe3174cf08fb77983ccda6c0c4b51ffa27a83186ca0b7ff44235d7653d3848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/providers/openai_codex_provider.py:859-871 | nanobot/providers/xai_grok_provider.py:852-864 \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":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"89968de82230af9dbef8a17decb7052f6f4ae2280e5aa353a3717b0be621484b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nanobot/session/manager.py:989-1001 | nanobot/session/manager.py:1079-1091 \u2014 both copies are in the same file, so extract the block 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/manager.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78254fde16b43ceff1b34631f00377db037e43f877f903980d03ac4cb05db76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): nanobot/webui/skills_marketplace.py:125-135 | nanobot/webui/skills_marketplace.py:215-226 | nanobot/webui/skills_marketplace.py:286-296 \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:215\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:136\u0060 calls \u0060set\u0060 and \u0060nanobot/webui/skills_marketplace.py:297\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":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58e1a26923fc954a65b58a360572c94ad38e0cced9fb6343dd4e80d068ddc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nanobot/providers/image_generation.py:1058-1069 | nanobot/providers/image_generation.py:1874-1885 \u2014 both copies are in the same file, so extract the block 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":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10e0517b3641e3088359afca2db64ef99fb0675e06cd3dfcfa6432ee6992d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nanobot/webui/skills_marketplace.py:214-225 | nanobot/webui/skills_marketplace.py:252-263 \u2014 both copies are in the same file, so extract the block 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: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/skills_marketplace.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa0c77e7cce591464004e5708336f02006e0e84371e5a42b0875736fd5954f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): nanobot/providers/image_generation.py:528-538 | nanobot/providers/image_generation.py:1058-1067 | nanobot/providers/image_generation.py:1874-1883 \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:528\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":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66e8306c06d1fb654cbe6f9bd562fe0dd1ee7bfd2d806b7c36c56550c77f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): nanobot/providers/image_generation.py:1259-1269 | nanobot/providers/image_generation.py:1343-1353 | nanobot/providers/image_generation.py:1459-1469 \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:1259\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":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6098572983a8e24204229167d21d6bafead8ff7b2e0e214b324064e3b0683b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/agent/tools/web.py:592-602 | nanobot/agent/tools/web.py:823-833 \u2014 both copies are in the same file, so extract the block 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":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31ae8c50f2c9c44572d681f60d720d8243c7585d75ead7fec40ce1d8b2439e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/cli/desktop_target.py:282-292 | nanobot/cli/desktop_target.py:324-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nanobot/cli/desktop_target.py:335\u0060 calls \u0060get\u0060 and \u0060nanobot/cli/desktop_target.py:293\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/cli/desktop_target.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6922d243e27b0e386de2811c4f55f708ccbb86aa048b6a929c4c6efde8d8321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/fallback_provider.py:325-335 | nanobot/providers/fallback_provider.py:441-451 \u2014 both copies are in the same file, so extract the block 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:325\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":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"329858bda6479827886b0e7bf9b72876ef1d041d1baba719c9d469e50e794e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/github_copilot_provider.py:398-408 | nanobot/providers/xai_grok_provider.py:700-710 \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":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dde84e1ad55aabeaa0ca119c687bfec6032d1e3fe4bd6f326b722f1a1564f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/session/manager.py:940-950 | nanobot/session/manager.py:1017-1027 \u2014 both copies are in the same file, so extract the block 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/manager.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a5c65c174d832ff27a889987cd3e1fc7f535ef804e85b3a357a91bdb8c6c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/utils/document.py:199-209 | nanobot/utils/document.py:468-478 \u2014 both copies are in the same file, so extract the block 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/document.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf720ab38aadbfd2533d3abd27f8e9fb6996bde91d506696c3fe849b8b0ea5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tui/scripts/conpty_smoke.py:122-132 | tui/scripts/pty_smoke.py:145-155 \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":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d580a7b6fd5b2e93d0a54464900b20c98ffd3d3106d1bd7d15939398f4d607c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): nanobot/session/manager.py:961-969 | nanobot/session/manager.py:1045-1053 | nanobot/session/manager.py:1323-1331 \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/session/manager.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90fa30122dcce9bf3df5e5187e0fadf2f08642bfc96e90b1118a231945bd52c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/cli/terminal.py:281-289 | nanobot/cli/terminal.py:326-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02092867a4350e17c57c3be4ec50c6462eae490903011c2b2df81563bdac017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/providers/openai_responses/parsing.py:366-374 | nanobot/providers/openai_responses/parsing.py:681-689 \u2014 both copies are in the same file, so extract the block 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/openai_responses/parsing.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"083952eb3b812cb537e691de42c010bff18647fe55bff3f7d4a7768a7aef8b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/session/recovery.py:665-673 | nanobot/session/recovery.py:703-711 \u2014 both copies are in the same file, so extract the block 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/session/recovery.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6c1a934e3c4bfffd8c6ab49f22259d08abd7b1d63ca18790b3a663b6134645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/webui/sidebar_state.py:247-255 | nanobot/webui/workspaces.py:87-95 \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/webui/sidebar_state.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"adca63d17ebb14f5d570db5d205138cb304e9cd3ce1643e98cf99622d7e5038e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/agent/tools/sandbox.py:22-29 | nanobot/agent/tools/shell.py:1138-1145 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paths\u0060 to \u0060Iterable[str] | None\u0060 in one and \u0060list[str] | None\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/agent/tools/sandbox.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4137181b039e53af51d761d5a728935d8d8a684dc31ad8e54181a771474cf3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/agent/tools/web.py:634-641 | nanobot/agent/tools/web.py:744-751 \u2014 both copies are in the same file, so extract the block 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/agent/tools/web.py:634\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/agent/tools/web.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f494b207b5b8625e878b5430870f0ed6574a3e5cdb0faa7c3e3e2b05a947d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/gateway/runtime.py:669-676 | nanobot/process_runtime.py:494-501 \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:669\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":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e05e8df2ab31f46cee8068d57f51fa750796d9b698158a1a717c0620e135338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/optional_features.py:687-694 | nanobot/optional_features.py:764-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/optional_features.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797d85f392d0ad2e6b4a7f4e286cd8a7017458bb8f8850a8fcdd88635c10e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nanobot/session/recovery.py:569-576 | nanobot/session/recovery.py:703-710 \u2014 both copies are in the same file, so extract the block 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/session/recovery.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83a10075b7807760b9498aade5a718d106dbb71cde5aff71a1a8cd9f9ff7b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): nanobot/agent/tools/web.py:680-686 | nanobot/agent/tools/web.py:852-858 | nanobot/agent/tools/web.py:896-902 \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:680\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":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"549bc4c3aeb771930cc6dacf09b5e0f06f186cceffdbd4fc1d93a534bfabd960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nanobot/agent/tools/web.py:428-434 | nanobot/agent/tools/web.py:437-443 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nanobot/agent/tools/web.py:435\u0060 calls \u0060get\u0060, \u0060strip\u0060 and \u0060nanobot/agent/tools/web.py:444\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/agent/tools/web.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"3188b041987a5853f35d3ddef261e9445c1f6c94a009849cb6e9f9d8fc6838c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nanobot/sdk/clients.py:50-56 | nanobot/sdk/clients.py:119-125 \u2014 both copies are in the same file, so extract the block 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/sdk/clients.py:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/sdk/clients.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b4c33879fa2b777f2399b09a392d35f0f7decfc929dd5b306c010473fbc117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): nanobot/agent/tools/web.py:682-687 | nanobot/agent/tools/web.py:814-819 | nanobot/agent/tools/web.py:854-859 | nanobot/agent/tools/web.py:898-903 | nanobot/agent/tools/web.py:958-963 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ad5f9a0362d5887980bd34e50a2180c77ec522daba6c10e0ccfe33917efd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): nanobot/cli/gateway.py:145-146 | nanobot/cli/gateway.py:288-293 | nanobot/cli/gateway.py:339-344 \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:288\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":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9284239d22c2efc98c0725efdf4c3ecf374db660affdc6848b4f3e41b50a8dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/process_runtime.py:455-460 | nanobot/process_runtime.py:541-546 \u2014 both copies are in the same file, so extract the block 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":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d3c1b67cebb90bb32dad756308fa8d4066eacd41deaa0485c4d20763c5fd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/providers/github_copilot_provider.py:397-402 | nanobot/providers/openai_codex_provider.py:784-789 \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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0336b009bba1c56c492e29f73bd375c32e056e6b8702e5008aa2ebb009bf8a0"}},{"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 2): nanobot/agent/skills.py:331-335 | nanobot/webui/skills_api.py:195-199 \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":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f889d44b1a8f1edd052ff30e7c0ab17e2edcb96e111a4904eda6e25a44f776b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/agent/tools/web.py:430-434 | nanobot/agent/tools/web.py:448-453 \u2014 both copies are in the same file, so extract the block 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/agent/tools/web.py:448\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/agent/tools/web.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c4d69b85913a2e2892d8e4917102b8583f1094de2ace2161f93a9002378468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cli/commands.py:619-624 | nanobot/cli/commands.py:643-647 \u2014 both copies are in the same file, so extract the block 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:619\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":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ececaf4ac1f44cb65094c70d7be0eec90763748c735e71778ce53e95fab6d7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cli/gateway.py:259-263 | nanobot/cli/gateway.py:276-280 \u2014 both copies are in the same file, so extract the block 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:259\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":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ced4aed3d1e37a0307cdff075ce3bbf40da086fd749f7f7fbbcc5b22c5f5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/providers/image_generation.py:426-430 | nanobot/providers/image_generation.py:841-845 \u2014 both copies are in the same file, so extract the block 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":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c777c822082f0984fbdaffc7693234cc7ec66739b613c139756db8024169f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/utils/helpers.py:788-792 | nanobot/utils/helpers.py:844-848 \u2014 both copies are in the same file, so extract the block 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":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"def707bc757076f2d59244e1ee16a3e30814f2011293d7a58be1008e8257de0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/webui/transcript.py:1390-1394 | nanobot/webui/transcript.py:1401-1405 \u2014 both copies are in the same file, so extract the block 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/transcript.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bc3f3c9f35bc3135e90242f0bcf42a5dca4a18cbf4d514a1a8432a2824b0ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/providers/github_copilot_provider.py:472-476 | nanobot/providers/openai_codex_provider.py:843-847 | nanobot/providers/xai_grok_provider.py:827-831 \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:467\u0060 calls \u0060_catalog_mapping\u0060, \u0060cast\u0060, \u0060isinstance\u0060 and \u0060nanobot/providers/openai_codex_provider.py:839\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":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4187d022b61fa941ff3c3ea97be627c36a6d6081ea02ecb8787426bb1b1aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): nanobot/providers/github_copilot_provider.py:480-484 | nanobot/providers/openai_codex_provider.py:851-855 | nanobot/providers/xai_grok_provider.py:835-839 \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":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3074da303b9f2750fd5a41de162884e07f235318ae441c1ea02cbacd7f13b18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nanobot/providers/openai_codex_provider.py:707-717 | nanobot/providers/xai_grok_provider.py:651-661 \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":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"59710f3350f5784ac41db7d9e346b0f8231389b6525d25f0ea3f2f6a5e84be5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): nanobot/webui/cli_apps_api.py:50-55 | nanobot/webui/mcp_presets_api.py:513-518 | nanobot/webui/sidebar_state.py:63-68 \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":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d81270700e41907db29e6dcd16f01bb7f9461ade9cf7fa53c58a7722778981f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nanobot/webui/settings_capabilities.py:796-804 | nanobot/webui/settings_system.py:928-936 \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/settings_capabilities.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"f543969b87dca431314f65784b9d3e63e40b35e6c268abac64edc36d458a2018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/agent/cron_turns.py:49-53 | nanobot/triggers/local_turns.py:47-51 \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":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2f7e6500f1776dacd52497d654fabebc36a84622d0947fc1c4d1b87e4780e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/cron/session_turns.py:58-62 | nanobot/triggers/local_session_turns.py:47-51 \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":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d86fa86aaa423fa7cf3ad42ddde20e9bf5661d600adf22700e3a3f17cc9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nanobot/agent/tools/web.py:617-622 | nanobot/agent/tools/web.py:756-761 \u2014 both copies are in the same file, so extract the block 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":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6715efae50e8919cdb02d9a4ab9b7f2fed0eb6946eae6dab5306cbc3ecf36ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nanobot/providers/bedrock_provider.py:557-561 | nanobot/providers/bedrock_provider.py:571-575 \u2014 both copies are in the same file, so extract the block 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/bedrock_provider.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3852824db4b08a0a4ac73a1614b393be9c4dddcd83ab4edc807140a4be7d83f"}},{"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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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.test.ts"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d081294b641d7591a05c8d2e1b5d5a34280b41b86ae65c5cafca506fcb29de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadComposer.tsx: webui/src/components/thread/ThreadComposer.tsx changed 69 times in last 90 days, max cyclomatic complexity 396 in ThreadComposer.ThreadComposer at line 900. 31 of those changes were fix/bug commits, and the other 38 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc582cdcc20335cb2d379ea0933c57c5826bd73d4c1b843b249db94b5f84b10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadShell.tsx: webui/src/components/thread/ThreadShell.tsx changed 66 times in last 90 days, max cyclomatic complexity 263 in ThreadShell.ThreadShell at line 630. 30 of those changes were fix/bug commits, and the other 36 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4efa05aede94863a67bee3ae4b594d24c2fb35766df8947a323011e19d8bced"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/App.tsx: webui/src/App.tsx changed 59 times in last 90 days, max cyclomatic complexity 284 in App.Shell at line 1097. 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"05412cf80850dfb52a7cff4b422a01adb17fb4078869d9ebbabb4d8864cb81bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/app.ts: tui/src/app.ts changed 72 times in last 90 days, max cyclomatic complexity 127 in NanobotTui.handleKey at line 1777. 34 of those changes were fix/bug commits, and the other 38 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"443c2b12d358ef4afe65be0fe84791c95783c25c4bf905b6183313ea0f47113c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useNanobotStream.ts: webui/src/hooks/useNanobotStream.ts changed 35 times in last 90 days, max cyclomatic complexity 206 in useNanobotStream.useNanobotStream at line 134. 14 of those changes were fix/bug commits, and the other 21 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7019befdf3a2cbc2e84e115ec3a2f9db7b0e44d76e063e9a2f348f8e7cbd2c09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ChatList.tsx: webui/src/components/ChatList.tsx changed 37 times in last 90 days, max cyclomatic complexity 155 in ChatList.ChatList at line 253. 14 of those changes were fix/bug commits, and the other 23 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e212b905076976758fae88855410dad3795f0464456d1bc4fe3ce53d5f2f49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadViewport.tsx: webui/src/components/thread/ThreadViewport.tsx changed 35 times in last 90 days, max cyclomatic complexity 146 in ThreadViewport.ThreadViewport at line 228. 22 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"893ca5c45e41374d9b65774d77be0f041e4365736b90e0ee02f222e5e24ba018"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/loop.py: nanobot/agent/loop.py changed 117 times in last 90 days, max cyclomatic complexity 41 in AgentLoop._save_turn at line 2301. 57 of those changes were fix/bug commits, and the other 60 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39bd5ab2d0a9db20085f923a2b7561dab9959f275bbdbb3371a02941e0979ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/protocol.ts: tui/src/protocol.ts changed 33 times in last 90 days, max cyclomatic complexity 81 in protocol.decodeInboundEvent at line 470. 10 of those changes were fix/bug commits, and the other 23 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/protocol.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/protocol.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9100ad9d3603e3c90badd3d06228c8c24e7526e2c63e5eced8d56517bfa7f51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/runner.py: nanobot/agent/runner.py changed 54 times in last 90 days, max cyclomatic complexity 48 in AgentRunner._run_core at line 368. 28 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe9ddd70528f117e020bb346471134c94d0dcd39493694753d233830ef0616c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/ModelsSettings.tsx: webui/src/components/settings/models/ModelsSettings.tsx changed 19 times in last 90 days, max cyclomatic complexity 127 in ModelsSettings.ModelsSettings at line 180. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"867c4adc9576480069f2e9e6efd3387fe673b3c63bb2335d2e6490e1c7683048"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/manager.py: nanobot/session/manager.py changed 52 times in last 90 days, max cyclomatic complexity 38 in Session.get_history at line 240. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7a559cfcbb36b6ea2ce87952977b2b525904d65ff2077da986f7c81b302f08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/api.ts: webui/src/lib/api.ts changed 38 times in last 90 days, max cyclomatic complexity 51 in api.parseThreadProjectionEvent at line 306. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f80772bec50269209219621e1ae47ec8a68af2db8a80a2ff9de790418ed3d55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/transcript.py: nanobot/webui/transcript.py changed 32 times in last 90 days, max cyclomatic complexity 56 in transcript._client_projection_event at line 2181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ec19deb9ec7e9210a881889a74f45438e76b6d1bab81a7fc6dd008c755eba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/config/schema.py: nanobot/config/schema.py changed 38 times in last 90 days, max cyclomatic complexity 45 in Config._match_provider at line 495. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/config/schema.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/config/schema.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315b2ab854280ce211a936b1a05ff71408918647769e5c56830258c6b7ac8db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/MessageBubble.tsx: webui/src/components/MessageBubble.tsx changed 41 times in last 90 days, max cyclomatic complexity 40 in MessageBubble.MessageBlockMenuActions at line 168. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e572fcf1ca11dcc3b9521b8dd72005009bb867f1f2c2425397ff32fdd9ec2d37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/ws_http.py: nanobot/webui/ws_http.py changed 55 times in last 90 days, max cyclomatic complexity 28 in GatewayHTTPHandler._handle_webui_automation_action at line 1302. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e310e549f64a7c959d7919cb316700516f9194ce38abd2df0794e70bd499043"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/memory.py: nanobot/agent/memory.py changed 58 times in last 90 days, max cyclomatic complexity 26 in MemoryArchiver.archive at line 836. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"b889db8928b002636c84a5eb10a5f63ac734241c90a4f4b063cb633e398a6981"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/nanobot-client.ts: webui/src/lib/nanobot-client.ts changed 24 times in last 90 days, max cyclomatic complexity 62 in NanobotClient.handleMessage at line 1081. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7632c9e5977155976163245f46b23119f767ac3bc94adfd22d691a82cbb7d73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadMessages.tsx: webui/src/components/thread/ThreadMessages.tsx changed 33 times in last 90 days, max cyclomatic complexity 44 in ThreadMessages.ThreadMessages 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3778348359fe1c745177ea0d5b6efdbe1f0474c9aa80716e0a2fb126a7d2e817"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_compat_provider.py: nanobot/providers/openai_compat_provider.py changed 24 times in last 90 days, max cyclomatic complexity 57 in OpenAICompatProvider._build_kwargs at line 929. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"995b4c079dd676771747cbcb083d010036e777d7c49ef8a74e41041170285f08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ModelPresetBadge.tsx: webui/src/components/thread/ModelPresetBadge.tsx changed 19 times in last 90 days, max cyclomatic complexity 70 in ModelPresetBadge.ModelPresetBadge at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e11d20b601423480ef63fe7740f7b2fb3efb2454727838af5a8ebcd5e15fd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/ProviderSettings.tsx: webui/src/components/settings/models/ProviderSettings.tsx changed 14 times in last 90 days, max cyclomatic complexity 88 in ProviderSettings.ProvidersSettings at line 676. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd378c0f6ac548e4e5c9f8e58ce15b988c0897729f1c872df904873171f5db5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/linear/webui/LinearPanel.tsx: nanobot/channels/linear/webui/LinearPanel.tsx changed 10 times in last 90 days, max cyclomatic complexity 118 in LinearPanel.LinearPanel at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d54b8ddd713bf42d4ec0fbd1c36aa4daad8631ef1d3e9b108e0398db885a1bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SettingsPage.tsx: webui/src/components/settings/SettingsPage.tsx changed 16 times in last 90 days, max cyclomatic complexity 73 in SettingsPage.SettingsPage 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"620da3c5563ecb80c88c2002b17e23f3013d310f522a1d8c89557af8a5122e28"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/filesystem.py: nanobot/agent/tools/filesystem.py changed 24 times in last 90 days, max cyclomatic complexity 48 in EditFileTool.execute at line 913. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"26163a320fda25194fcbfb0e096476ac0fd7c28701a37409edcaa77e2b7f6229"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/commands.py: nanobot/cli/commands.py changed 75 times in last 90 days, max cyclomatic complexity 15 in commands.status at line 657. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/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/cli/commands.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"20dfb45adda8b22b9329156a151989b93bca28f4784456d920d4e426e1c5d8c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/shell.py: nanobot/agent/tools/shell.py changed 40 times in last 90 days, max cyclomatic complexity 27 in ExecTool._guard_command at line 807. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc55b54cc65b2f37db940e50e3abf9cf37743d4c66f9099afeacb31869fe902"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/base.py: nanobot/providers/base.py changed 26 times in last 90 days, max cyclomatic complexity 41 in LLMProvider._run_with_retry at line 1792. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"921540147d72e98126c01a1b193f5d6aa35d6e0c64295dc228b624d2ea4731cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelSetupPanel.tsx: webui/src/components/settings/channels/ChannelSetupPanel.tsx changed 12 times in last 90 days, max cyclomatic complexity 88 in ChannelSetupPanel.ChannelSetupSurface at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b86a3d90e0af4abc91e8505b128a078d3990f8aad3cf2005dab36fe7ebedbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/ModelControls.tsx: webui/src/components/settings/shared/ModelControls.tsx changed 10 times in last 90 days, max cyclomatic complexity 104 in ModelControls.ModelIdPicker at line 168. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"54faaa6086435efd964d1913039c9bd7da0f6d54adaf88679b0fe85b07c7dac8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/models/useModelSettingsActions.ts: webui/src/components/settings/models/useModelSettingsActions.ts changed 8 times in last 90 days, max cyclomatic complexity 120 in useModelSettingsActions.useModelSettingsActions at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d2c0c5f0c7b8213e2b1b78c13726e746fe8be6905dcb34d8d54088df5fdb89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/WorkspaceControls.tsx: webui/src/components/thread/WorkspaceControls.tsx changed 16 times in last 90 days, max cyclomatic complexity 59 in WorkspaceControls.WorkspaceProjectPicker 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c40142f8646d172cc12a84d42b11954ddeb3018178f58aca226ba051fa68dc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AutomationsSettings.tsx: webui/src/components/settings/system/AutomationsSettings.tsx changed 18 times in last 90 days, max cyclomatic complexity 52 in AutomationsSettings.AutomationDetailPanel at line 442. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe32ad0fd40fbc0083519df2f3285b7176fc70a30c68e11d4131ca97c40056"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/fallback_provider.py: nanobot/providers/fallback_provider.py changed 22 times in last 90 days, max cyclomatic complexity 42 in FallbackProvider._try_with_fallback at line 458. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3166af9f85a8ae1febd3d9f9745630f2b59e9aef649764dfcafd5b7f7f4f3944"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_responses/parsing.py: nanobot/providers/openai_responses/parsing.py changed 10 times in last 90 days, max cyclomatic complexity 89 in parsing.consume_sse_with_reasoning at line 358. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caec55ec6aa1fcdc59b9ff755fd4f0d4f5e03ef485666c179b188712bb28fbd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelQrConnectFlow.tsx: webui/src/components/settings/channels/ChannelQrConnectFlow.tsx changed 13 times in last 90 days, max cyclomatic complexity 67 in ChannelQrConnectFlow.ChannelQrConnectFlow at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0171097e7a2d29b6e504a8815f2a4edf541e005091c02be2f831cd0f167da1ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/AgentActivityCluster.tsx: webui/src/components/thread/AgentActivityCluster.tsx changed 19 times in last 90 days, max cyclomatic complexity 44 in AgentActivityCluster.FoldedAgentActivity at line 234. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6103188ed8e102793756ba531f276cbe9f7953d8a2a9c68ec4c7d60b080117f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_codex_provider.py: nanobot/providers/openai_codex_provider.py changed 18 times in last 90 days, max cyclomatic complexity 42 in OpenAICodexProvider._call_codex 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c73f8cf24667db22a2732951274dcb5c0b45bab7f8ca366a920430ec92e6e98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AppsSettings.tsx: webui/src/components/settings/system/AppsSettings.tsx changed 11 times in last 90 days, max cyclomatic complexity 64 in AppsSettings.McpAppsCatalogRow at line 493. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f6b8c9155c4324ab7248f8a8525568a35bf93b3fb880bf47b52c0275a9325"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/MarkdownTextRenderer.tsx: webui/src/components/MarkdownTextRenderer.tsx changed 20 times in last 90 days, max cyclomatic complexity 35 in MarkdownTextRenderer.MarkdownTextRenderer at line 528. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5678221dc05cf4556f77d48df47945acb7ccfa6126e6c01a19269ceecf11ffd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/thread-event-projection.ts: webui/src/lib/thread-event-projection.ts changed 8 times in last 90 days, max cyclomatic complexity 79 in thread-event-projection.projectThreadEvent at line 756. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"abde7d956cf23b51e00d5bd4a9efed8d6cc1f507267aa0546e367da8874f2e54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/web.py: nanobot/agent/tools/web.py changed 17 times in last 90 days, max cyclomatic complexity 35 in WebSearchTool._effective_provider at line 422. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae92ad00ba3f858876eff6b205f76a679e8f9f41d4d25444512018438bb46bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useSessions.ts: webui/src/hooks/useSessions.ts changed 11 times in last 90 days, max cyclomatic complexity 54 in useSessions.useSessionHistory at line 383. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31bcf17d17d6b6ef9188dce0994a0d4d556842ba051c3afaaa841e92e0aab16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/useSettingsController.ts: webui/src/components/settings/useSettingsController.ts changed 9 times in last 90 days, max cyclomatic complexity 66 in useSettingsController.useSettingsController at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2ac1c707b8898f1c03bee5400229ca493495f702078e95d479f313bf3e7147"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/mcp.py: nanobot/agent/tools/mcp.py changed 30 times in last 90 days, max cyclomatic complexity 19 in MCPPromptWrapper.execute at line 917. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33b9c69e09dd5612240f5e950016e2e9432af7388c3db05ad37b5c9dd814fac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/workbench/PaneWorkbench.tsx: webui/src/components/workbench/PaneWorkbench.tsx changed 5 times in last 90 days, max cyclomatic complexity 114 in PaneWorkbench.PaneWorkbench at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0164e3068230a9be080e4a3282eeb145f7fa0bae93e14c426596d44c47c9a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/webui_turns.py: nanobot/session/webui_turns.py changed 32 times in last 90 days, max cyclomatic complexity 17 in webui_turns.maybe_generate_webui_title at line 198. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"825299ec082bdea5e504669c17f685748ee01dfc913f2e5dd95832b33eade832"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_routes.py: nanobot/webui/settings_routes.py changed 19 times in last 90 days, max cyclomatic complexity 28 in WebUISettingsRouter.dispatch at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69a543dfeec84b87605e4c137111cba0b1307e2ccc4a64cd3a83bfadc3d83b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/onboard.py: nanobot/cli/onboard.py changed 13 times in last 90 days, max cyclomatic complexity 39 in onboard._configure_pydantic_model at line 926. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/onboard.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/onboard.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc2827364b523dc273bade05e297872a1bbec870e4091b7aab5d2650e8ec91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/gateway_runtime.py: nanobot/cli/gateway_runtime.py changed 29 times in last 90 days, max cyclomatic complexity 17 in gateway_runtime._run_gateway at line 344. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0868af505848e8f651a60d08af9b2a51d79baa5bd2d1b94ebc115ac906391"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/session_list_index.py: nanobot/webui/session_list_index.py changed 18 times in last 90 days, max cyclomatic complexity 26 in session_list_index._scan_transcript_row at line 538. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/session_list_index.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/session_list_index.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a658c55cdae2cc9ebd0c7d67bb94d5c43d645b1d6cef30f7cb745ca00b1166"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SkillsMarketplace.tsx: webui/src/components/settings/SkillsMarketplace.tsx changed 14 times in last 90 days, max cyclomatic complexity 33 in SkillsMarketplace.SkillsMarketplace at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"99be0e1f332c052923913e140df939132cf078e00d0678fb77179ba6b7df1fc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/webui.py: nanobot/cli/webui.py changed 12 times in last 90 days, max cyclomatic complexity 38 in webui.webui at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc45424109304c7a305f579825b4e94d1904046de0b7138b4847b1d4f67584c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/search.py: nanobot/agent/tools/search.py changed 8 times in last 90 days, max cyclomatic complexity 57 in GrepTool._execute_sync at line 681. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ad57340a0aa96d66a06a36acae14f4a034f6a16d6e3dfb9d95f54036d4ed5e"}},{"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, max cyclomatic complexity 27 in XAIGrokProvider._call_xai at line 104. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a575eb487906201f79d79a1de32c508f17ad2e90952253b0e6fd0a709b44f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/transcript.ts: tui/src/transcript.ts changed 25 times in last 90 days, max cyclomatic complexity 17 in Transcript.prependHistory at line 269. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/transcript.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d873377e9e3c5f273dbf845e800a486b0dcd2a3a82cf842b1ed453202a0644"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SkillsCatalogSettings.tsx: webui/src/components/settings/SkillsCatalogSettings.tsx changed 15 times in last 90 days, max cyclomatic complexity 28 in SkillsCatalogSettings.SkillDetailSheet at line 266. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bab11fbc4a20a1d0dc8521110c6940edfd97b79bc70d81d9f1f961a3d202e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/utils/helpers.py: nanobot/utils/helpers.py changed 18 times in last 90 days, max cyclomatic complexity 23 in helpers.split_message at line 672. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"301ba6bb5c223e41bd6d72cc762a4507eea74a894c593ec7270895a725409310"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/factory.py: nanobot/providers/factory.py changed 14 times in last 90 days, max cyclomatic complexity 29 in factory._resolve_provider_setup at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c648318147d90cc9fe36d882543afefb96e1b9261831e435cb245eb83e60ab8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/self.py: nanobot/agent/tools/self.py changed 14 times in last 90 days, max cyclomatic complexity 29 in MyTool._format_value at line 296. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/self.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/self.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2229d24e7da38421b2491f295a6f8a0b22e39e4fc839713d4b19fb0cae0f3c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/createSystemSettingsActions.ts: webui/src/components/settings/system/createSystemSettingsActions.ts changed 4 times in last 90 days, max cyclomatic complexity 100 in createSystemSettingsActions.createSystemSettingsActions 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/createSystemSettingsActions.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/createSystemSettingsActions.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2427afdfa278fec4451cfaa7904ec64596226ec7ac411cf163b0e6907418aed8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/Sidebar.tsx: webui/src/components/Sidebar.tsx changed 14 times in last 90 days, max cyclomatic complexity 27 in Sidebar.Sidebar at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb0a954047a9f58ba5a93ca672c86c10ef64bfb32cc69a41862f0ba103e8825"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/CliAppMentionText.tsx: webui/src/components/CliAppMentionText.tsx changed 16 times in last 90 days, max cyclomatic complexity 23 in CliAppMentionText.splitCapabilityMentionSegments 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad1019c36f7c7717df386a8879f5e2851422cac8917b45683d2eb54e07b524"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/inbound_commands.py: nanobot/webui/inbound_commands.py changed 6 times in last 90 days, max cyclomatic complexity 60 in WebUICommandRouter._dispatch_message at line 482. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7434c92691ae12b6eceb227e12d8a1a90a262219f19cec5cbd882969d7521a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/api/server.py: nanobot/api/server.py changed 15 times in last 90 days, max cyclomatic complexity 24 in server.handle_chat_completions at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/api/server.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/api/server.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9e805b7629aea1b65d3774513e160a665a1f00c3f20b596be1f44ec0708072"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_models.py: nanobot/webui/settings_models.py changed 14 times in last 90 days, max cyclomatic complexity 25 in settings_models.provider_models_payload at line 619. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"8639e871f893879e4718c0f37d4292d5705585103ee6d7d05fe035767e2a850a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/tui_launcher.py: nanobot/cli/tui_launcher.py changed 22 times in last 90 days, max cyclomatic complexity 15 in tui_launcher._download_release_tui at line 253. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"3565a6b8527c843f9d79db79257b71f0ccbe9fbf8fe4cfd2e6c0de2e59a78c75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelInstancesPanel.tsx: webui/src/components/settings/channels/ChannelInstancesPanel.tsx changed 9 times in last 90 days, max cyclomatic complexity 36 in ChannelInstancesPanel.ChannelInstancesPanel 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelInstancesPanel.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/ChannelInstancesPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc8cc1749d4ed568e1d38adacd56863b6ea4f103b8007b605d460fa074bd639"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/base.py: nanobot/agent/tools/base.py changed 7 times in last 90 days, max cyclomatic complexity 45 in Schema.validate_json_schema_value 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"567735b87328d3c5a471dad7a0cb4373bc972e62e8bdc053ae6bdf5360dd7003"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/turn_delivery.py: nanobot/agent/turn_delivery.py changed 13 times in last 90 days, max cyclomatic complexity 21 in TurnDelivery._publish_event at line 401. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd3dccad417138a55569bcd7eba0cfdf816a0d1ea19c1098cd0c06b0dcb8e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/context_governance.py: nanobot/agent/context_governance.py changed 15 times in last 90 days, max cyclomatic complexity 18 in ContextGovernor._merge_adjacent_user_messages_for_model 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/context_governance.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/context_governance.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a9d5f1adeb7d27e81cd46edd0e231b73fcbe0af4ec8fa3be72476a6f4458e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cron/service.py: nanobot/cron/service.py changed 18 times in last 90 days, max cyclomatic complexity 15 in CronService.update_job at line 814. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3c6bf53bdb855995182b499cc398ee11970dd7e5c54d9c58a7c39c0b56562"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ComposerUsagePopover.tsx: webui/src/components/thread/ComposerUsagePopover.tsx changed 5 times in last 90 days, max cyclomatic complexity 54 in ComposerUsagePopover.ComposerUsagePopover at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e4711e96a3c1d1304fe27a3c84cefa194b56e25a6b037bb26b6c9096234e5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/image_generation.py: nanobot/providers/image_generation.py changed 15 times in last 90 days, max cyclomatic complexity 18 in OpenRouterImageGenerationClient.generate at line 372. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/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/providers/image_generation.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecab94259a7adceada01c20f267ff0ac7ca1bcdeb7f3aa25f39b6c438f320a02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/vite.config.ts: webui/vite.config.ts changed 9 times in last 90 days, max cyclomatic complexity 29 in webuiManualChunk at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2b27c34ae895c9347a0e0a68fa82404fb797c85b47f2f1d833b5be862eecc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/exec_session.py: nanobot/agent/tools/exec_session.py changed 16 times in last 90 days, max cyclomatic complexity 16 in ExecSessionTool._wait at line 637. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60bc1cbdd4d925a48105156ae6d75e228d7acfb19c860910a0394c8e14f654"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/FileReferenceChip.tsx: webui/src/components/FileReferenceChip.tsx changed 9 times in last 90 days, max cyclomatic complexity 28 in FileReferenceChip.fileKindForPath at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6b8f126d572cc89afc4b3d8efb6cf79d6c86bedac5c53417f1f6d34087cfd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/CredentialForm.tsx: webui/src/components/settings/channels/CredentialForm.tsx changed 8 times in last 90 days, max cyclomatic complexity 31 in CredentialForm.CredentialForm 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"116cd94dc38a4f6756172cedaab11e2fc79d4c2067859433ba1aac0fc00b5907"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/outbound_projection.py: nanobot/webui/outbound_projection.py changed 7 times in last 90 days, max cyclomatic complexity 35 in WebUIOutboundProjector.send at line 138. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/outbound_projection.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_projection.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa46f5791fdf967e5fd634850937fa11065b0016c7aacf2633675c32fb20879d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/mcp_presets_api.py: nanobot/webui/mcp_presets_api.py changed 9 times in last 90 days, max cyclomatic complexity 27 in mcp_presets_api._mcp_server_config at line 1369. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/mcp_presets_api.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/mcp_presets_api.py"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfc527ac4e2a672e4af09190fe38ebb145363d336f3fca273bf70394701f681"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/utils/gitstore.py: nanobot/utils/gitstore.py changed 12 times in last 90 days, max cyclomatic complexity 20 in GitStore.summarize_working_tree at line 300. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/utils/gitstore.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/gitstore.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0528257a863c00edd1217ae2743fc79f62c15458c4aa940a1535f2994d8986b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/ChannelsSettings.tsx: webui/src/components/settings/system/ChannelsSettings.tsx changed 7 times in last 90 days, max cyclomatic complexity 32 in ChannelsSettings.ChannelsSettings 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"33907ec8672856aa4c0710339158f0e736a34ff49c47b1699ea0007855086548"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/config/loader.py: nanobot/config/loader.py changed 14 times in last 90 days, max cyclomatic complexity 16 in loader._resolve_in_place at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/config/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/config/loader.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5dae435ad491430a855563f2d3992dd752c4489aab8b62b5a4326e774b475a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/PromptRail.tsx: webui/src/components/thread/PromptRail.tsx changed 13 times in last 90 days, max cyclomatic complexity 17 in PromptRail.PromptRail at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff071a8b1a81f6dd31e308e6dc47616d09a97bf025cafef9880a4fbb9cbf27"}},{"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 8 times in last 90 days, max cyclomatic complexity 27 in generic-tool-model.activityLabel at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17827906fb40093becc1870bb6f166e627efdb4766705d28ae98b3ef46eec43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/weixin/webui/WeixinPanel.tsx: nanobot/channels/weixin/webui/WeixinPanel.tsx changed 7 times in last 90 days, max cyclomatic complexity 30 in WeixinPanel.WeixinPanel at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"286460688cf7e16bf8c337bf04b65e73e9dc5b6ffcbb4c914f3e12876ec6491a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/settings_system.py: nanobot/webui/settings_system.py changed 6 times in last 90 days, max cyclomatic complexity 35 in settings_system.coerce_channel_value at line 256. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadee58d238185e6759c1cd831b6ce4e12a7e45244fff1b4f75215f24a8b73d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/ThinkingReasoningShell.tsx: webui/src/components/thread/activity/ThinkingReasoningShell.tsx changed 9 times in last 90 days, max cyclomatic complexity 23 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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/FilePreviewPanel.tsx: webui/src/components/FilePreviewPanel.tsx changed 9 times in last 90 days, max cyclomatic complexity 22 in FilePreviewPanel.FilePreviewPanel 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/FilePreviewPanel.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/FilePreviewPanel.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eefddc20196ee30fea41ea4f08e47c733eef9d58e0a1a452237cebd90af13ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/github_copilot_provider.py: nanobot/providers/github_copilot_provider.py changed 9 times in last 90 days, max cyclomatic complexity 22 in github_copilot_provider.login_github_copilot 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f99ca30a8a7b8e005aa7ec4e495735f59e9eebff38cf15672389ef34b4e4e0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/agent.py: nanobot/cli/agent.py changed 9 times in last 90 days, max cyclomatic complexity 22 in agent.agent at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/agent.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/agent.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e6faf8848cc5a2a60e5a557b1c4468813cffbd458f07b4d2e423dcc355bf91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/anthropic_provider.py: nanobot/providers/anthropic_provider.py changed 7 times in last 90 days, max cyclomatic complexity 28 in AnthropicProvider.chat_stream at line 769. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c3a93ff19ed6dbdcd9688736a8b5758103965fb3cca494233a6f531586624c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/session_access.py: nanobot/webui/session_access.py changed 12 times in last 90 days, max cyclomatic complexity 16 in session_access._visible_projection_events at line 90. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/session_access.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/session_access.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5549a5b8a37fe7536f73643f89239300805a3173b5c13e4deda60599d1d6db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/openai_responses/converters.py: nanobot/providers/openai_responses/converters.py changed 7 times in last 90 days, max cyclomatic complexity 26 in converters.convert_tool_output at line 103. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5f1bae4a8938aa71203379c5f5d16b7cdec98a0a6f7d1540acbce726e900b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/CodeBlock.tsx: webui/src/components/CodeBlock.tsx changed 6 times in last 90 days, max cyclomatic complexity 30 in CodeBlock.CodeBlock at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4d4561f390f7644abb3effa290214ac2c52c222e5b9c606fc8baf717249609"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/FileEditRow.tsx: webui/src/components/thread/activity/FileEditRow.tsx changed 8 times in last 90 days, max cyclomatic complexity 22 in FileEditRow.FileUnifiedDiff at line 170. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49fc208a4a86d70becf6fdde9e6f9d64a7d8b068c0633fbd18f46f698c5d5eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/apply_patch.py: nanobot/agent/tools/apply_patch.py changed 4 times in last 90 days, max cyclomatic complexity 44 in ApplyPatchTool.execute at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/apply_patch.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/apply_patch.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"05840f17014f48af8ab889d56bbcd68d6e0dc066afd7cc02676afaafe4a9d3de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/optional_features.py: nanobot/optional_features.py changed 8 times in last 90 days, max cyclomatic complexity 22 in optional_features.with_channel_runtime_status at line 536. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/optional_features.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/optional_features.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a5c12f9cb2b9f78cb59238b280a6e82bac84d5dfd319315804554c4b732a3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/apps/cli/service.py: nanobot/apps/cli/service.py changed 9 times in last 90 days, max cyclomatic complexity 19 in CliAppManager.uninstall at line 1252. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/apps/cli/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/apps/cli/service.py"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd9b2e302b1e45e2cb94662eaeecb067361da654b59e69e8ec5be24f4d83199"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/linear/webui/LinearMemberAccess.tsx: nanobot/channels/linear/webui/LinearMemberAccess.tsx changed 6 times in last 90 days, max cyclomatic complexity 28 in LinearMemberAccess.LinearMemberAccess 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/channels/linear/webui/LinearMemberAccess.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/LinearMemberAccess.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4733874ac5be8c8e6e60fbc32ac590c393790a9f1bcaca1ba7a7cfda2d66b4d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/ThreadHeader.tsx: webui/src/components/thread/ThreadHeader.tsx changed 11 times in last 90 days, max cyclomatic complexity 15 in ThreadHeader.ThreadHeader 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/ThreadHeader.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/ThreadHeader.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c9bfca161c61952bd9b261ad01af17feacdf186e0cb688b91f7628caf97536"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/footer-hints.ts: tui/src/footer-hints.ts changed 9 times in last 90 days, max cyclomatic complexity 18 in footer-hints.hintsFor at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/footer-hints.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c775db115a3526d43dfee12c567af25cf9f56a11a65c9422b3ddcaa59c13852b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/security/network.py: nanobot/security/network.py changed 9 times in last 90 days, max cyclomatic complexity 18 in network.resolve_url_target at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/security/network.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/security/network.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce8ff6225d31e8994b1e568bc3be09a58bfd0a9b601258796850d2b35957d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/thread-display-projection.ts: webui/src/lib/thread-display-projection.ts changed 5 times in last 90 days, max cyclomatic complexity 32 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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: nanobot/agent/tools/message.py: nanobot/agent/tools/message.py changed 5 times in last 90 days, max cyclomatic complexity 32 in MessageTool.execute 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"03de679d6b23e24823018b6ddf59583c55a5d209a4726176fbee33505a402265"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/shared/SettingsControls.tsx: webui/src/components/settings/shared/SettingsControls.tsx changed 5 times in last 90 days, max cyclomatic complexity 30 in SettingsControls.RestartSettingsFooter at line 247. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"1515ab1764ac2c7cd74dd2295967391e0eb2280b9ac2c1477761cdf9b4152962"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/SessionSearchDialog.tsx: webui/src/components/SessionSearchDialog.tsx changed 5 times in last 90 days, max cyclomatic complexity 29 in SessionSearchDialog.SessionSearchDialog 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10485c1f771be4b84e2a2d7f32e4026a74a7a62085c0d0ea16801bff2597fac"}},{"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, max cyclomatic complexity 48 in useSystemSettingsEffects.useSystemSettingsEffects 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ed5f055201cdc363edcbe06a39bf0cca0457479629593fbd645a3ac4ecfc42"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/triggers/local_runner.py: nanobot/triggers/local_runner.py changed 9 times in last 90 days, max cyclomatic complexity 16 in local_runner.run_local_trigger_queue 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/triggers/local_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/triggers/local_runner.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f55af720774e8e4420c2a7554853fdedfbce03345064786b92e765bae3abb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/cron.py: nanobot/agent/tools/cron.py changed 7 times in last 90 days, max cyclomatic complexity 20 in CronTool._add_job at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/cron.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/cron.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d93906fd3fe79dacdf3d9c92a8c521a1febfede304e95cde3895ce99ae7acc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/pairing/store.py: nanobot/pairing/store.py changed 8 times in last 90 days, max cyclomatic complexity 17 in store._handle_pairing_subcommand at line 316. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/pairing/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/pairing/store.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0ad36075a1c0cc3d80b0b457f364268844dab68cc83f3deb8dcb082ee358ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/thread-motion.ts: webui/src/components/thread/thread-motion.ts changed 6 times in last 90 days, max cyclomatic complexity 22 in ThreadMotionCoordinator.flushGeometry at line 432. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3184abbe4d770c2b9e5ed186e31012122fabf13b922db31f7cc2fc8cb35da4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useVoiceRecorder.ts: webui/src/hooks/useVoiceRecorder.ts changed 3 times in last 90 days, max cyclomatic complexity 41 in useVoiceRecorder.useVoiceRecorder 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useVoiceRecorder.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/useVoiceRecorder.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e799a94a71b509fb6743c996f76d93dd91735c56104da533c4af279ff3668e89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/turn_hooks.py: nanobot/agent/turn_hooks.py changed 8 times in last 90 days, max cyclomatic complexity 15 in turn_hooks.build_agent_turn_hook 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/turn_hooks.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_hooks.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b280bca8ecf707393ea6e1022838a52c0fb0020d5e69e5e66afd39c00bd4ced"}},{"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, max cyclomatic complexity 17 in activity-timeline.projectOrderedTurn at line 121. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc566912b893df134cd7141013ea288af637c3b49e6d0084e62571376a442d52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/bedrock_provider.py: nanobot/providers/bedrock_provider.py changed 4 times in last 90 days, max cyclomatic complexity 29 in BedrockProvider._parse_stream_event at line 547. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/bedrock_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/bedrock_provider.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ad120a507a270c0eb5ef3d2d4573a03b47ba16fda933ebf990dcf555c36388"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/AttachmentTile.tsx: webui/src/components/AttachmentTile.tsx changed 5 times in last 90 days, max cyclomatic complexity 23 in AttachmentTile.AttachmentTile 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e42c8e55c01e02cb56d596dd9461cb7cd91b3f6273d2ea11d4e2e834c6cc7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/RuntimeSettings.tsx: webui/src/components/settings/system/RuntimeSettings.tsx changed 2 times in last 90 days, max cyclomatic complexity 57 in RuntimeSettings.RuntimeSettings 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/system/RuntimeSettings.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/RuntimeSettings.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ea7ee8673434e248e2504da84c50272ed36b42cbccb8b08f87a9765c42ed4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/long_task.py: nanobot/agent/tools/long_task.py changed 6 times in last 90 days, max cyclomatic complexity 19 in UpdateGoalTool.execute 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/long_task.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/long_task.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0391456c1a093a6a9307cc20b13803d93ca36f6750f1f0e14993c41e948e19e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/SettingsSidebar.tsx: webui/src/components/settings/SettingsSidebar.tsx changed 6 times in last 90 days, max cyclomatic complexity 18 in SettingsSidebar.SettingsSidebar 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a14783c196690e24c79ba5dc3e750123dd52b97c91eb2c67400031d032b3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/skills_marketplace.py: nanobot/webui/skills_marketplace.py changed 5 times in last 90 days, max cyclomatic complexity 21 in skills_marketplace._skillhub_skill 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddb80e234bd5d9029666110c20522624698de2864cbbda7d11d0563a2ece725"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/McpManagementDialog.tsx: webui/src/components/settings/system/McpManagementDialog.tsx changed 3 times in last 90 days, max cyclomatic complexity 34 in McpManagementDialog.McpManagementDialog at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfa02337d47328cf6f0db5ed629a6457976fb14e26e1871873913ade2487cfe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useAttachedImages.ts: webui/src/hooks/useAttachedImages.ts changed 3 times in last 90 days, max cyclomatic complexity 33 in useAttachedImages.useAttachedImages at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f075f48090424d2a7b2327a9d0b2abe76fae14bd7b790f36b26716f9515c11d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/latex.ts: tui/src/latex.ts changed 3 times in last 90 days, max cyclomatic complexity 33 in LatexParser.command at line 652. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/latex.ts"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef2e00fa624f24853d1d1b7f5cd9d8bac726fc71a14cc50d9d5eead8227efc8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/providers/azure_openai_provider.py: nanobot/providers/azure_openai_provider.py changed 6 times in last 90 days, max cyclomatic complexity 16 in AzureOpenAIProvider._build_body at line 182. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/azure_openai_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/azure_openai_provider.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b163435f302d2b38a804d2b476aacf21ff5becbbcda599bedf3bd846debfad54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/session/recovery.py: nanobot/session/recovery.py changed 4 times in last 90 days, max cyclomatic complexity 24 in recovery.restore_runtime_checkpoint at line 276. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb557323fd376f1cd2a0800a4c9c7a9e7dafdb1ac0276f00bea3e5173521fce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useSidebarState.ts: webui/src/hooks/useSidebarState.ts changed 5 times in last 90 days, max cyclomatic complexity 19 in useSidebarState.useSidebarState at line 137. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useSidebarState.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/useSidebarState.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6328807343d628ba9f9f60706d8591be5a6c01d73887db539466e271efa7567"}},{"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 4 times in last 90 days, max cyclomatic complexity 23 in trace-activity-model.describeTraceLine 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d85c484a570cce3baa656377488a04428264c97e4598013883b1fd39046b47d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts: webui/src/components/settings/capabilities/useCapabilitySettingsActions.ts changed 2 times in last 90 days, max cyclomatic complexity 46 in useCapabilitySettingsActions.useCapabilitySettingsActions at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4512af1bdbd4480a8cc48de3cd8daef03ddfa838b6e21c24bb948164c6f5716e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/segmented-control.tsx: webui/src/components/ui/segmented-control.tsx changed 3 times in last 90 days, max cyclomatic complexity 30 in segmented-control.SegmentedControl 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8362fc143cb1353ff944240e8a5c44956eef8a46537ce8f325fec27eca6bac3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/SessionInfoPopover.tsx: webui/src/components/thread/SessionInfoPopover.tsx changed 5 times in last 90 days, max cyclomatic complexity 18 in SessionInfoPopover.SessionInfoPopover at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/SessionInfoPopover.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/SessionInfoPopover.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c00a0ff2739eeae912defb3eefe865a28e268c2b04213af9950251ea99edfd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/hooks/useComposerMentionInput.ts: webui/src/hooks/useComposerMentionInput.ts changed 2 times in last 90 days, max cyclomatic complexity 43 in useComposerMentionInput.useComposerMentionInput at line 10. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useComposerMentionInput.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/useComposerMentionInput.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"739f8c57445a325f0a2354512f317c94a63a9e33c8ece545e540ea02bbeb98fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/usage-panel.ts: tui/src/usage-panel.ts changed 2 times in last 90 days, max cyclomatic complexity 43 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/usage-panel.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e579ade9da9a1796aa5dfb3a6111be44d171f3e8fee1d45cc6cbeb95ba648bb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/system/AutomationCalendar.tsx: webui/src/components/settings/system/AutomationCalendar.tsx changed 4 times in last 90 days, max cyclomatic complexity 20 in AutomationCalendar.AutomationCalendar at line 220. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d25757bab405643bb49786a9ff53c212435a5eeaf2fc706b62a5c539634e193"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/scripts/pty_smoke.py: tui/scripts/pty_smoke.py changed 4 times in last 90 days, max cyclomatic complexity 19 in pty_smoke.main 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe451bcdcf19218a18b90019178996ddf18c3e384bfa1a7442911b6a4b7e37b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/FileActions.tsx: webui/src/components/FileActions.tsx changed 3 times in last 90 days, max cyclomatic complexity 25 in FileActions.FileActions 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba4ae8bb9c24ed2cf9f291db70e7814b4bc649e1f94ab2918770d671fddcffa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/SidebarSelectionHighlight.tsx: webui/src/components/SidebarSelectionHighlight.tsx changed 5 times in last 90 days, max cyclomatic complexity 15 in SidebarSelectionHighlight.SidebarSelectionHighlight 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/SidebarSelectionHighlight.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/SidebarSelectionHighlight.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3627697a59bf5d41aa14f65b997839d2320fccdd838e03e36e8099e0f39eb4e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/mcp_oauth.py: nanobot/agent/tools/mcp_oauth.py changed 4 times in last 90 days, max cyclomatic complexity 18 in mcp_oauth._stored_server 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/mcp_oauth.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_oauth.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4440fb1e86d983aa4516660c28ccd2e793d976c5d4236a7fbedd790c3351bfab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/bootstrap.ts: webui/src/lib/bootstrap.ts changed 4 times in last 90 days, max cyclomatic complexity 18 in bootstrap.deriveWsUrl at line 103. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/bootstrap.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/bootstrap.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fb9d9d8c2ea43629862287037f29cd26ecdded5bc30cf41de5121e72f4ce53"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/agent/tools/execution.py: nanobot/agent/tools/execution.py changed 4 times in last 90 days, max cyclomatic complexity 17 in execution._execute_tool_call 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"118b64fa14215e8671c3984a373809261d87ef7876ac7790d93f0dd52ba585eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/WebSettings.tsx: webui/src/components/settings/capabilities/WebSettings.tsx changed 2 times in last 90 days, max 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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/WebLink.tsx: webui/src/components/WebLink.tsx changed 4 times in last 90 days, max cyclomatic complexity 15 in WebLink.WebsiteLink 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e65b530c270d5713b55fbad7ca9274f87b82554d4822d34913f2f6b13da36e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/PreviewPane.tsx: webui/src/components/PreviewPane.tsx changed 2 times in last 90 days, max cyclomatic complexity 26 in PreviewPane.PreviewPane at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa1838bc0508a1487c48bf712d193342dbd2814b6d16f87aa899eb286f7aa5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/diff-viewer.ts: tui/src/diff-viewer.ts changed 2 times in last 90 days, max cyclomatic complexity 26 in DiffViewer.render at line 249. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/diff-viewer.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fd7fd475031402714baa9c60f0a901b37377f2e8db823c44371431accefdc7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/lib/chat-groups.ts: webui/src/lib/chat-groups.ts changed 3 times in last 90 days, max cyclomatic complexity 17 in chat-groups.groupSessions at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/chat-groups.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/chat-groups.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5d7a70a3caf9b1f1f6cda3ddf07ae940fb683e9df3e427a9e78c6548583d39"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/desktop_tui.py: nanobot/cli/desktop_tui.py changed 3 times in last 90 days, max cyclomatic complexity 17 in desktop_tui._connection at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cli/desktop_tui.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_tui.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d68807f89371076d78cb1b0c80d18605f68c674b75803805f52e8d2d2f75ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/cli/terminal.py: nanobot/cli/terminal.py changed 3 times in last 90 days, max cyclomatic complexity 17 in terminal._maybe_print_interactive_progress at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"98772908a35d64f5ea09e57217f5272373483b3286152d0b91c0feca7d0347d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/AssistantSelectionAction.tsx: webui/src/components/thread/AssistantSelectionAction.tsx changed 2 times in last 90 days, max cyclomatic complexity 25 in AssistantSelectionAction.AssistantSelectionAction 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/AssistantSelectionAction.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/AssistantSelectionAction.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40eb7f6562ef5b82b1c79b2fecfb1067901f0c7d47faa633233a415d59fd833"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/attachment_ingress.py: nanobot/webui/attachment_ingress.py changed 2 times in last 90 days, max cyclomatic complexity 25 in attachment_ingress.store_inbound_attachments at line 79. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/attachment_ingress.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/attachment_ingress.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1f75bd198040d7d85ab6d9067da8bda94641a629af7978f64f827812bcd87c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/channels/ChannelValidationProgress.tsx: webui/src/components/settings/channels/ChannelValidationProgress.tsx changed 2 times in last 90 days, max cyclomatic complexity 24 in ChannelValidationProgress.ChannelValidationProgress at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/settings/channels/ChannelValidationProgress.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/ChannelValidationProgress.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fb999ee43d10aad81d6a46b208c9bdf9c67052a1abf8405fe858147ae18a75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/web-url.ts: webui/src/components/thread/activity/web-url.ts changed 2 times in last 90 days, max cyclomatic complexity 24 in web-url.isPrivateHostname 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/web-url.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/web-url.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"317676e1b00943be65f60bfb3c74792309560ab78f79a4a51fd7c49e35e71ddf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ui/combobox.tsx: webui/src/components/ui/combobox.tsx changed 2 times in last 90 days, max cyclomatic complexity 24 in combobox.useComboboxNavigation 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/ui/combobox.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/combobox.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71da4ac1757ea98f06d165ef6854ef71805198a66a39501be44ab47a7591f32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/utils/rotating_output.py: nanobot/utils/rotating_output.py changed 3 times in last 90 days, max cyclomatic complexity 15 in RotatingTextOutput.write at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/utils/rotating_output.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/rotating_output.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a828e37dd6e87e20f5b5230cfbece102220daf2528cb064fb11a59869f5fc2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/thread/activity/activity-message-model.ts: webui/src/components/thread/activity/activity-message-model.ts changed 3 times in last 90 days, max cyclomatic complexity 15 in activity-message-model.coalesceActivityMessages 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/thread/activity/activity-message-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/activity-message-model.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d81631be6df1c81a5f28b96476eee7d6144116bbc9af4f4f814e93ee5f8a9a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/workbench/workbench-model.ts: webui/src/components/workbench/workbench-model.ts changed 3 times in last 90 days, max cyclomatic complexity 15 in workbench-model.attachWorkbenchPane 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/components/workbench/workbench-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/workbench/workbench-model.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c2ba653e55d4cc8cc5744353ae8be772d1e6d1af6ac93bfd3ac215a621360c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tui/src/tool-renderers.ts: tui/src/tool-renderers.ts changed 3 times in last 90 days, max cyclomatic complexity 15 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- tui/src/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/tool-renderers.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc862c1ed15cfadc207d19fe10aa90c60496984f5f3736e11bd3281f2b8bae10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/llm_usage/store.py: nanobot/llm_usage/store.py changed 2 times in last 90 days, max cyclomatic complexity 22 in LLMUsageStore.usage_payload at line 402. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e473ce5b17034f596fadd912e53ca4dbf6d681425c6e015eead84cb64398aac0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/webui/mcp_oauth_api.py: nanobot/webui/mcp_oauth_api.py changed 2 times in last 90 days, max cyclomatic complexity 20 in McpOAuthManager._payload at line 355. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/mcp_oauth_api.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/mcp_oauth_api.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ccb047a3091ee181737443682e9e90b537a0377546fec29b5b4508ff6913e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/settings/capabilities/ImageGenerationSettings.tsx: webui/src/components/settings/capabilities/ImageGenerationSettings.tsx changed 2 times in last 90 days, max cyclomatic complexity 20 in ImageGenerationSettings.ImageGenerationSettings 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"43241047b93420004ddd0e18fc426ea853ee40e81e4b1e8da280e2421e5aff16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nanobot/channels/linear/webui/LinearAvatar.tsx: nanobot/channels/linear/webui/LinearAvatar.tsx changed 2 times in last 90 days, max cyclomatic complexity 18 in LinearAvatar.LinearAvatar 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/channels/linear/webui/LinearAvatar.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/LinearAvatar.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b64d36ecf967b289495f5274cd162bb5251b7eb4b1bebdb8af6fd536fed941"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webui/src/components/ImageLightbox.tsx: webui/src/components/ImageLightbox.tsx changed 2 times in last 90 days, max 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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: webui/src/lib/remark-tex-math.ts: webui/src/lib/remark-tex-math.ts changed 2 times in last 90 days, max cyclomatic complexity 17 in remark-tex-math.tokenizeMathFlow at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca41e38ac996a378273711ca7f214afcaf20bd2dee6d9a89d6cb3eeea77d495"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/install_channel_dependencies.py: scripts/install_channel_dependencies.py changed 2 times in last 90 days, max cyclomatic complexity 15 in install_channel_dependencies.ensure_repository_channel_dependencies 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- scripts/install_channel_dependencies.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/install_channel_dependencies.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ada30727e8417e79c8844a20c772dbf624e4d16b666ac81179efd6b685d3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/gateway/runtime.py: nanobot/gateway/runtime.py changed 22 times in last 90 days and 17 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 GatewayRuntime._claim_current_process at line 336), 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): recover degraded WebSocket listener (#5544)\u201D; \u201Cfix(runtime): preserve interrupted turns on gateway exit\u201D; \u201Cfix(gateway): allow Windows launcher PID handoff\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c70765c3792331e8f3a641c960b667af500ac323cf041e06c04a7d0613727d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/agent/subagent.py: nanobot/agent/subagent.py changed 21 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 13 (its worst body is SubagentManager._run_admitted_subagent at line 391), 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): remove local context tail truncation (#5820)\u201D; \u201Cfix: stream internal model calls with idle timeouts (#5730)\u201D; \u201Cfix: queue concurrent subagents (#5566)\u201D; \u201Cfix(agent): let subagents recover from tool errors\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe7374bc89bcee4461f1ca5a203521047834eecbc87f61576c7ae75b419649a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/webui_support.py: nanobot/cli/webui_support.py changed 15 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 14 (its worst body is webui_support._ensure_local_webui_channel at line 341), 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): make headless login self-explanatory (#5735)\u201D; \u201Cfix(cli): protect Windows browser credential handoff [skip ci]\u201D; \u201Cfix(cli): keep macOS bootstrap URLs out of argv [skip ci]\u201D; \u201Cfix(webui): resume incomplete model setup in the browser\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b91a44ac7cc98793f12fa0cb516a9bc80151be36e4e99ba49759ada037d7ac8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/process_runtime.py: nanobot/process_runtime.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 10 (its worst body is ManagedProcessRuntime.status at line 202), 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: improve log reliability and correlation\u201D; \u201Cfix(gateway): preserve runtime identity compatibility\u201D; \u201Cfix(gateway): stabilize process identities\u201D; \u201Cfix(runtime): preserve Windows process handles\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c156397578adcd073f6da4a83b57d9edccada199f1cc98c71ec824ac90ecc6e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/sdk/clients.py: nanobot/sdk/clients.py changed 15 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 11 (its worst body is SessionClient.restore at line 101), 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: use summary checkpoints for all compaction triggers (#5694)\u201D; \u201Cfix(session): preserve complete transcripts\u201D; \u201Cfix(session): clear file state at deletion boundary\u201D; \u201Cfix(agent): bound per-session file 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/sdk/clients.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/sdk/clients.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8167482abe65ee03b30c93418989b681ae80c50cc5990451d52961942bbedd54"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cli/gateway.py: nanobot/cli/gateway.py changed 12 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 2 (its worst body is gateway._resolved_config_selector at line 40), 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: improve log reliability and correlation\u201D; \u201Cfix(gateway): prevent lifecycle races\u201D; \u201Cfix(gateway): preserve shared runtime identity\u201D; \u201Cfix(gateway): serialize shared runtime lifecycle\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"100fcbbca1a62e87b135d026a0f6c2135f5a8fd181fe30a9778baa0e6b416231"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/webui/workspaces.py: nanobot/webui/workspaces.py changed 11 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 8 (its worst body is WebUIWorkspaceController.scope_from_envelope at line 270), 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 remote project paths and honor picker capabilities (#5673)\u201D; \u201Cfix(webui): delete unpersisted pane sessions (#5624)\u201D; \u201Cfix(tui): preserve draft scope until first message\u201D; \u201Cfix(tui): avoid saving empty sessions\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/workspaces.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/workspaces.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"589cbce5d2df8af6f36cc952b6302ee3558e52bcd21251664e8104908073cee2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/triggers/local_types.py: nanobot/triggers/local_types.py changed 10 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 9 (its worst body is LocalTrigger.from_dict at line 71), 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 actual local trigger messages (#5228)\u201D; \u201Cfix(triggers): treat null runHistory as empty when loading triggers\u201D; \u201Cfix(triggers): coerce string lastRunAtMs when loading local triggers\u201D; \u201Cfix(triggers): rename coerce helper to _store_int\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/triggers/local_types.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/triggers/local_types.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa9b659a04985d9ebf523b4c1c9f8267874a17b22cd20ce70b8bd8133a7be8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/cron/types.py: nanobot/cron/types.py 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 4 (its worst body is CronJobState.from_store_dict at line 124), 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 per-run automation replies and simplify details\u201D; \u201Cfix(cron): skip null runHistory elements when loading jobs.json\u201D; \u201Cfix(cron): coerce string schedule/state ms fields from jobs.json\u201D; \u201Cfix(cron): also coerce null createdAtMs/updatedAtMs on load\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/cron/types.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/types.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34bd8d80e2458e870926dfb5faa1885365d93c688e0ff5ed5dbc2ed01b6a4ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/utils/document.py: nanobot/utils/document.py 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 document.extract_text at line 100), 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 universal newlines\u201D; \u201Cfix(files): decode BOM-marked text correctly\u201D; \u201Cfix(agent): read document attachments on demand (#5122)\u201D; \u201Cfix(documents): bound nested DOCX table parsing\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d31581eda48b3e781a70ef55be769be292e4db859446cb7be6ae2e105b77ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/components/ui/sheet.tsx: webui/src/components/ui/sheet.tsx changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is sheet.SheetContent at line 70), 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 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; \u201Cfix(webui): complete i18n audit\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"860360077e3749af1b6e9fc6578b8b9951bb08044df8f9d88e8b4cc6f36979c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/webui/file_preview.py: nanobot/webui/file_preview.py 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 9 (its worst body is file_preview._resolve_preview_path at line 128), 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): restore session-scoped file previews\u201D; \u201Cfix(webui): allow media directory access when restrictToWorkspace is enabled\u201D; \u201Cfix(webui): validate inferred file paths before preview (#4935)\u201D; \u201Cfix(webui): respect full access in file preview\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/file_preview.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/file_preview.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beb39e720ed2424fc1fab9f74bfc77f766469e46127bfedccb8e36d9127bb7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/webui/skills_api.py: nanobot/webui/skills_api.py 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 12 (its worst body is skills_api._install_options at line 203), 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(settings): serialize gateway configuration updates\u201D; \u201Cfix(webui): satisfy strict skill marketplace typing\u201D; \u201Cfix(webui): harden skill marketplace lifecycle\u201D; \u201Cfix(webui): harden skill management\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/webui/skills_api.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_api.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dab5cf4c3604f1cfdaaa64b5c69be3153344b2e3dbd086eee4cc2d3e42f4fe0"}},{"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), 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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: nanobot/providers/oauth_model_catalog.py: nanobot/providers/oauth_model_catalog.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 OAuthModelCatalog.get at line 116), 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): surface OAuth model catalog authorization failures\u201D; \u201Cfix(providers): harden OAuth model discovery\u201D; \u201Cfix(providers): complete OAuth model discovery\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/providers/oauth_model_catalog.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/oauth_model_catalog.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"304fe35fa39e8cc867d53b6c4da59d3b9f11bafe031aaf0266dcdb4b3756295a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/events.py: nanobot/events.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 3 (its worst body is EventSink.accepts at line 80), 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): keep the compaction outcome visible, gate only the start notice\u201D; \u201Cfix(channels): make automatic compaction notices follow send_progress\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"83691f057be8292509b7e82326eab880e3ac5194c81b637816ebee7c70d45869"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/public/sw.js: webui/public/sw.js 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 sw.manifestedAssetPaths at line 93), 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 credentials out of service worker caches\u201D; \u201Cfix(webui): restore session drag and review findings\u201D; \u201Cfix(webui): harden PWA service worker caching and registration\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/public/sw.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once 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/public/sw.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaea9efb31100fb1260b66fe22d476da692922ef3617bbd14d25e1ef3192ced"}},{"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 87), 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"da23d4604fae6593cd9f2135da7bf6c0a9dee69c3bf436d07aa6fd259498cad4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/agent/tools/session_messages.py: nanobot/agent/tools/session_messages.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 SendSessionMessageTool.enqueue at line 208), 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): observe session reply timeout task failures\u201D; \u201Cfix(agent): bound session message rate-limit state\u201D; \u201Cfix(webui): assign readable session handles\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/tools/session_messages.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/session_messages.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f388b1e6dc816a2b1ed7a4999ac3a8182cd36715afe6b27d743e7358ac39ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: nanobot/agent/plugins.py: nanobot/agent/plugins.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 14 (its worst body is plugins._plugin_logo at line 280), 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(plugins): verify content at skill read boundary\u201D; \u201Cfix(plugins): revalidate cached skill roots\u201D; \u201Cfix(plugins): harden activation boundaries\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- nanobot/agent/plugins.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/plugins.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1256370f32453ec32c232c258ae94dfb9510c6a9ed68e517684e813f817613fe"}},{"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 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 ModelFallbackNotice.ModelFallbackNotice at line 8), 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 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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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: webui/src/components/thread/thread-camera.ts: webui/src/components/thread/thread-camera.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 5 (its worst body is ThreadCameraController.moveTo at line 86), 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): bound explicit scroll navigation duration\u201D; \u201Cfix(webui): open threads at latest message (#5142)\u201D; \u201Cfix(webui): keep streaming tail visible (#5140)\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"753709d42db480fdb9b7c2d2172887d214426c289d5c64401307ec36b9636961"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/hooks/useSkills.ts: webui/src/hooks/useSkills.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 useSkills.useSkills at line 7), 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): retain skill refreshes queued during pending requests\u201D; \u201Cfix(webui): refresh skill suggestions when opening the picker\u201D; \u201Cfix(webui): prevent redundant thread and media reloads (#5164)\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/hooks/useSkills.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/useSkills.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"da08c27be72a1210b55b21313f2e6a254d0fe7867253a476356d723646400a10"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: webui/src/lib/temporary-chat.ts: webui/src/lib/temporary-chat.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 3 (its worst body is temporary-chat.deriveTemporaryChatTitle at line 5), 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 temporary chats from first message\u201D; \u201Cfix(webui): derive temporary chats from session policy\u201D; \u201Cfix(webui): complete temporary chat mode\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-06-28..2026-09-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-28 20:52:14 \u002B08:00\u0027 --until=\u00272026-09-26 20:52:14 \u002B08:00\u0027 --full-history --no-merges -- webui/src/lib/temporary-chat.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/temporary-chat.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca47bf8a20a4bc65c196b8de3f8789de87a492171e3711709cc39ee44b94df4"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 37 significant file(s) lose their only recent owner: nanobot/webui/settings_system.py, nanobot/agent/tools/mcp_oauth.py, nanobot/webui/settings_capabilities.py, tui/src/latex.ts, nanobot/webui/mcp_oauth_api.py, webui/src/components/thread/thread-motion.ts, nanobot/cli/terminal.py, nanobot/providers/conversation_state.py (\u002B29 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, 14 significant file(s) lose their only recent owner: webui/src/components/settings/models/ProviderSettings.tsx, nanobot/webui/skills_marketplace.py, nanobot/process_runtime.py, webui/src/components/settings/SettingsSidebar.tsx, tui/src/diff-viewer.ts, tui/src/session-menu.ts, nanobot/webui/skills_api.py, webui/src/components/ImageLightbox.tsx (\u002B6 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"782a0bf55d4e17194fb1f9f2fdb4cdfb45c9e790bedfb57f6f140c426c6012fd"}},{"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":"D19","level":"note","message":{"text":"Documentation: contradicts the code: The release checklist references the CONTRIBUTORS.md release-packaging contract, which no longer exists and is not shown in this document. Update to point to the current CONTRIBUTING.md or remove the outdated reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/releasing.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"353bb16e540b04f3a1fbb7d93d14a32d6a6928621e7bf8017f05f37b5d4aff59"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate method names with identical signatures and likely identical intent. \u0027prepare_messages_for_model\u0027 and \u0027prepare_for_model\u0027 appear to be redundant aliases or a copy-paste error.: Remove one of the methods (likely \u0027prepare_for_model\u0027 if \u0027prepare_messages_for_model\u0027 is the more descriptive name, or vice versa) and update all internal callers to use the single canonical name. (signatures: ContextGovernor.prepare_messages_for_model(self, config: ContextGovernanceConfig, messages: list[dict[str, Any]]): list[dict[str, Any]] | ContextGovernor.prepare_for_model(self, config: ContextGovernanceConfig, messages: list[dict[str, Any]]): list[dict[str, Any]])"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"141f1c52141d974a44d44accc957e77ca2f76f370a575ce9817d80e7b71327c1"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate method names with identical signatures. \u0027resolve_preset\u0027 and \u0027select_preset\u0027 perform the same operation of resolving/setting a model preset.: Unify to a single method name, such as \u0027select_preset\u0027 or \u0027resolve_preset\u0027, depending on whether the action is primarily a lookup or a state change. (signatures: ModelRuntimeResolver.resolve_preset(self, name: str | None): LLMRuntime | ModelRuntimeResolver.select_preset(self, name: str | None): LLMRuntime)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"53943c0cf8bae22f87ff17b948f6a8da8529f7d51ff80b0319fe6bda34516f3a"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for similar operations. \u0027set_session_model_preset\u0027 targets a specific session, while \u0027set_model_preset\u0027 appears to be global or default. The naming convention differs (\u0027set_session_model_preset\u0027 vs \u0027set_model_preset\u0027) which is confusing when both exist.: Standardize naming. For example, use \u0027set_model_preset\u0027 for global and \u0027set_session_model_preset\u0027 for session-specific, OR use \u0027set_default_model_preset\u0027 and \u0027set_session_model_preset\u0027 to clearly distinguish scope. (signatures: AgentLoop.set_session_model_preset(self, session_key: str, name: str): LLMRuntime | AgentLoop.set_model_preset(self, name: str | None, publish_update: bool): LLMRuntime)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a64a10af3e78b8f7a3f41384d91fc607b82c8f1e90e5f337d3ac012d06ea52ab"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate functionality exposed at different levels. \u0027AgentLoop\u0027 exposes \u0027pending_cron_job_ids_for_session\u0027 which likely delegates to \u0027CronTurnCoordinator.pending_job_ids_for_session\u0027. This creates a redundant API surface where the caller can access the coordinator directly or go through the loop.: Remove the delegation method from \u0027AgentLoop\u0027 if \u0027CronTurnCoordinator\u0027 is part of the public API, or remove \u0027CronTurnCoordinator\u0027 from the public API if \u0027AgentLoop\u0027 is the intended single entry point. (signatures: AgentLoop.pending_cron_job_ids_for_session(self, session_key: str): set[str] | CronTurnCoordinator.pending_job_ids_for_session(self, session_key: str): set[str])"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"33821a95d0b35a903d53ad9379b78d830eda136aa862883c57ebf5710a46baf1"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for similar query operations. \u0027AgentLoop\u0027 uses \u0027pending_local_trigger_ids_for_session\u0027 while \u0027CronTurnCoordinator\u0027 uses \u0027pending_job_ids_for_session\u0027. The term \u0027job\u0027 vs \u0027trigger\u0027 is inconsistent for similar concepts.: Standardize the terminology. If both are \u0027jobs\u0027, use \u0027pending_job_ids_for_session\u0027 for both. If they are distinct concepts, ensure the naming clearly reflects that distinction (e.g., \u0027pending_trigger_ids\u0027 vs \u0027pending_job_ids\u0027). (signatures: AgentLoop.pending_local_trigger_ids_for_session(self, session_key: str): set[str] | CronTurnCoordinator.pending_job_ids_for_session(self, session_key: str): set[str])"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"59d92dc12898f1f783dc53dba2eece5fe3540742caf0351dd900e160eeaa8b94"}},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"7bab0cc3f16fb50c85d2b69f792ffbbf707b11f7423cdc49fd5b377da31067e2"}},{"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":"21b9e0b22e275aba67c1d9384d7fd7d4671f4123701a27e3d164e80d1f79d2be"}},{"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":"67db1259c0c85be1aafdcc50b12552bcfad917a6f35f77492516fc59af244b43"}},{"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":"a312b44807e3e4174fbc92a60bab986fe3c4693d885549d94a8384f33e277b1a"}},{"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":"2014e2f8a51b7de9f36f92a34d396255e08e1846fd515326e76215159bb62462"}},{"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":"d59dd1bfb3b4b385c10d020fa1f766d551cd07882bf0162206100c43920e59a4"}},{"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":"25c8a49392a711eff3c3825f015db96b98589dc6e39582e5e3281b3fb0ee438c"}},{"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"}},{"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"}},{"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":"ee1b7014c8223fd2e70ccc7a301b3fc087c7b6a6b35ea81eaced7c6ef9413a87"}},{"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":"9ac0011649cca98b5e2345dfce05fc84d4a0c1a3656d3240ead7833a96d3b742"}},{"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":"c8e71d9518c5792ea28fee1491ee3aaba51b78ad9b80b87aad4803936d232ddf"}},{"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":"f56b241d20d061d286a4fde21bd15f98236c31a4251f5f7de36ba5b1f7ddf9ee"}},{"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":"0afb088c96b3ffe9f71fdba02292327a043fa89eaaa17ae5f006034bfccff938"}},{"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":"982175d021bf008c7f7ad585946b42c4055549430d70404ed18212de6a9a0671"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e27c9b6fa50323deab62ef978b9c87a2e6ec5b5d4e48c92899c2b50a87ace5d7"}},{"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":"0b92f1865683c9c02d0f7c7f068c1857783426f699165b32fd906d396637107f"}},{"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"}}]},{"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"}}]},{"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":"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 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 \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: index.ts \u2194 protocol.ts: \u0060tui/src/index.ts\u0060 and \u0060tui/src/protocol.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) 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 \u006048e7c4f6\u0060 feat(cli): attach terminal clients to the selected Desktop [skip ci]; \u00603a62b0b7\u0060 fix(tui): surface chat connection failures (#5543); \u0060c615aee2\u0060 feat(tui): start fresh chats in launch workspace \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tui/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff098afd2fa6ea637092bba60968c4d383e6657954229155d2bed9109293dda"}},{"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: 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 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00602ac802b2\u0060 feat(usage): add unified provider usage backend; \u0060d5e0df69\u0060 feat(plugins): integrate portable Agent Plugins; \u00605d733b1c\u0060 fix(webui): move mutations to authenticated websocket requests \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: settings_models.py \u2194 types.ts: \u0060nanobot/webui/settings_models.py\u0060 and \u0060webui/src/lib/types.ts\u0060 change together 50% of the time (6 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) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060a44f28e6\u0060 fix(webui): complete Copilot device sign-in in the browser; \u0060024fe8f6\u0060 fix(webui): surface OAuth model catalog authorization failures; \u00600274c11b\u0060 fix(webui): keep schema defaults out of model presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nanobot/webui/settings_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9451b366c25ccbcaba4b04d01b382ecf5167f86337b8b7cae22d4cbc7dc7cfec"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"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"}},{"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"}},{"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"}},{"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":47}}}],"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/App.tsx"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"16966795694c79616932af0834038d10e525b4af4c19a520e67cbb48c9c82624"}},{"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 / name \u2014 and neither does anything it renders \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":190}}}],"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 / name \u2014 and neither does anything it renders \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":158}}}],"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 / name \u2014 and neither does anything it renders \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":165}}}],"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 / name \u2014 and neither does anything it renders \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":248}}}],"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 / name \u2014 and neither does anything it renders \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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"079799e8232b68efac76a24573789a4d26bfe63566859c0771c79aab0c0f7998"}},{"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 / name \u2014 and neither does anything it renders \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/system/RuntimeSettings.tsx"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f7daa5c47206ccfff1daae4c8f3b68a6858bd59280417aa82c798278b5cfec"}},{"ruleId":"AC4","level":"error","message":{"text":"Focusable \u003Cspan\u003E isn\u0027t keyboard-operable: This \u003Cspan\u003E carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it \u2014 but its only behaviour is bound to dragstart, pointer gestures a keyboard cannot produce, and there is no key handler. The tab stop leads nowhere. Bind the same behaviour to a key handler, or provide an equivalent control elsewhere."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/ThreadComposer.tsx"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20aaf29e162803c5562f6a48d095959b87ff9549baaf334ea0c0154cf63bc91"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 134 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"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: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"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 17178 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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (20 clone groups): 20 duplicated blocks under webui/src/components/settings/ have copies in at least two of the sibling directories capabilities, channels, models, overview, shared, system \u2014 8 of them are reported below, and 12 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 20 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 20 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 20 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":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d148a0cecbf983907980f166a98829c365960047e4a2603db276c55f5cd318"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (12 clone groups): 12 duplicated blocks under the repository root have copies in at least two of the sibling directories nanobot, tui, webui \u2014 7 of them are reported below, and 5 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":"nanobot/channels/linear/webui/LinearPanel.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b654e38da6bdfa434ae0855a47c1b79eeb1b0ae5ce5ac16f3220a7079fe5b55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (12 clone groups): 12 duplicated blocks under webui/src/components/ have copies in at least two of the sibling directories settings, thread, ui \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":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"af62877327424aa499b266ca1fe79a3b9844b57ca8b9c0de576105d2d6b3a9c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (10 clone groups): 10 duplicated blocks under webui/src/ have copies in at least two of the sibling directories channel-plugins, components, hooks, lib, workers \u2014 7 of them are reported below, and 3 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 10 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 10 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 10 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":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5c99a38446b05f80e7c17a928e73d3d5e3d7a4b011887a9ece907d227494f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (151 lines \u00D7 2 locations): webui/src/components/settings/SettingsPage.tsx:89 \u00B7 webui/src/components/settings/useSettingsController.ts:494 \u2014 the 2 copies are spread across 2 files, 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/settings/SettingsPage.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95e0ace7e3e8fd4d9e888fd3fd92f431de263198f6530d85e88eb562c662b0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2 locations): webui/src/components/CliAppMentionText.tsx:179 \u00B7 webui/src/components/CliAppMentionText.tsx:250 \u2014 both copies are in the same file, so extract the block 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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c935760b8c32ea6c32a159f3cc5525401259a0eaa6666fb452330b16b5e9d00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (57 matched lines \u00D7 2 locations): webui/src/components/settings/capabilities/ImageGenerationSettings.tsx:63 \u00B7 webui/src/components/settings/capabilities/TranscriptionSettings.tsx:68 \u2014 the two spans are one implementation copied and then locally edited \u2014 414 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":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74f0cc35b6bed177e6b5e7751da9e2df3af74b02296b1da2f7d673639c81164"}},{"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:1002 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1105 \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":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f05556f3228af92f3daa78ea267ff7f051075c8e8bdf1f57dcff2e8bca99d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): tui/src/mention-menu.ts:6 \u00B7 tui/src/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/mention-menu.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8372b2fa398f6962cbeba3716722b13f63a8d1d2b00bb5e5c590763a560f3d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1280 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1360 \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":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2a3e42faa30f04b142e8096ade4b24b3b6fd922311bbbbc1ca17c2e4b348c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): nanobot/channels/linear/webui/LinearPanel.tsx:203 \u00B7 webui/src/components/settings/channels/ChannelSetupPanel.tsx:261 \u2014 the two spans are one implementation copied and then locally edited \u2014 251 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/LinearPanel.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a131a5295a86caf75e4bacd8eb28accd00fce49f6cc096c8e7a0e2d932dadbb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:3042 \u00B7 webui/src/components/thread/ThreadComposer.tsx:3195 \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/thread/ThreadComposer.tsx"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"652f82156a53afd16f277ea95b351a0525ab671d5ec510c517a64962b9a73f99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1055 \u00B7 webui/src/components/ChatList.tsx:1498 \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":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b01b0a4ca6b00c5c79b33030efe16bcbc005e5b1dbdb342b653bfd4f88fd6ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): webui/src/components/ChatList.tsx:210 \u00B7 webui/src/components/Sidebar.tsx:45 \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":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"09222786e22868bf19e97bb290cc727b13e12a0dadfdd94de2e3bfb1510e866e"}},{"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:346 \u00B7 webui/src/components/thread/activity/trace-activity-model.ts:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 168 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":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ec7456ba9485b3a45c4ab0d820427120aec79d337089ca7c8247feae7db012"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): webui/src/App.tsx:1893 \u00B7 webui/src/App.tsx:1960 \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":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb111b8fde5ff22d4a90ba28ae59b8d219fb48eea793f6a0d826587d9b5c2e31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): webui/src/components/settings/overview/OverviewSettings.tsx:435 \u00B7 webui/src/components/settings/shared/ModelControls.tsx:593 \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/overview/OverviewSettings.tsx"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b6bc3fe0f77d552abfde58357481ccab8016b64fa639b2a66bd96d19bc2c54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): nanobot/channels/weixin/webui/WeixinPanel.tsx:265 \u00B7 webui/src/components/settings/channels/ChannelSetupPanel.tsx:543 \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/WeixinPanel.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af2de5e992dc2135dbb74b28c1e6bc0d42fc4b5c57576c783abe9ea51f0e268"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:1303 \u00B7 webui/src/components/ChatList.tsx:1795 \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":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2a1dd7bcfdd205e39574a22c7b78e5ebf1c29bfc77eeb66b75cdeb942f0f6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): webui/src/components/settings/system/AppsSettings.tsx:1358 \u00B7 webui/src/components/thread/ThreadComposer.tsx:3152 \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":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7225b87ebcb78a74713c63a1e9d628d819825dcbcd4963fcf9c6bc0004ba28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): webui/src/components/thread/AgentActivityCluster.tsx:1244 \u00B7 webui/src/components/thread/AgentActivityCluster.tsx:1322 \u2014 both copies are in the same file, so extract the block 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":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac79c107d0ef932c2b6ade40eceeb63d8d92792c9d9a0d76242f5056f75eddb2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): webui/src/components/settings/channels/ChannelIdentity.tsx:172 \u00B7 webui/src/components/settings/system/AppsSettings.tsx:1493 \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":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8601a431e7ec01ba3b7252694fd6a0ca8fccf71e4219075990395491af77089f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:1413 \u00B7 webui/src/components/thread/ThreadComposer.tsx:1434 \u2014 both copies are in the same file, so extract the block 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":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"752603238547476a075a1ab9ce47b74708af6c0228b1ef4bbab6c9e24444969a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:2136 \u00B7 webui/src/components/thread/ThreadComposer.tsx:2160 \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":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfbdd9aac85a60f18ba43a376871ee298cfa6da3618f160151bf2642320687e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): webui/src/components/MessageBubble.tsx:611 \u00B7 webui/src/components/MessageBubble.tsx:644 \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":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8c53cd363296cf23fda4cddb9c2522057538a8775e8a125e8b92112edacf76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): webui/src/components/ui/dropdown-menu.tsx:30 \u00B7 webui/src/components/ui/popover.tsx:22 \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/ui/dropdown-menu.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9e18516667e96e58ae3cea95fc71ca3f4514bce139ae4f3020bf6888574415"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): webui/src/components/workbench/PaneWorkbench.tsx:467 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/workbench/PaneWorkbench.tsx"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b72366d91f6dedcbfb3dfbe302bdbc1c6661eb86eb2ab35d04a13acfea73899"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:950 \u00B7 webui/src/components/ChatList.tsx:1429 \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":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"033b4e4ab5e0b66516e17af0174af77b59bbffa28d819ac8bd0a6cb2da2bdf57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): webui/src/components/settings/models/ProviderSettings.tsx:577 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:594 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:611 \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/settings/models/ProviderSettings.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c75ad2b3c060455076f9d55ead9ba3b29d47867236f6ea57ff9bef2c792c79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): webui/src/lib/api.ts:503 \u00B7 webui/src/lib/api.ts:715 \u00B7 webui/src/lib/api.ts:739 \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":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce357ccb89d8d5292fa92c236a98245b369f34fe6e1810ccda0a411016616b3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): tui/src/protocol.ts:1346 \u00B7 webui/src/lib/nanobot-client.ts:880 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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/protocol.ts"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"65569316c1a6a7ca79ec7afc9837a3967ed1043939a9030a4736ffed98204d18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): webui/src/components/CliAppMentionText.tsx:75 \u00B7 webui/src/components/UserMessageText.tsx:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 145 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/CliAppMentionText.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6269db8476847c13535f8b032adfa452d7ff5276f6e63c284fab131867cbee58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): webui/src/components/settings/capabilities/WebSettings.tsx:198 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:990 \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":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"beec26af9e15f22fbcc7c320d7c205eea03907d144b7ac4d8f5d6fc9ac90d2ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): webui/src/components/thread/ThreadComposer.tsx:3013 \u00B7 webui/src/components/thread/ThreadComposer.tsx:3179 \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":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dbed4f05c51ddcc24e51df4f7b2055bb9db2945661d9f6cd9954e0c608328f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/ChatList.tsx:644 \u00B7 webui/src/components/ChatList.tsx:659 \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":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f18d069a4698865e4d18fa7d14c174cc8acba2e27a3c737b66c745568e10fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/settings/models/ProviderSettings.tsx:519 \u00B7 webui/src/components/settings/models/ProviderSettings.tsx:555 \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":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca66b6c1267aa07fd881414b4bb424b4641fb383ab7afd1d06733da82a39019"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/thread/ThreadShell.tsx:1740 \u00B7 webui/src/components/thread/ThreadShell.tsx:1794 \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/ThreadShell.tsx"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d042ef4ebba33774f684a8256b53d7c7dd0910e79ce2e5fb84f3bd459a1285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): webui/src/components/workbench/PaneWorkbench.tsx:451 \u00B7 webui/src/components/workbench/PaneWorkbench.tsx:558 \u2014 both copies are in the same file, so extract the block 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":451}}}],"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":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/CodeBlock.tsx:53 imports react-syntax-highlighter/dist/esm/prism-async-light, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a825c4a709dc11ed31169f739792dc93414b9f879fd4c9543a2439370f0f99f0"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/CodeBlock.tsx:54 imports react-syntax-highlighter/dist/esm/styles/prism/one-dark, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5aa63338faaaccfe4ec9a7f4c8d19a3bc13345d0aa57b847a4e8da8b84a38f"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/CodeBlock.tsx:55 imports react-syntax-highlighter/dist/esm/styles/prism/one-light, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/CodeBlock.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9b196d997b67673abe4d190abcabc1e64ef427a8679ffcdbfb21f1cca85cc1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/ViewportCodeRows.tsx:3 imports react-syntax-highlighter/dist/esm/create-element, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/ViewportCodeRows.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bae67f67bedbf518aa0e04a60771a83edbed0ece6b3904be54871c7c77298d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/thread/activity/DiffSyntaxHighlight.tsx:39 imports react-syntax-highlighter/dist/esm/prism-async-light, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/DiffSyntaxHighlight.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"036226e265512f57858982c7a750490858d4553ec7b33ea03f3c1b6b2588d2f0"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/thread/activity/DiffSyntaxHighlight.tsx:40 imports react-syntax-highlighter/dist/esm/create-element, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/DiffSyntaxHighlight.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02d04b90b545257687f0f8bec987bb165724849ae2ee0e7f15e157a0c358a56"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/thread/activity/DiffSyntaxHighlight.tsx:41 imports react-syntax-highlighter/dist/esm/styles/prism/one-dark, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/DiffSyntaxHighlight.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2ccdf730ad602d540418dff5673a983d77a2fc27b4f5eebf0e2e991f8b509e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: webui/src/components/thread/activity/DiffSyntaxHighlight.tsx:42 imports react-syntax-highlighter/dist/esm/styles/prism/one-light, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/thread/activity/DiffSyntaxHighlight.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"793d3c3a09bacb1fb4ee88b1b8c1f3d72bd84330a87f0a89e1ec24dce57ffbe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadComposer (cyclomatic 128, cognitive 101): ThreadComposer has cyclomatic complexity 128 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 sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the 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":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19d496d8e005fa237ede9258c23322d2f9b833c80abde936bf5c64b6843eb09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 127, cognitive 172): (anonymous) has cyclomatic complexity 127 and cognitive complexity 172; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"786fa2680a83902378421df1677504b62f29fd631396731dfce32c4a43964d98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accept (cyclomatic 104, cognitive 146): accept has cyclomatic complexity 104 and cognitive complexity 146; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse 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.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37ee8af174f998a05f6967fc6159bfc72003cc65c39e959c069b59f84e9acf2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ThreadShell (cyclomatic 93, cognitive 82): ThreadShell has cyclomatic complexity 93 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":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35fb4bae2825028cb98018093187c37ccb9f38b5d411caad065d67d530e2150"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handle (cyclomatic 84, cognitive 125): handle has cyclomatic complexity 84 and cognitive complexity 125; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the 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":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b52191b8a0d8df639909dd9f34b6d2c61f69683ac8e7e7f40bd0c60ffeb950d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeInboundEvent (cyclomatic 81, cognitive 76): decodeInboundEvent has cyclomatic complexity 81 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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/protocol.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4739428273e22cef499a610072804617c149c4af4a7a46f5f8324c5195edd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelIdPicker (cyclomatic 80, cognitive 64): ModelIdPicker has cyclomatic complexity 80 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":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e416eed163088ac3cbce1c65b6b885561f6d566f004325489449feb78438f45b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectThreadEvent (cyclomatic 78, cognitive 138): projectThreadEvent has cyclomatic complexity 78 and cognitive complexity 138; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the 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":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8961205fdf9cfe01299f90365d72b4819dd5a52f547b046bb4e291c2a2ddc91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Shell (cyclomatic 67, cognitive 61): Shell has cyclomatic complexity 67 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the 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":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b107a6ab32e92fc085ad00a2147018e507af4178a4321dd291c07496757096"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProviderRow (cyclomatic 67, cognitive 52): renderProviderRow has cyclomatic complexity 67 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/models/ProviderSettings.tsx"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d11dc2d74f743ac7b2715e82a53767c41a30b615336c5e07d9ce13193fb7939"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 64, cognitive 84): handleMessage has cyclomatic complexity 64 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the 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":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ba3e3471eca76780103d92eca0835cd1b10a2fb05cdf5a482edf4c8ff64a3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LinearPanel (cyclomatic 60, cognitive 44): LinearPanel has cyclomatic complexity 60 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 sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse 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/LinearPanel.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1434aa1fb66068c35026483aa211fe310b7c8d8ef3e339fe26fe3928ba4247"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpAppsCatalogRow (cyclomatic 57, cognitive 46): McpAppsCatalogRow has cyclomatic complexity 57 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/AppsSettings.tsx"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17293243282237a5b8b6858e69faa2fbc524b836298305522cd9164ae1535c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RuntimeSettings (cyclomatic 56, cognitive 54): RuntimeSettings has cyclomatic complexity 56 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the 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":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a5c1832945f229fa61a428f2835d94880be370a758032fd95d288311d94dbe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 54, cognitive 56): (anonymous) has cyclomatic complexity 54 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the 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":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d29d60234ab4b266b295fcf3affc8b97dc4c3f8991a3cd4633e4d6bd1761c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelSetupSurface (cyclomatic 52, cognitive 43): ChannelSetupSurface 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/channels/ChannelSetupPanel.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"48903d9a64fd9f316f963d023a0c81a17bc289a990421fb0268154b187bf52e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AutomationDetailPanel (cyclomatic 50, cognitive 45): AutomationDetailPanel has cyclomatic complexity 50 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/settings/system/AutomationsSettings.tsx"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b6c454af85b11379eb99fc3ac7588385c369e52e45e4db83a570d96fe8b00f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseThreadProjectionEvent (cyclomatic 49, cognitive 53): parseThreadProjectionEvent has cyclomatic complexity 49 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the 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":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aaa623703a5f3a1d8e7ee00bdc48e6bb3d1cca17bc300a6618b4d2e4afa823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelQrConnectFlow (cyclomatic 45, cognitive 39): ChannelQrConnectFlow has cyclomatic complexity 45 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the 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/ChannelQrConnectFlow.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e226715030a80e3e822a4848d154bac2c1c1afff5a856114adcf89481a73218c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkspaceProjectPicker (cyclomatic 44, cognitive 45): WorkspaceProjectPicker has cyclomatic complexity 44 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/WorkspaceControls.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70b543d2aa81b5f6d64e01499d9fbb995093ac4e0f658d82a1bb4231ae386ef"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 45 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: webui/src/components/thread/ThreadComposer.tsx (3225), webui/src/App.tsx (2971), tui/src/app.ts (2923), webui/src/components/thread/ThreadShell.tsx (1884), webui/src/components/ChatList.tsx (1877), webui/src/lib/types.ts (1540) (\u002B39 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"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/linear/webui/LinearPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a2b6769707ed6ae12e7cd942e5ff8d9a224da5e7ece8f3a818316188e7fc89"}},{"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":"nanobot/channels/weixin/webui/WeixinConnectFlow.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc0aa6b57cf983d4c4f5b69e53065850e1304327d29a9d0fcfebd93052b8439"}},{"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":"nanobot/channels/linear/webui/LinearConnectFlow.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90a6622aaab3c0eb67087c9d8625bda0360d424aae799327d9d67bdab82d003"}},{"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/FeishuAssistantsPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a76cd1e839aa36db299ec54184f6045745605ece9c19c858935fd0c3605baf"}},{"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":"tui/scripts/build.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"557cf919c80c58af9e7d27bee475e8381f3324c186608b20979c638991f1dbd9"}},{"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/linear/webui/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"499a82817531c8ad1007d3f9ce4cc9dd96539bf7d2099a786ee0b33ca739a950"}},{"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":"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":"nanobot/channels/weixin/webui/presentation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c772d1e1367fa7f17bf1d789307dcd9ba952823032ed29a19350197318caa1"}},{"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/linear/webui/LinearHelpContent.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e514c3ac1b8a468571c8c6312341ce245ed0f68d593d360f35b9c4bcd86f055"}},{"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/websocket/webui/WebSocketIcon.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f351e1969b225590112406d1e593a95858327eb1607d940947bb7a89dfb74e72"}},{"ruleId":"R5","level":"warning","message":{"text":"Dependency Freshness: 36 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/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6301f00fc6773a3742cdc2101f2581077b94f6c4588115b1b67031524a3af6d7"}},{"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/FeishuAssistantsPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ce053e3b9d90832e379a96fd2708534b86d9a8b75858b9282f3f21ebeedd90"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): webui/src/components/MessageBubble.tsx \u2192 webui/src/components/thread/activity/ReasoningRow.tsx \u2192 webui/src/components/thread/activity/ActivityStep.tsx \u2192 webui/src/components/MessageBubble.tsx"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui/src/components/MessageBubble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c781bcea1836a2893cadb3b097e24512cb7aea0dbc295f04084c4243f14b53"}}],"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":"CWE-116","shortDescription":{"text":"CWE-116"},"helpUri":"https://cwe.mitre.org/data/definitions/116.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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"CWE-327","shortDescription":{"text":"CWE-327"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":51,"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."]}]}