{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.handleClientMessage (cyclomatic 715): BridgeWebSocketServer.handleClientMessage has cyclomatic complexity 715 (threshold 15). Of this number, 562 points are the body\u0027s own statements and 153 belong to 49 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3614}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5af660cb09a07239aaed3df8ddd2446ebc25a7acf36fa6b5cb7cc187fa256c"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.parseClientMessage (cyclomatic 578): parser.parseClientMessage has cyclomatic complexity 578 (threshold 15). To reduce it, separate the cases: extract each independent 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 (parser.parseClientMessage::isPromptHistoryEntry) 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":"packages/bridge/src/parser.ts"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a09fe27a67494217b06631a6036a4465022c5f3c2508fa8ca0c820b860b313f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatInputWithOverlays.build (cyclomatic 185): ChatInputWithOverlays.build has cyclomatic complexity 185 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d5237d6d70ca5b7a15772b39d45b749c3dd9166748fb3b8ef81267da9653eb"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService.connect (cyclomatic 142): BridgeService.connect has cyclomatic complexity 142 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"581124023a2ecd709fceb7c19910f709aa0fefc7fc731e29da4c13897ef400cf"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._applyUpdate (cyclomatic 116): ChatSessionCubit._applyUpdate has cyclomatic complexity 116 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"93256896242f6017fe08667eb0151d11d30556d6a1e3774e2d74741c2026ae29"}},{"ruleId":"D1","level":"warning","message":{"text":"_CodexChatBody.build (cyclomatic 109): _CodexChatBody.build has cyclomatic complexity 109 (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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad32d0a1baf533ca09de34cbe45a12e4f6871522df0188689aa81a7a2fa2658e"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeContentState._buildContent (cyclomatic 101): HomeContentState._buildContent has cyclomatic complexity 101 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ee2952145c8c09ffda3e554dc65b6acd6ca3e57fdb51c2e3c4fc848de9babe"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerMessage.fromJson (cyclomatic 101): ServerMessage.fromJson has cyclomatic complexity 101 (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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"d267fc522810b671e059fbaaf56877628f13f637b19658db7236496c2227eb7a"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerMessageWidget.build (cyclomatic 94): ServerMessageWidget.build has cyclomatic complexity 94 (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":"apps/mobile/lib/widgets/message_bubble.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b10f661cd9bc0d75c2567777c90a2157f463338db113dda172ea0cbec03c348"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenBody.build (cyclomatic 87): _ChatScreenBody.build has cyclomatic complexity 87 (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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ae7fa38454d219e19e553dff1d64c6d27c61137635145e70ffde0f42a1b19c"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.create::processMessage (cyclomatic 84): SessionManager.create::processMessage has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent 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 (SessionManager.create) 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":"packages/bridge/src/session.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ec27c0ec35732ffc842f97d224473ce01c055b749d361e1df83d837ae9037e"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.parseCodexSessionJsonl (cyclomatic 81): sessions-index.parseCodexSessionJsonl has cyclomatic complexity 81 (threshold 15). Of this number, 79 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ff1ae6352231c4cf3870e74e51cf1aaea860beb70a99296c8e436df22bdd3c"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.bootstrap (cyclomatic 72): CodexProcess.bootstrap has cyclomatic complexity 72 (threshold 15). Of this number, 71 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb298fc8891a9eaefc5fb2f008bd7978bd7ab529907f30ee07c6e54245082b3"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.parseFromChunks (cyclomatic 69): sessions-index.parseFromChunks has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d3b460952b35f3568a37782b7a1c0947d3ae5b1238534a62a75f3b84e90b96"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.getCodexSessionHistory (cyclomatic 69): sessions-index.getCodexSessionHistory has cyclomatic complexity 69 (threshold 15). Of this number, 67 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4354}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded573ea5517d99437326da1bb14dab637b9e4467d0adc7a5ac057fae0b5ab8f"}},{"ruleId":"D1","level":"warning","message":{"text":"_OptionsSection.build (cyclomatic 63): _OptionsSection.build has cyclomatic complexity 63 (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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d854d61f26d4d2b56be8ce0509f77eb1a62e71e743db22fb110e51179b6cef3"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.getAllRecentSessions (cyclomatic 61): sessions-index.getAllRecentSessions has cyclomatic complexity 61 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 29 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"776420dfaba87661f660cca91605f903c6f58cbe39df797da2757f8fd9a41c9b"}},{"ruleId":"D1","level":"warning","message":{"text":"SdkProcess.processMessages (cyclomatic 60): SdkProcess.processMessages has cyclomatic complexity 60 (threshold 15). Of this number, 57 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f9be4bb634484ebb59a34c6e32b15b1fbeda4da6288c923c0c47dda7a18845"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceShellScreenState.build (cyclomatic 56): WorkspaceShellScreenState.build has cyclomatic complexity 56 (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":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"377b72f8932928d73ccbf7d4de135fe8ed33dd84128802d5d1a8226a90865cce"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.processItemCompleted (cyclomatic 56): CodexProcess.processItemCompleted 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3734}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14bf95875e0b748acefe88101b00b174d383a56b55472c58988e4aaad1c6f50"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.handleNotification (cyclomatic 54): CodexProcess.handleNotification has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0a4e90fffd2203c85b40b73b630e58b64f1a1cbb97dfc52cfc561fdd3bdeff"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.codexThreadToSessionHistory (cyclomatic 51): sessions-index.codexThreadToSessionHistory has cyclomatic complexity 51 (threshold 15). Of this number, 46 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cbb5c78794518c70de27b691bc29ae1c6db1ebaeef004666840b9679bdcf5c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHandler._handleHistory (cyclomatic 49): ChatMessageHandler._handleHistory 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d377bdd0d38974a4594095633b65b45979e83981b11b720e9cd66358087056"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.buildSessionCreatedMessage (cyclomatic 46): BridgeWebSocketServer.buildSessionCreatedMessage has cyclomatic complexity 46 (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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"20332b4065af29e871da1548bb727358e83f56e7cc9e787ba6209f96b16ae494"}},{"ruleId":"D1","level":"warning","message":{"text":"FilePeekContentState.build (cyclomatic 45): FilePeekContentState.build has cyclomatic complexity 45 (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":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f4cc6dabdf04ce771d505d7846c05dab491fbb90a541ee67b70da9fc764a38"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._startNewSession (cyclomatic 45): _SessionListScreenState._startNewSession has cyclomatic complexity 45 (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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79c8c2cc91ac2f78290a0c0ce641f2694f60f83d9e178d63d675436d475faf3"}},{"ruleId":"D1","level":"warning","message":{"text":"_RunningSessionCardState.build (cyclomatic 45): _RunningSessionCardState.build has cyclomatic complexity 45 (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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4116d83af143f0b93ae79be85391b22816b8afcb5e3770491e4eb8b0469c7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"sdk-process.convertSdkMessage (cyclomatic 45): sdk-process.convertSdkMessage has cyclomatic complexity 45 (threshold 15). Of this number, 40 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e586d86df8feb6f3bd2f62989ee4ea435bd87b6ed7dce22a89246d4a4057d2"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.getSessionHistory (cyclomatic 45): sessions-index.getSessionHistory 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"47151154072dd2021dd676c053844eb4f5bc1d58cc052de77f663df49e2523c1"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._resumeSessionWithParams (cyclomatic 44): _SessionListScreenState._resumeSessionWithParams has cyclomatic complexity 44 (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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"915c3ee1e9ee8a45817129dbe519440c0f7034e4b8bbe9400f3e26458f98e236"}},{"ruleId":"D1","level":"warning","message":{"text":"MockBridgeService.send (cyclomatic 41): MockBridgeService.send has cyclomatic complexity 41 (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":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d1763c619d02d3e678a41f16cc6157b57c31d14cd4d8c3171bf7757f38c591"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState.initState (cyclomatic 40): _SessionListScreenState.initState 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6170ef05a030fb2964edf38f768526830468439bf62939fb990780d8446bbce3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHandler._handleSystem (cyclomatic 40): ChatMessageHandler._handleSystem 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"831784bca5a85b31eb7e598078b800a6452cca2ec311f260dc6987e271c6db6e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.startServer (cyclomatic 40): index.startServer has cyclomatic complexity 40 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 23 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"867391746df63f8ff26c13fd82b05662b42ed08f6d63ceec82a1a02d904a0d2f"}},{"ruleId":"D1","level":"warning","message":{"text":"performance-mode.performanceMessage (cyclomatic 39): performance-mode.performanceMessage has cyclomatic complexity 39 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 14 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":"packages/bridge/src/performance-mode.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dc874f0aeba74e3f6e3920a5f10eb62ca832e41bd363027508a509af8a31fb"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.maybeSendPushNotification (cyclomatic 39): BridgeWebSocketServer.maybeSendPushNotification has cyclomatic complexity 39 (threshold 15). Of this number, 38 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10809}}}],"partialFingerprints":{"codehealthFindingId/v1":"d188029cbc0cecb37c69f17bc12e7af84124685b55a3376e8ad32b7dacfba935"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHandler.handle (cyclomatic 38): ChatMessageHandler.handle 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"694b533741dc1a2b914bd6f91c383f0d0907c60499d3f5be881a17269f8783e2"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._connectWithParams (cyclomatic 36): _SessionListScreenState._connectWithParams 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b921edab66c7c197b72941238d0dc9e9ffa2f2c91b391039a21e318e0b8c456"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit.sendMessage (cyclomatic 35): ChatSessionCubit.sendMessage 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83ce74d41c1868192a118fba10743c5bea4a1fe8defc7d86958722b8bed95a6"}},{"ruleId":"D1","level":"warning","message":{"text":"_MachineEditSheetState._save (cyclomatic 35): _MachineEditSheetState._save 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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"969fe377f05452dc90979e8b0e5536f1203d8560f9e9611215f5e1acf7f830cc"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewSessionSheetContentState._buildParams (cyclomatic 34): _NewSessionSheetContentState._buildParams has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc16d0b03600c92d2ef21dba313a81d679d1e16152031342e01d40b655a3c0f3"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.runInputLoop (cyclomatic 34): CodexProcess.runInputLoop has cyclomatic complexity 34 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 18 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9166cebdc6530e7c38ca9104e07db98e6529f58eb9ab4f354138238a7ab1f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"_GitScreenBodyState.build (cyclomatic 33): _GitScreenBodyState.build has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45b6bd8279f8c6abadd4e1cff377317b9cd2809b8bb4efe0a66d03983e49f45"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionResumeCoordinator.resume (cyclomatic 33): SessionResumeCoordinator.resume has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"905de201c3563f70e3e16abf22918148683e15210ef65dc46da3451e33943edc"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineManagerService.checkHealth (cyclomatic 33): MachineManagerService.checkHealth 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"366cfabc02dcae2cf6e43daa7cec7f0b35dc3215d6cb8b9e7c07099464d32563"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._onMessage (cyclomatic 32): ChatSessionCubit._onMessage 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"601ae75a53d9e7758e0e8d8519304951fd168f60ddee84340e82ec16da8df23f"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.rewindInPlace (cyclomatic 32): SessionManager.rewindInPlace has cyclomatic complexity 32 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 7 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":"packages/bridge/src/session.ts"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"d451f4f6ad309e1ab45c05b4bf274357c68731091ed8777a7c740b801eb6a7af"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatMessageListState.build (cyclomatic 30): _ChatMessageListState.build 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":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f9bb14492074c7713b2ee5542bfb08503b397b6156d2721289d8e4d71684ae"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewSessionSheetContentState._allProjectChoices (cyclomatic 29): _NewSessionSheetContentState._allProjectChoices 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"276e285f8ab2e3b2e62a88844464e7febd3ff6e605847269cf5fa2a6ffe7dcfb"}},{"ruleId":"D1","level":"warning","message":{"text":"sdk-process.buildAskUserAnswers (cyclomatic 29): sdk-process.buildAskUserAnswers has cyclomatic complexity 29 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66a0d4e6590f8922115216225f1486a5f439d3254b30476b69c469f54e9dd78"}},{"ruleId":"D1","level":"warning","message":{"text":"_MachineEditSheetState.build (cyclomatic 28): _MachineEditSheetState.build 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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8713d4e3b1fa399d8078bf87c05ec1869daa9f89d1d9a38c65c760a3b82e82"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.hydrateClaudeIndexedEntry (cyclomatic 28): sessions-index.hydrateClaudeIndexedEntry has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"029843260e6d29d7354a5302cd09f614cdd55499d653f4754cda004be5e0d2f3"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.readThread (cyclomatic 28): CodexProcess.readThread has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36659c17d2e35ebeb1bb7ac4d90fbf15c328548bf2c86e15a0f7f322e689c7b"}},{"ruleId":"D1","level":"warning","message":{"text":"project-bootstrap.bootstrapProject (cyclomatic 28): project-bootstrap.bootstrapProject has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 14 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-bootstrap.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"45839949f61d43f456a051f6db96ffc58e47b5c1f19120968fb98901201e200b"}},{"ruleId":"D1","level":"warning","message":{"text":"SdkProcess.startSdkQuery (cyclomatic 27): SdkProcess.startSdkQuery has cyclomatic complexity 27 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 6 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b8c385960a014e5baf2f93df6b5daf52a1a44dfaed0c8dfc42709a44b38ca8"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.normalizeCodexMcpResult (cyclomatic 27): sessions-index.normalizeCodexMcpResult 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3366}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6058f60cae9ea8f05bf30d42a84266128784fc0db50ce6bcd7de839f8b50a"}},{"ruleId":"D1","level":"warning","message":{"text":"directory-listing.listAllowedDirectories (cyclomatic 27): directory-listing.listAllowedDirectories 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":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd547115e9298ff145f83c44348b91b9020540e1bc47a4bb7c38abe45440d3e0"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._routeProjectRequestError (cyclomatic 26): BridgeService._routeProjectRequestError has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a3833456bc88c2196813d4b91c3c8dad4348c6115a637bb751f25e1d02f4a4"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._flushMessageQueueAsync (cyclomatic 26): BridgeService._flushMessageQueueAsync 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec281be8c2eca66fa30bbe9c2de7ff251d33e97c5af7261ef026ca8233129f6"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService.resolveSessionLink (cyclomatic 26): BridgeService.resolveSessionLink 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3027}}}],"partialFingerprints":{"codehealthFindingId/v1":"b518423337f9374f82abbc229183330d776704e7484fb10fcd1010041e0314aa"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.applyCodexCanonicalHistoryBaseline (cyclomatic 26): BridgeWebSocketServer.applyCodexCanonicalHistoryBaseline has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"58980d0f64827b43860d826d5b6ef5d86893eb978b1f264a57afef04b8c391ea"}},{"ruleId":"D1","level":"warning","message":{"text":"setup-systemd.setupSystemd (cyclomatic 26): setup-systemd.setupSystemd has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c885f47d3044c5aeb8f5bb0894dd9f8a892be4dffed7f5af4f29c53eb2d67d"}},{"ruleId":"D1","level":"warning","message":{"text":"codex-recovery.rateLimitFailure::visit (cyclomatic 25): codex-recovery.rateLimitFailure::visit 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":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8153ec4f8e525af15c3517e9db67accc732587196dc969fad2ff7c4b7f1bd7a"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.extractMissingFieldsStreaming (cyclomatic 25): sessions-index.extractMissingFieldsStreaming has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 1007, 995, 1042, \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb75a70a5103685729409fef94dbc7a0248bd96b5ebfa3a9ce73e3cc4fafe9a"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess._fetchCompletionEntitiesInternal (cyclomatic 25): CodexProcess._fetchCompletionEntitiesInternal has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 2572, a function literal at line 2622, a function literal at line 2605, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ea494f6300389b5d260d58a437a2019a56034e666ac04a3b27042a886eed95"}},{"ruleId":"D1","level":"warning","message":{"text":"setup-launchd.setupLaunchd (cyclomatic 25): setup-launchd.setupLaunchd 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":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5618b70bd92d4ed27d5102ebef649176b5bc3c04d9a2e98ddd16e013605d9cb2"}},{"ruleId":"D1","level":"warning","message":{"text":"FileBrowserCubit._onMessage (cyclomatic 24): FileBrowserCubit._onMessage 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":"apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbc8a8756a0f2d55f7e877da020882460d95072718e8c3a8fb07e330114eafc"}},{"ruleId":"D1","level":"warning","message":{"text":"index.parseRelayBody (cyclomatic 24): index.parseRelayBody 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":"functions/src/index.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ee1f7b26304a17d4064a1d83bb3868cfbc7581947948dce5141930529e743e"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.claudeAbandonedBranchUuids (cyclomatic 24): sessions-index.claudeAbandonedBranchUuids 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3635}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6227fe7d1c83f17c03e78fe2973e65fec00655b03157e92cb1b6de819876eb"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.create (cyclomatic 24): SessionManager.create has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (SessionManager.create::processMessage) 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":"packages/bridge/src/session.ts"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a040f8740636f5ae5fcbe70a980a87850bf4674d0a38547c7593916124ffb1"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.sendCompletionPush (cyclomatic 24): BridgeWebSocketServer.sendCompletionPush has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10960}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cd14ec36c618140777e90c85ced672da5ace0eb8c067470c9287744b2b3bbc"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatMessageListState._entryKeyBase (cyclomatic 23): _ChatMessageListState._entryKeyBase has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b66428de94c0f73a83900c18208800271e3a135f7d2b42182995d2403ea0dc"}},{"ruleId":"D1","level":"warning","message":{"text":"_FileBrowserViewState.build (cyclomatic 23): _FileBrowserViewState.build 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":"apps/mobile/lib/features/file_browser/file_browser_view.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cedf2c8bdc79717d5202511973e631bec1acc6de970ebda76ace039959d30c"}},{"ruleId":"D1","level":"warning","message":{"text":"PermissionPresentation.from (cyclomatic 23): PermissionPresentation.from 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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1be62751b4e9c0a13c99f6b733bfbdfbb68c682a1107c07a0d08eb3a5fd4a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionUrlParser.parse (cyclomatic 23): ConnectionUrlParser.parse 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":"apps/mobile/lib/services/connection_url_parser.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"020d5bdb2a9460990807922671697b5510b9d5aa8661caacc9673861936d4be0"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineManagerService.updateMachine (cyclomatic 23): MachineManagerService.updateMachine 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd2ddcd6205ac8e818fb166d9652158f079aa386330ca0a5acf01ec08e6b647"}},{"ruleId":"D1","level":"warning","message":{"text":"_InputTextFieldState._handleKeyEvent (cyclomatic 23): _InputTextFieldState._handleKeyEvent 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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d093fb83241b012fc451d81fadac08490478ccd42e28204b59529f4e1173f7"}},{"ruleId":"D1","level":"warning","message":{"text":"markdown-images.scanDestination (cyclomatic 23): markdown-images.scanDestination 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":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5922cb228fc60eee69827a77ecf2a5ebde198b942af8ce5b01d1b830e5ccbc59"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.handleServerRequest (cyclomatic 23): CodexProcess.handleServerRequest 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2943}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e51f9799d80fa2a2cb4f2c9dcc64dd6443ab3f89ab724ea765860495853fa42"}},{"ruleId":"D1","level":"warning","message":{"text":"codex-process.normalizeMcpToolResult (cyclomatic 23): codex-process.normalizeMcpToolResult 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c497afac6e87850c6b3d23d46799505dabc06c2dc49dcb5d1af72eefc0e02a3"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.isSameUserInput (cyclomatic 23): SessionManager.isSameUserInput 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":"packages/bridge/src/session.ts"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c192b070e14222c72157c7be089c3550a0b2c64766840f36e15a5d3d590d69ff"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineManagerService._migrateIfNeeded (cyclomatic 22): MachineManagerService._migrateIfNeeded 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef002fa3b4a76105d9d2ddcbcb34a9620d234f5cddea7d3ec6d3adb274fae795"}},{"ruleId":"D1","level":"warning","message":{"text":"recent-session-search.transcriptLineMessageTexts (cyclomatic 22): recent-session-search.transcriptLineMessageTexts 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":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c1af116ddaab9145aa5e4441510e784d44c40a406b430c14624966b1df705f"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.getCodexSessionIndexMetadata (cyclomatic 22): sessions-index.getCodexSessionIndexMetadata has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d057b20b0eac5babf01352a63dc1ad0ceca99e2bd4d24e814714cd28f589ec0"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.listAvailableModelMetadata (cyclomatic 22): CodexProcess.listAvailableModelMetadata 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d7d0415e60fc77a51f7215c4374cf47b391064376db00c72504a7fa3a8cc90"}},{"ruleId":"D1","level":"warning","message":{"text":"skill-triggers.convertSkillTriggers (cyclomatic 22): skill-triggers.convertSkillTriggers 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":"packages/bridge/src/skill-triggers.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ed16d500e1548b317574a6de1424546d426c44bc0fa155604568fe055e2c30"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.codexHistoryMessageToServerMessage (cyclomatic 22): BridgeWebSocketServer.codexHistoryMessageToServerMessage 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e95fe349264b58a7c809bb01b9fe92fb8d60b5a44043d1e7072f3840e0cb64"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.listRecentSessions (cyclomatic 22): BridgeWebSocketServer.listRecentSessions has cyclomatic complexity 22 (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":"packages/bridge/src/websocket.ts"},"region":{"startLine":9810}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89197e0660416f69626c2aa5d4de8aeddeae218a3186c458b4981c4968337e7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._applySessionContext (cyclomatic 21): ChatSessionCubit._applySessionContext 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e1a6cef185d6c6b3da66aa3a9fc50c2bf14b9f1885a781bf53fe3b69ee5b8"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._userEntryMatchIndex (cyclomatic 21): ChatSessionCubit._userEntryMatchIndex 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5ffec48296a107f2c037d26a8cc80bce9bdf0c7fa038499284b2574925c46a"}},{"ruleId":"D1","level":"warning","message":{"text":"_FilePeekModelPreviewState._load (cyclomatic 21): _FilePeekModelPreviewState._load 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":"apps/mobile/lib/features/file_peek/widgets/file_peek_model_preview.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdbbbd25a7bbc3f910c4a8aa75abf5a8ee46f493a8d52507d7fcf4623c03b22"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeUpdateStatusTile.build (cyclomatic 21): BridgeUpdateStatusTile.build 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":"apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"00410437ecfb8d80249dfedb1ba1fe543c6fdb04a5af15ecb451cc80485fbc14"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.buildClaudeMessageImageIndex (cyclomatic 21): sessions-index.buildClaudeMessageImageIndex 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4000}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03b218fa1a47d3fa2a65fc521bab70d84518ca3cf41170cf14d8a8eb2f3f09e"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.buildSessionSummary (cyclomatic 21): SessionManager.buildSessionSummary has cyclomatic complexity 21 (threshold 15). Of this number, 18 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":"packages/bridge/src/session.ts"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02a97aff522bcd3519e2d2704ac709630dd75f78b022a242d395f313535ef27"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.backfillUserUuidsFromDisk (cyclomatic 21): SessionManager.backfillUserUuidsFromDisk 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":"packages/bridge/src/session.ts"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3618c8b0b36c06ec07b20b97a0af2e640503cd47b6528a08026c21c5698ad25"}},{"ruleId":"D1","level":"warning","message":{"text":"GalleryScreen.build (cyclomatic 20): GalleryScreen.build 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":"apps/mobile/lib/features/gallery/gallery_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c095a098b7c0b0511d1d89e57fb727178b46bf122206fddd40fe738f0979b7"}},{"ruleId":"D1","level":"warning","message":{"text":"GalleryImageViewer.build (cyclomatic 20): GalleryImageViewer.build 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":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"608c60177b54b5eedaa705c792558a8f8f93e1296de85a6f1fafc33848b4dcb8"}},{"ruleId":"D1","level":"warning","message":{"text":"_GitScreenContent.build (cyclomatic 20): _GitScreenContent.build 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69d431c1e39ca36bf6fa5cbc570bf0d574f6f32c51bdeb7df29029106230f88"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewProjectSheetState.build (cyclomatic 20): _NewProjectSheetState.build 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":"apps/mobile/lib/features/project_setup/widgets/new_project_sheet.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ff618c14e6ade2a114a783b0ecdaca8edd1581c73a8e83aa068904e42f1fca"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.parseClientMessage::isPromptHistoryEntry (cyclomatic 20): parser.parseClientMessage::isPromptHistoryEntry has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (parser.parseClientMessage) 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. This is NOT this file\u0027s highest cyclomatic complexity: parser.hasValidSessionOptions (cyclomatic 31) 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":"packages/bridge/src/parser.ts"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd7bfcaf58d5bc71eed87b9726d34bc9539881a078ab01767dc219c2107d4d1"}},{"ruleId":"D1","level":"warning","message":{"text":"recent-session-search.searchTranscriptFile (cyclomatic 20): recent-session-search.searchTranscriptFile has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf43c5c5947072100016a246d9c7c4bcf2e3ceecca639f22ed39f9566f79dae"}},{"ruleId":"D1","level":"warning","message":{"text":"recent-session-search.searchRecentSessionContent (cyclomatic 20): recent-session-search.searchRecentSessionContent has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b47e3974a936c846e3df1ad3c3d610bb781b9eef50b9112c8e0035756d77a59"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.getPinnedCodexSessions (cyclomatic 20): sessions-index.getPinnedCodexSessions has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"7729222effce2cf23adeef9072dce1d1265d69936f8c58178855cf62da43707a"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.handleTurnCompleted (cyclomatic 20): CodexProcess.handleTurnCompleted 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fc0654606c5d8745158c8dbc47e9c0353e887b6524312c51714f4aaa80c3b0"}},{"ruleId":"D1","level":"warning","message":{"text":"codex-process.coerceElicitationValue (cyclomatic 20): codex-process.coerceElicitationValue 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5368}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a76686006d6a76054e3770a447deabb5df47ca9e5c93a3f4c806c7040de8b0"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaStore.register (cyclomatic 20): MediaStore.register has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafc71a08087763fac1c570a2d5affb44e20c34f578d58af1d58f5f18f78b291"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaStore.serveEntry (cyclomatic 20): MediaStore.serveEntry 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":"packages/bridge/src/media-store.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3920af124af05d0c168b4d38c3259d4a188b677013b179e44811ec3e43d306db"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.collectImageChanges (cyclomatic 20): BridgeWebSocketServer.collectImageChanges 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11491}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a5503da5fb8d9e98d63466017cece9790d4cea18837e57d57ecfed1524d44c"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.printReport (cyclomatic 20): doctor.printReport 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":"packages/bridge/src/doctor.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"150b6bcaccfd4d01bf642ec081f10d730ba6e7cb07f93a2a00bba39dd4aecb8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._restorePendingInputMessages (cyclomatic 19): ChatSessionCubit._restorePendingInputMessages 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b478fb67177af4b8a9f851f8fb58e96d0b8c14079aebb8a5fb63ec60a86ed48e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClaudeSessionScreenState._listenForSessionCreated (cyclomatic 19): _ClaudeSessionScreenState._listenForSessionCreated 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00f2dde66c2b8b4cfc67e3acaae61c7aed6a1b8045a01d30390c5daaa72b202"}},{"ruleId":"D1","level":"warning","message":{"text":"_CodexSessionScreenState._listenForSessionCreated (cyclomatic 19): _CodexSessionScreenState._listenForSessionCreated 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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f488b600cb1eab71974c5ed97443976b3bad5a2f53f3cba54d74299d8bb5de46"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService.send (cyclomatic 19): BridgeService.send 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"914a69458ebd15c9ac8f8e65990ead7cf2f0dc5534ed6be64552352dc3cd74e4"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._sendRecentSessionsRequest (cyclomatic 19): BridgeService._sendRecentSessionsRequest 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb284d720b6e6bf6697093a5d41670b89cdfa5ffd4e1d69d75165ab3c92dfdc9"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._clearTransportScopedRequestState (cyclomatic 19): BridgeService._clearTransportScopedRequestState 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9268ff2d371d13f74e53dcffc40b7953180210a93e7dfae9a8c7d4720d45a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHandler._buildCommandList (cyclomatic 19): ChatMessageHandler._buildCommandList 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccb3e9118f4d31975e1e4f562c2f5887506df6ac1cfd22e86f476f8a70144a8"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptHistoryService.matchesFilters (cyclomatic 19): PromptHistoryService.matchesFilters 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":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb9a456af179d93e978b9f37b9978f94494fdb54733cb96c072ae35fa7c5df9"}},{"ruleId":"D1","level":"warning","message":{"text":"_InputTextFieldState.didChangeAppLifecycleState (cyclomatic 19): _InputTextFieldState.didChangeAppLifecycleState has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"135d0fac591ef8bbac2fa9ada77dfcd7158470383280459593e4c20a5114a48f"}},{"ruleId":"D1","level":"warning","message":{"text":"_StripPrimaryAction.build (cyclomatic 19): _StripPrimaryAction.build 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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f968568de0c192f556a27ac1821e39f5be6ab1aaabacfe15b5140ab298a96"}},{"ruleId":"D1","level":"warning","message":{"text":"_ToolApprovalArea.build (cyclomatic 19): _ToolApprovalArea.build 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa9a55ce79047846fb14cae08be673c2d533e288b40e647808f08d924c3c53b"}},{"ruleId":"D1","level":"warning","message":{"text":"RecentSessionCard.build (cyclomatic 19): RecentSessionCard.build 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f20f89db199a92cd98e3539f329afdbaec0980cfc6bdfc3b4dad998e677251"}},{"ruleId":"D1","level":"warning","message":{"text":"SdkProcess.updateSettings (cyclomatic 19): SdkProcess.updateSettings 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67da751a4fa4e8d8f779e9d6c018fcaa1524a124eecf6308b073643f20fe417"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.appendImageGenerationResult (cyclomatic 19): sessions-index.appendImageGenerationResult 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db0223e69efb3dbb7468ab4ac8af8576740637af05c008b70e61586f12b7f38"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexBackgroundTracker.observe (cyclomatic 19): CodexBackgroundTracker.observe has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9935d8a45a30af299f3db9c556c953315fa3f7f53812ff7fd085502e409ec5"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.installToolSuggestion (cyclomatic 19): CodexProcess.installToolSuggestion 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0411091a605c84cdd6040b70e53d7bbd4057d9f566c3611a5b0cd43c088bbc3"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.processItemStarted (cyclomatic 19): CodexProcess.processItemStarted 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0da659116b83f95f00198683f9175aba420531fbb8c998e100b518f356e56a"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.registerPastUserMessageImages (cyclomatic 19): BridgeWebSocketServer.registerPastUserMessageImages has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df0d1f7878542670167193e486deda9a46b2826f98eb35834829827f837d8cd"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.collectGitDiff (cyclomatic 19): BridgeWebSocketServer.collectGitDiff has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11274}}}],"partialFingerprints":{"codehealthFindingId/v1":"824f9912e08b49be121647be63f576dfe6c98260a304b7ae05613979a1a4f832"}},{"ruleId":"D1","level":"warning","message":{"text":"websocket.buildCodexHistoryPrefix (cyclomatic 19): websocket.buildCodexHistoryPrefix has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"856e7f4670a2f66853a8ded19779e7bd79975ceddda39f78f55ea7b1fe5fbda9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._entriesEquivalent (cyclomatic 18): ChatSessionCubit._entriesEquivalent 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0155e0d5b1d1376f33f1b5047d9307188dd67c0e19ef8de0dc504d303d169d"}},{"ruleId":"D1","level":"warning","message":{"text":"FileTransferCubit.start (cyclomatic 18): FileTransferCubit.start 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":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbfce13ce5e4e67e0c79561bae963bbb1ad13f086076ceff12a4db70d666b34"}},{"ruleId":"D1","level":"warning","message":{"text":"FileUploadCubit.start (cyclomatic 18): FileUploadCubit.start 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":"apps/mobile/lib/features/file_upload/state/file_upload_cubit.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"700ee4042fde55b5ef75788d8119874fd6ff016049ecf3603796d6440b548b3c"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffImageViewer.build (cyclomatic 18): DiffImageViewer.build 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":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f02c4099cad89178ef0eb580e8f54f5ebe233a93d1e52df69c0daa442c50f73"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._showRecentSessionActions (cyclomatic 18): _SessionListScreenState._showRecentSessionActions 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6af27aa7f45b2475c543b5004c81666c5f7968901dfc16014ecf5e4f1615626"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._buildScaffoldBody (cyclomatic 18): _SessionListScreenState._buildScaffoldBody 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e58a02ae9ebcc1c8d17357fe64dbb93b6a1275544aa8dee055f45187f381725"}},{"ruleId":"D1","level":"warning","message":{"text":"_MachineEditSheetState._testConnection (cyclomatic 18): _MachineEditSheetState._testConnection 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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b24a13ace7cb4de10c5b5cc8f82cf737f1e5624b2b8f065c3cb219cf5ed7ca9"}},{"ruleId":"D1","level":"warning","message":{"text":"SketchDocument.decode (cyclomatic 18): SketchDocument.decode 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":"apps/mobile/lib/features/sketch/sketch_document.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77a7c55d8a9502703ba4d119c3a1166df9fa3bdee661e3e16ffdbe0f01fc549"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._clearPendingSessionActionFor (cyclomatic 18): BridgeService._clearPendingSessionActionFor 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6a3c400d67b3fbb4c4617e230476ed1c7c06216abcf77eb5908df50d38b886"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._restoreOfflinePendingMessages (cyclomatic 18): BridgeService._restoreOfflinePendingMessages 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a1ecf6eefef365fcb104b73325eedd34eb3ea8301c49fb4dbf053d6cc363d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHandler._handleAssistant (cyclomatic 18): ChatMessageHandler._handleAssistant 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"070ed4b40c7c2cd2b4ce25f18ff02fd213cd8e23d5bd121c798d2dac6857d40d"}},{"ruleId":"D1","level":"warning","message":{"text":"ResultChip.build (cyclomatic 18): ResultChip.build 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":"apps/mobile/lib/widgets/bubbles/result_chip.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e655f81e9fb0d501c0a38f6d6c8e5d609a2f73af81fdf9cde33c719812df9447"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewSessionSheetContentState._buildPage (cyclomatic 18): _NewSessionSheetContentState._buildPage 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95e8c5de1218789c5d4c300bd53ed118f4b75db4df7256842826ce9ec5715e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptHistoryStore.mergeEntry (cyclomatic 18): PromptHistoryStore.mergeEntry 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":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"c107895b4382b70b81175048cd807a0bfe0aa5dbf1e93e910f2b7d28d3ceb649"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.extractCodexUserMessagePayloadImages (cyclomatic 18): sessions-index.extractCodexUserMessagePayloadImages 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c03b79294611635df5093cb5a63d53b5a64989e33230b3655f555eaa05db3b7"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.prepareFileDownload (cyclomatic 18): BridgeWebSocketServer.prepareFileDownload 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20a310f45eb2c77c7d81bb863b05a97ffa0fdf838e249d792d1b2c1de9c8030"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit.setClaudeSettings (cyclomatic 17): ChatSessionCubit.setClaudeSettings 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":2631}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c3ce4a5a85bce46d84ec20d6ca2440831869423c9d316c3deaaa7a8d6d3fb"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusIndicator.build (cyclomatic 17): StatusIndicator.build 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":"apps/mobile/lib/features/chat_session/widgets/status_indicator.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69e5df8fcee2d18fa26851249803c05fcaf005fd553ae73bf9e218c75fe7b46"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalMediaSnapshot._prepare (cyclomatic 17): LocalMediaSnapshot._prepare 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":"apps/mobile/lib/features/file_peek/playback/local_media_snapshot_io.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc6e6c5b461768fa6e22bf79751b089f57b6ac88d77ac1c7e4867ff811964df"}},{"ruleId":"D1","level":"warning","message":{"text":"GitViewCubit._onDiffImageResult (cyclomatic 17): GitViewCubit._onDiffImageResult 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":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dabf86f8d448fbddc8237baea6138c59241f5251c3b381de52efbf57b79eb13"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectSetupCubit.request (cyclomatic 17): ProjectSetupCubit.request 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":"apps/mobile/lib/features/project_setup/state/project_setup_cubit.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccd46956c726ab755e7ceb2a256cedb862dd77a6a4b9365da12ab2a0834985a"}},{"ruleId":"D1","level":"warning","message":{"text":"_CompactWindowRow.build (cyclomatic 17): _CompactWindowRow.build 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":"apps/mobile/lib/features/settings/widgets/usage_section.dart"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5f344b3dd10091a723d491e9ed0b92ce02f90df887cbdf12740a175a52eb25"}},{"ruleId":"D1","level":"warning","message":{"text":"_AskQuestionLayout.build (cyclomatic 17): _AskQuestionLayout.build 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":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37d12456fea539c1ee2be4cec020378aa876dda3bd2ba58a7ad1788682ae90a"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewSessionSheetContentState.initState (cyclomatic 17): _NewSessionSheetContentState.initState 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a003ae089de6e66b1373793b2a84608ce67cad9a78b7c69c163a51b9263a8087"}},{"ruleId":"D1","level":"warning","message":{"text":"_NewSessionSheetContentState._refreshModelCatalogs (cyclomatic 17): _NewSessionSheetContentState._refreshModelCatalogs 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fc2cf8b8c32ecb0835e1c72efc481f1bc30cbfc5415ab77164872c98542ab4"}},{"ruleId":"D1","level":"warning","message":{"text":"worktree.parseGtrConfig (cyclomatic 17): worktree.parseGtrConfig has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a99046fb5f7d7738a847a643fbfc7a67cdb1bfd6315fe8a9251a0d8abde79ab"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.findCodexSessionJsonlPath (cyclomatic 17): sessions-index.findCodexSessionJsonlPath has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3549}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb55142391d424038d7007dd8a81415b2b120421357c74c5306bde0a68af7bd6"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProcess.forkThreadAtUserTurn (cyclomatic 17): CodexProcess.forkThreadAtUserTurn has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b04d2eadeeaa39df3d45821fe343634ca66832376c427dd1d6db1a1a2c4b5"}},{"ruleId":"D1","level":"warning","message":{"text":"git-operations.listGitFilesWithArgsForClient (cyclomatic 17): git-operations.listGitFilesWithArgsForClient has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 452, 418, 434, \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":"packages/bridge/src/git-operations.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e882b63ceca2951f8508776c1be8adc3559c3749ca29ed79b3a179e5be29dd"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.rewindCodexConversation (cyclomatic 17): BridgeWebSocketServer.rewindCodexConversation has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b974dc6ed8f8a8fc88ea022c4ca092bf747b9ad67331570beb7debfc3ca2242"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.prepareServerMessageForClient (cyclomatic 17): BridgeWebSocketServer.prepareServerMessageForClient 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11043}}}],"partialFingerprints":{"codehealthFindingId/v1":"02142bf12684a3da21c1c33a0e2537eb3f47e1935ff642906683bef701acdc0d"}},{"ruleId":"D1","level":"warning","message":{"text":"websocket.buildRecentSessionPredicate.\u003Creturned closure\u003E (cyclomatic 17): websocket.buildRecentSessionPredicate.\u003Creturned closure\u003E has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc922b8b4879bab63967b6aec1cea2c6df2ffc5b0f951d850c63055a699687a"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.checkCliProviders (cyclomatic 17): doctor.checkCliProviders has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"packages/bridge/src/doctor.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d355b711b3cfad32e4fa3280ad0397b821cd785480879c830de632ce1fcf966b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionCubit._extractCodexStructuredInputs (cyclomatic 16): ChatSessionCubit._extractCodexStructuredInputs 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":2966}}}],"partialFingerprints":{"codehealthFindingId/v1":"492ac545c513672e88bf09e9ffc63564e36e4b33ba67b8849943ecde466b7373"}},{"ruleId":"D1","level":"warning","message":{"text":"_DiffBottomBar.build (cyclomatic 16): _DiffBottomBar.build 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"5595c44fb534fde591370edbacca322fba4c8c8840f069f227f2d0c00a97e158"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._connectToMachineConfig (cyclomatic 16): _SessionListScreenState._connectToMachineConfig 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65aac205fe86e2ffd52d53c1280bbaa37697a91ea05fe45152b5a1e7ea571b"}},{"ruleId":"D1","level":"warning","message":{"text":"_RecentAdvancedSearchSheetState.build (cyclomatic 16): _RecentAdvancedSearchSheetState.build 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":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea79798ea8520c5fe30ab9a673bf61a2925061e872e2df7c5d1b295f7775610"}},{"ruleId":"D1","level":"warning","message":{"text":"_SupportStatusTile.build (cyclomatic 16): _SupportStatusTile.build 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":"apps/mobile/lib/features/settings/supporter_screen.dart"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"891759e557cb4bb360cf9364cca3928af105c6a88c05aad97be91ecaab81d99a"}},{"ruleId":"D1","level":"warning","message":{"text":"_CategoryList._summary (cyclomatic 16): _CategoryList._summary has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/settings_home.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"474b4b176fbf115e4d60e00f805d99fdef7c78438855c6992a857d5a64a9221f"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeService._canSendCodexServiceTier (cyclomatic 16): BridgeService._canSendCodexServiceTier 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d9ba8a8eec76d095ab8bdb50e60de320981e6523048ee50ed9c7ba349e4e03"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineManagerService._mergeStoredMachines (cyclomatic 16): MachineManagerService._mergeStoredMachines 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a698106bf811dab96f6f675dfcfbde52ad430de8ed16cb4cec2de4f8a471414"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineManagerService.addMachine (cyclomatic 16): MachineManagerService.addMachine 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a41f5bdca112a3e786aa469d77e02abc555b8081f2aa2274c0597d9a2fee2df"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptHistoryService.performPromptHistorySyncHandshake (cyclomatic 16): PromptHistoryService.performPromptHistorySyncHandshake 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":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"7915f4a67d207a38dba7439c1f7a45ee6a098a83654154f38afb22b6d9adc1d4"}},{"ruleId":"D1","level":"warning","message":{"text":"_ApprovalButtons.build (cyclomatic 16): _ApprovalButtons.build 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":"apps/mobile/lib/widgets/approval_bar.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac32becd39e913913c6c426515f1e3570f530f101e2dc47b8a3ee798d7bcff3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatEntryWidget.build (cyclomatic 16): ChatEntryWidget.build 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":"apps/mobile/lib/widgets/message_bubble.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb4a6375d76e0f1743f4cd8829be986d74545761dbebe4b0ade18b3b0127fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"index.relay (cyclomatic 16): index.relay 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":"functions/src/index.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"902167434bfdc95f77b3bb564c7afd6ff4c34ea5fc85ea6cc00766d9bbdf0ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"SdkProcess.updateStatusFromMessage (cyclomatic 16): SdkProcess.updateStatusFromMessage 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4c13751bcfb79ffe908bcfb5deadd5034f02cfeaea3a1154a572f8f22abde3"}},{"ruleId":"D1","level":"warning","message":{"text":"sessions-index.parseClaudeJsonlChunksFast (cyclomatic 16): sessions-index.parseClaudeJsonlChunksFast 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2403b4999c890a48dce28816c3f2248abbe03459f95dc58115c6cb2292eae0c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli-args.parseCliArgs (cyclomatic 16): cli-args.parseCliArgs 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":"packages/bridge/src/cli-args.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a692929f8d3436aecc9dab1184c526482d5cdef1f74e7952c0f484954e17d0e"}},{"ruleId":"D1","level":"warning","message":{"text":"session.mergeCodexSettings (cyclomatic 16): session.mergeCodexSettings 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":"packages/bridge/src/session.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b57ea70290f0b565578692a3974ee6ec47d3a39dc40dcf10825ad68ba0241a3"}},{"ruleId":"D1","level":"warning","message":{"text":"media-store.parseByteRange (cyclomatic 16): media-store.parseByteRange 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":"packages/bridge/src/media-store.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"820908f87bd8ed5aceb820d87490417a7f919bafd6ca63b89f761a63b3586a07"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStore.extractInfoFromJsonl (cyclomatic 16): RecordingStore.extractInfoFromJsonl 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":"packages/bridge/src/recording-store.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6adacd00e957a65a06b02b7be3c46e4599152d936f5ae159c76695d8a1ca84"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.prepareFileUpload (cyclomatic 16): BridgeWebSocketServer.prepareFileUpload 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43729da7838d03225e136e8e6eccaf49ff59624262a77d51606c1f4258c8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.forkClaudeSession (cyclomatic 16): BridgeWebSocketServer.forkClaudeSession has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1deec1bf0c7ec4e8e69e20a5db30d2af0277b468cdaeb97ad868d9c64c569a"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeWebSocketServer.registerPastToolResultImages (cyclomatic 16): BridgeWebSocketServer.registerPastToolResultImages 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b55d2b9e2df101789834682ee8bcad1584efda172355a63f49cf425676f3f3a"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.handleClientMessage (cognitive 1372): BridgeWebSocketServer.handleClientMessage has cognitive complexity 1372 (threshold 15). Drivers by points: if/else 319 (709 pts), ternaries 167 (450 pts), error handling 48 (106 pts), boolean chains 82, loops 8 (24 pts), match/switch 1 (nesting depth added 747). Of this number, 987 points are the body\u0027s own statements and 385 belong to 49 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3614}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e670c0531e4bbd4ee728dec2945369eecb4bbe591fa97709e15ea53f5b6508"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.parseClientMessage (cognitive 671): parser.parseClientMessage has cognitive complexity 671 (threshold 15). Drivers by points: if/else 237 (485 pts), boolean chains 181, loops 8 (22 pts), error handling 1, match/switch 1 (nesting depth added 262). To reduce it, split the body into named stages: move each independent 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 (parser.parseClientMessage::isPromptHistoryEntry) 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":"packages/bridge/src/parser.ts"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d46c06c2e0085767beb9537f7869b4dc7c2e9ebb931828d7beec9c301faabc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatInputWithOverlays.build (cognitive 279): ChatInputWithOverlays.build has cognitive complexity 279 (threshold 15). Drivers by points: if/else 102 (166 pts), boolean chains 43, ternaries 25 (37 pts), error handling 7 (17 pts), loops 8 (14 pts), match/switch 2 (nesting depth added 92). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be8d62aa8f2e065e0ca1a63f5e83f61becb395b5ada461662a4105ac0cb7474"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService.connect (cognitive 255): BridgeService.connect has cognitive complexity 255 (threshold 15). Drivers by points: if/else 64 (202 pts), ternaries 6 (28 pts), boolean chains 19, error handling 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 163). 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e97c4f9fa1e9be5a723f4daadd6675181640433a1871150313cc6e8e983d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.getCodexSessionHistory (cognitive 242): sessions-index.getCodexSessionHistory has cognitive complexity 242 (threshold 15). Drivers by points: ternaries 32 (137 pts), if/else 31 (98 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (nesting depth added 173). Of this number, 240 points are the body\u0027s own statements and 2 belong to 2 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e042b725c288b5f34c1b47d93b6ebc3688dec26bc5fd390e3f653b6268c5c089"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeContentState._buildContent (cognitive 197): HomeContentState._buildContent has cognitive complexity 197 (threshold 15). Drivers by points: ternaries 22 (67 pts), if/else 31 (66 pts), boolean chains 35, loops 13 (28 pts), match/switch 1 (nesting depth added 95). 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":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ee60f10673084b6d43992abf417b86a3aa573419a8b2372eb50d0811aed80f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._applyUpdate (cognitive 176): ChatSessionCubit._applyUpdate has cognitive complexity 176 (threshold 15). Drivers by points: if/else 65 (109 pts), boolean chains 33, ternaries 16 (25 pts), loops 4 (9 pts) (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e31fc40426935c9e33488e3e396b16af84197a7d2f033639c87c2007b85fc95"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.parseCodexSessionJsonl (cognitive 168): sessions-index.parseCodexSessionJsonl has cognitive complexity 168 (threshold 15). Drivers by points: if/else 45 (139 pts), boolean chains 21, ternaries 5, error handling 1 (2 pts), loops 1 (nesting depth added 95). Of this number, 166 points are the body\u0027s own statements and 2 belong to 2 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa2f8e7507abc774e5ee0cd9e48173dfc03e0604ea39c3150212df8f6b73fee"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.parseFromChunks (cognitive 160): sessions-index.parseFromChunks has cognitive complexity 160 (threshold 15). Drivers by points: if/else 42 (124 pts), boolean chains 17, loops 4 (9 pts), error handling 2 (6 pts), ternaries 4 (nesting depth added 91). 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"35901f41d888310c3335e861344ddceda490f89c0f5611a66f5ee0855b7ad0ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.create::processMessage (cognitive 145): SessionManager.create::processMessage has cognitive complexity 145 (threshold 15). Drivers by points: if/else 44 (105 pts), boolean chains 23, loops 3 (11 pts), error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 72). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (SessionManager.create) 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":"packages/bridge/src/session.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd30cbb54697b4e855c273b361a0d029130027ca9ae382f631909369ee7fae1"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.codexThreadToSessionHistory (cognitive 135): sessions-index.codexThreadToSessionHistory has cognitive complexity 135 (threshold 15). Drivers by points: ternaries 21 (88 pts), if/else 10 (37 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 97). Of this number, 121 points are the body\u0027s own statements and 14 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d52024c053128351b391f4c9aca4437c61e9ca1a46dc6afc9243826da04996"}},{"ruleId":"D2","level":"warning","message":{"text":"_CodexChatBody.build (cognitive 115): _CodexChatBody.build has cognitive complexity 115 (threshold 15). Drivers by points: if/else 50 (60 pts), boolean chains 29, ternaries 15 (18 pts), error handling 3 (6 pts), match/switch 2 (nesting depth added 16). 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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3cfaebf0ac91c5a701541ad09918898de0ac37a055625513ead39c9ad824c1"}},{"ruleId":"D2","level":"warning","message":{"text":"SdkProcess.processMessages (cognitive 99): SdkProcess.processMessages has cognitive complexity 99 (threshold 15). Drivers by points: if/else 31 (78 pts), boolean chains 20, loops 1 (nesting depth added 47). Of this number, 94 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc221d0a0ce3a0dc2703c8cc256a37d8468a83afc4b0c13913cc2427b953c12"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenBody.build (cognitive 92): _ChatScreenBody.build has cognitive complexity 92 (threshold 15). Drivers by points: if/else 40 (48 pts), ternaries 17 (20 pts), boolean chains 16, error handling 3 (6 pts), match/switch 2 (nesting depth added 14). 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd8979da4ec17cc688081f3bf2fba92749caa57caef7cf81aaf575aec53aeb5"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.getSessionHistory (cognitive 88): sessions-index.getSessionHistory has cognitive complexity 88 (threshold 15). Drivers by points: if/else 20 (43 pts), ternaries 9 (30 pts), boolean chains 9, error handling 2 (3 pts), loops 2 (3 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"5297bcc1d344ca089957ef7b8f46c73d7c589fa3382c99bd920d2c4d895d07de"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler._handleHistory (cognitive 87): ChatMessageHandler._handleHistory has cognitive complexity 87 (threshold 15). Drivers by points: if/else 19 (50 pts), boolean chains 22, ternaries 7 (14 pts), loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ae83079e2de948aed528eaf54fdb8fe3ccfff97acfbaa7a2c44d8e295c1485"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.getAllRecentSessions (cognitive 83): sessions-index.getAllRecentSessions has cognitive complexity 83 (threshold 15). Drivers by points: if/else 25 (45 pts), ternaries 11 (19 pts), boolean chains 11, error handling 3 (4 pts), loops 3 (4 pts) (nesting depth added 30). Of this number, 43 points are the body\u0027s own statements and 40 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"306a2e2db947d751f57935ead1d5db3e1d57ebd206b3b8e33268ebae9134557c"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk-process.convertSdkMessage (cognitive 81): sdk-process.convertSdkMessage has cognitive complexity 81 (threshold 15). Drivers by points: ternaries 14 (38 pts), if/else 15 (34 pts), boolean chains 8, match/switch 1 (nesting depth added 43). Of this number, 73 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"644015a26bbd57278ae26385d24fdc79340a74597fea5c1d9d11f6e41259ae2f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.processItemCompleted (cognitive 74): CodexProcess.processItemCompleted has cognitive complexity 74 (threshold 15). Drivers by points: ternaries 22 (45 pts), if/else 10 (21 pts), boolean chains 7, match/switch 1 (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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3734}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bba4f843b288c37836bf14de3af9abc4c0b9c0e014ec6c912bf58befd23a48"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.bootstrap (cognitive 73): CodexProcess.bootstrap has cognitive complexity 73 (threshold 15). Drivers by points: if/else 28 (33 pts), ternaries 24 (26 pts), boolean chains 13, error handling 1 (nesting depth added 7). Of this number, 72 points are the body\u0027s own statements and 1 belongs 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1da24cc62308b84cc21285e9bf2bfefe8698e88ccc4733588731391ec728b70"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineManagerService.checkHealth (cognitive 70): MachineManagerService.checkHealth has cognitive complexity 70 (threshold 15). Drivers by points: if/else 16 (40 pts), ternaries 7 (19 pts), boolean chains 8, error handling 3 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bfd3c577db9311ec328631446f897f9575d62f8c9fbdd7696acd602058d793"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.handleNotification (cognitive 59): CodexProcess.handleNotification has cognitive complexity 59 (threshold 15). Drivers by points: if/else 17 (32 pts), ternaries 7 (18 pts), boolean chains 6, error handling 1 (2 pts), match/switch 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc12e30f60382b10dc68af9785da70ade5d28bdbfe667f0e02a26dda1fe19700"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceShellScreenState.build (cognitive 57): WorkspaceShellScreenState.build has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 31, if/else 18 (19 pts), ternaries 7 (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":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e4ef602655694cc33ccf6959fa6cee8492dec1f1cfafdd8ecc58d8c3644c6b"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._flushMessageQueueAsync (cognitive 57): BridgeService._flushMessageQueueAsync has cognitive complexity 57 (threshold 15). Drivers by points: if/else 13 (37 pts), boolean chains 8, loops 3 (7 pts), error handling 1 (5 pts) (nesting depth added 32). 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"445ddf13e39c395fb3f747bf2dac69e6c5873ee7640e32eba039a5e7a2cd8662"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.normalizeCodexMcpResult (cognitive 57): sessions-index.normalizeCodexMcpResult has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 11 (37 pts), if/else 10 (15 pts), boolean chains 4, 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca02f18697f8e32e2675372fccec1c05f3c896303ad6e5747b37cd08796dae81"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.listAvailableModelMetadata (cognitive 57): CodexProcess.listAvailableModelMetadata has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 7 (29 pts), if/else 6 (18 pts), boolean chains 6, loops 2 (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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c8e9829ca1a0608c73f7faa17d416823ce030dda65ab13608ad900302958fc"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.maybeSendPushNotification (cognitive 56): BridgeWebSocketServer.maybeSendPushNotification has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (24 pts), ternaries 8 (21 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 22). Of this number, 53 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10809}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92565e5273d995ba875a54a6dbe55e4a5ffc1584f4dd812b6a4ea902a88a5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineManagerService._migrateIfNeeded (cognitive 55): MachineManagerService._migrateIfNeeded has cognitive complexity 55 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 3 (14 pts), loops 2 (6 pts), boolean chains 5, error handling 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7f52a0812711b0d2418603e25515ca005ebee36e7a2fc2cd30737f586c3149"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.runInputLoop (cognitive 55): CodexProcess.runInputLoop has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 9, ternaries 3 (9 pts), loops 1 (nesting depth added 25). Of this number, 24 points are the body\u0027s own statements and 31 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb8f7e846dfb3fb547c9b8a12333a654daf227b378ee70ea3e5b7d3b23a418b"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState.initState (cognitive 54): _SessionListScreenState.initState has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 18, ternaries 2 (4 pts), match/switch 1 (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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8cdcedd581726b4def668422fdf05acd70a522c70d6aeae89a105015aeea13"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._connectWithParams (cognitive 54): _SessionListScreenState._connectWithParams has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (23 pts), ternaries 8 (23 pts), boolean chains 5, match/switch 1 (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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b7d2cb5d3ac80990d241be286b326d4683317e86dfddb65bc1493ae755dd68"}},{"ruleId":"D2","level":"warning","message":{"text":"_MachineEditSheetState.build (cognitive 54): _MachineEditSheetState.build has cognitive complexity 54 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 12 (23 pts), boolean chains 6 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7af4b2edbe108c9950e796df3a3910e9f80fa10df13e7eaba474b2a9926e164"}},{"ruleId":"D2","level":"warning","message":{"text":"performance-mode.performanceMessage (cognitive 53): performance-mode.performanceMessage has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 12 (18 pts), boolean chains 13 (nesting depth added 17). Of this number, 33 points are the body\u0027s own statements and 20 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/performance-mode.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de5910c9a2461dad4fb47976488827b079a9c6e9ea955ac2a34257359b85731"}},{"ruleId":"D2","level":"warning","message":{"text":"_RunningSessionCardState.build (cognitive 52): _RunningSessionCardState.build has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 16 (25 pts), if/else 16, boolean chains 8, match/switch 2 (3 pts) (nesting depth added 10). 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0d28d18cebf66071cbfe16b9b5f56af46643739e21468ad16ad87d67b51ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePeekContentState.build (cognitive 51): FilePeekContentState.build has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 21, ternaries 13 (18 pts), if/else 10 (12 pts) (nesting depth added 7). 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":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5955a9d9772f3586c1dea2e2d0b9a332d1934f2c6422ec2116d3af0f2c3337d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler._handleSystem (cognitive 49): ChatMessageHandler._handleSystem has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 21, ternaries 4 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"99619c9bdd5f5271b829bb8a52d338cecaf82c1c491e889723ded7076b449b3b"}},{"ruleId":"D2","level":"warning","message":{"text":"_OptionsSection.build (cognitive 47): _OptionsSection.build has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 17 (24 pts), match/switch 8, if/else 7, loops 3 (5 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e84c5935fdc0852511c7995137ab2314510aad00e9dfeb0d4d07a02e235cda4"}},{"ruleId":"D2","level":"warning","message":{"text":"recent-session-search.searchRecentSessionContent (cognitive 47): recent-session-search.searchRecentSessionContent has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 27). Of this number, 37 points are the body\u0027s own statements and 10 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":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdacc23135db32d0bfaa781fe52accfc8b0e81160125b1afcda2f8bbafaa9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"_MachineEditSheetState._save (cognitive 46): _MachineEditSheetState._save has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 10 (21 pts), boolean chains 18, if/else 3 (5 pts), match/switch 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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc53317ea33cafeb2270ad83c00c4f43e63f1bd261a279ac83f8717af1201ed8"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._restoreOfflinePendingMessages (cognitive 46): BridgeService._restoreOfflinePendingMessages has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (33 pts), error handling 2 (4 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"c146c9a64d9e04d54c8fe313665fe7ddc6362760bf15e65f6af52b47dbaf6eac"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.extractCodexUserMessagePayloadImages (cognitive 46): sessions-index.extractCodexUserMessagePayloadImages has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (21 pts), ternaries 5 (19 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 29). 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4183}}}],"partialFingerprints":{"codehealthFindingId/v1":"50feaf6b65c96a7240ceb8c2936542753e31d3b081ac53f1c320de6491eb543e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.rewindInPlace (cognitive 46): SessionManager.rewindInPlace has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 8, ternaries 5 (8 pts), loops 2 (3 pts) (nesting depth added 13). Of this number, 38 points are the body\u0027s own statements and 8 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":"packages/bridge/src/session.ts"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b6e265f25cbabadb393c6dba330f420017024af8a3a31a73d826b9d2754d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._startNewSession (cognitive 44): _SessionListScreenState._startNewSession has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 29, boolean chains 12, if/else 3. 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b33831c8a9eb0629bfe2876ab7b54f580d50d17d109b75d2a6f8906c1102fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._resumeSessionWithParams (cognitive 44): _SessionListScreenState._resumeSessionWithParams has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 29, boolean chains 11, if/else 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3b8370b9d65f3440d8ae781a4c3f1ef31018be3d9d264ee03a025ef596d9b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit.sendMessage (cognitive 43): ChatSessionCubit.sendMessage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 7 (12 pts), boolean chains 10, match/switch 1 (2 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c23dae8a7907378b22ca539580807cd4fff6ab2b41725867bd19c5c5c0699d"}},{"ruleId":"D2","level":"warning","message":{"text":"_FilePeekModelPreviewState._load (cognitive 43): _FilePeekModelPreviewState._load has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 7, loops 2 (7 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/widgets/file_peek_model_preview.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9acd6b9e22cffb4fee1b61e9502f6656fd1428a07e978b71ab830e81073acad"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.applyCodexCanonicalHistoryBaseline (cognitive 43): BridgeWebSocketServer.applyCodexCanonicalHistoryBaseline has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 6 (10 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 17). Of this number, 37 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"801ceace1c7db549d50c839479d10c5d0a91e04b87c58326ac977742d2c4d8de"}},{"ruleId":"D2","level":"warning","message":{"text":"index.startServer (cognitive 41): index.startServer has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (19 pts), ternaries 7 (11 pts), boolean chains 6, error handling 3, loops 1, match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 15 of the 41 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 212, shutdown, a function literal at line 343). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd1f7947723258d564c264d592cbb6aa535153e3d93d655719889118ca8be79"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionUrlParser.parse (cognitive 39): ConnectionUrlParser.parse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 3 (8 pts), boolean chains 6, 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":"apps/mobile/lib/services/connection_url_parser.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d2e8059eefae90b4b5a734b9da955c8aa411b771e5772d8771d55e83119bed"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.buildSessionCreatedMessage (cognitive 39): BridgeWebSocketServer.buildSessionCreatedMessage has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 21, if/else 9 (17 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"0767084678345909f6715b2466427dfbf45a6ab4409e3f371aea2fdfc4bfcab4"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.collectImageChanges (cognitive 39): BridgeWebSocketServer.collectImageChanges has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (27 pts), error handling 2 (6 pts), loops 3 (4 pts), boolean chains 2 (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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11491}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dc947b656f9a416d7f1535c40cb42ed083d5fd97765b8736cad2a2663a1132"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewSessionSheetContentState._allProjectChoices (cognitive 38): _NewSessionSheetContentState._allProjectChoices has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 7 (9 pts), loops 5 (7 pts), boolean chains 5 (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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b41acc4af1bcf658ce549b94a9f6373f8a28c4c0d6881faee9a3138032c7b5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._onMessage (cognitive 37): ChatSessionCubit._onMessage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 10, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ced767907abf38174183783998fab30612ab3689e6499ab2938c3174e8caac"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptHistoryService.performPromptHistorySyncHandshake (cognitive 37): PromptHistoryService.performPromptHistorySyncHandshake has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 6 (21 pts), if/else 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f0fd7f4b9d7b63a5ebd06b151b2ca10ca4fdacdc8b2b1760af1fef19875931"}},{"ruleId":"D2","level":"warning","message":{"text":"index.parseRelayBody (cognitive 37): index.parseRelayBody has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 6, loops 1 (3 pts), ternaries 1 (2 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":"functions/src/index.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa9b7fd53a374f3e93ef503ba7d971221ed65311c0f61d4f69ff324da7140a8"}},{"ruleId":"D2","level":"warning","message":{"text":"_GitScreenBodyState.build (cognitive 36): _GitScreenBodyState.build has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 16 (18 pts), boolean chains 9, if/else 7 (9 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f447be67bb47a8c8c9662832c53a7df574ac593461529416855e21934e86d5"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown-images.scanDestination (cognitive 36): markdown-images.scanDestination has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 5, loops 3 (4 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":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ed4d756b39c64af06f99eee22ebefe0e1b4cf736879fc78d90c95012efa795"}},{"ruleId":"D2","level":"warning","message":{"text":"codex-process.normalizeMcpToolResult (cognitive 36): codex-process.normalizeMcpToolResult has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 7 (10 pts), boolean chains 4, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"af26ad5f63fd1e6c12b0179c866df022b6c171e1fe44024201fff98f30168590"}},{"ruleId":"D2","level":"warning","message":{"text":"FileBrowserCubit._onMessage (cognitive 35): FileBrowserCubit._onMessage has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 9, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7ae05caf143745314beb0bfe93106010b2b5ec069770533fe50226ad5f2c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionPresentation.from (cognitive 35): PermissionPresentation.from has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (20 pts), if/else 9 (12 pts), boolean chains 2, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8071722cee4cb6dd86072926f0aee860dd0d1d42ee53ca535be0a065301ce855"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk-process.buildAskUserAnswers (cognitive 35): sdk-process.buildAskUserAnswers has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 7, loops 2 (5 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 11). Of this number, 28 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"587472c38db5cd46b6ea4e6ee4de6bf78e92caf23c74336e33894bee77d1dc97"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.claudeAbandonedBranchUuids (cognitive 35): sessions-index.claudeAbandonedBranchUuids has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 7, ternaries 3 (6 pts), loops 3, 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3635}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b98962244dd0a014c0290f9eb6c79aab07e3e9f5990ee27d7c40b6b0f2fba4"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown-images.createAssistantImageResolver.\u003Creturned closure\u003E (cognitive 34): markdown-images.createAssistantImageResolver.\u003Creturned closure\u003E has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (21 pts), ternaries 2 (6 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 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":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6757062eba07c59f85da3db2f1dbac312c37b0b1270b77c8196ebe11974aee0d"}},{"ruleId":"D2","level":"warning","message":{"text":"directory-listing.listAllowedDirectories (cognitive 34): directory-listing.listAllowedDirectories has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 11, error handling 3 (4 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"152c95bf674db78379d8635e5daa7ae8c9bce4559c3bc327b87409f2160a1c6b"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.printReport (cognitive 34): doctor.printReport has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (8 pts), ternaries 3 (5 pts), boolean chains 4 (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":"packages/bridge/src/doctor.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2320bc5513d816d30a8ce3c4e226ef22f8dc8f2542abb1feac489eb85c24d6"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatMessageListState.build (cognitive 33): _ChatMessageListState.build has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9, ternaries 4 (5 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c0063e8c7ec922fc3fa708ebb3e4da2552c194c009ea33638be81606ba1e39"}},{"ruleId":"D2","level":"warning","message":{"text":"_CommitBottomSheetContentState.build (cognitive 33): _CommitBottomSheetContentState.build has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 6 (11 pts), match/switch 1 (4 pts), boolean chains 2 (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":"apps/mobile/lib/features/git/widgets/commit_bottom_sheet.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9190f86be72d05bb531b8ac20624c39d14cf1267c2e768bf0026629120c9960"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionResumeCoordinator.resume (cognitive 33): SessionResumeCoordinator.resume has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 29, if/else 3, boolean chains 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":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc40296975f51ee6257890c8068344809047c821fe03be0be634d63f213a17b"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService.resolveSessionLink (cognitive 33): BridgeService.resolveSessionLink has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 10, error handling 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3027}}}],"partialFingerprints":{"codehealthFindingId/v1":"949993604b14d5a7d3ed56183da77310bc185f7b24cd0c398cfa7ffc1e086f1f"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewSessionSheetContentState._buildParams (cognitive 33): _NewSessionSheetContentState._buildParams has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 22, boolean chains 11. 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"be21948bcb1863e9728a2aed6eb645f68759d1671f3de656de86fa20db4892f3"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.getCodexSessionIndexMetadata (cognitive 33): sessions-index.getCodexSessionIndexMetadata has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 7 (12 pts), error handling 2 (4 pts), boolean chains 3, loops 2 (nesting depth added 12). Of this number, 27 points are the body\u0027s own statements and 6 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"489b4321961b4458711b034a74d535f9ae0d4078922914c8f415049350dce154"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.buildClaudeMessageImageIndex (cognitive 33): sessions-index.buildClaudeMessageImageIndex has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 4, error handling 2 (3 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4000}}}],"partialFingerprints":{"codehealthFindingId/v1":"a374b439c29b72ff2a0619a86f65238533830945b986414834ff56ce11108933"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.readThread (cognitive 33): CodexProcess.readThread has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 7, loops 4 (5 pts), error handling 2, ternaries 1 (2 pts) (nesting depth added 9). Of this number, 27 points are the body\u0027s own statements and 6 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c80a20b79bba9e06efcff7b93b8fc7644dca8f6040429ae91b4a46fc5c67d"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.handleServerRequest (cognitive 33): CodexProcess.handleServerRequest has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 15 (30 pts), if/else 1 (2 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2943}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ac9f9aacfcb2c6bb864f45bb636d5f96b1aa2d5b01868487a626d43a2a70dc"}},{"ruleId":"D2","level":"warning","message":{"text":"_BranchSelectorContentState.build (cognitive 31): _BranchSelectorContentState.build has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (24 pts), if/else 4 (5 pts), boolean chains 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":"apps/mobile/lib/features/git/widgets/branch_selector_sheet.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b6e8970085c4060804f5db34ccc2cc0a05d21709b6d30a56bd98d8956e24df"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler._handleAssistant (cognitive 31): ChatMessageHandler._handleAssistant has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 6, ternaries 3 (6 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e523e53dbd3da6f22583b0e744be3e4d65fd11c17a6e5656f1897107b85f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess._fetchCompletionEntitiesInternal (cognitive 31): CodexProcess._fetchCompletionEntitiesInternal has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (6 pts), ternaries 5 (6 pts), boolean chains 5, error handling 1 (nesting depth added 7). Most of this is not in the body itself: 3 of the 31 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 2572, a function literal at line 2622, a function literal at line 2605, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a5bbcf9a8363c5b7a37e1337b524653b506b22e82c0fa789957c3c7bd516f1"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.buildSessionSummary (cognitive 31): SessionManager.buildSessionSummary has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 16 (29 pts), boolean chains 2 (nesting depth added 13). Of this number, 29 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":"packages/bridge/src/session.ts"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cb401787e47de3c082b5c7577a6a8d3a798715339e87d0d0fa4caba38898fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.backfillUserUuidsFromDisk (cognitive 31): SessionManager.backfillUserUuidsFromDisk has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (3 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b9738e5a9af6525fee1831107b8400c6defed17f020b9316d1f6f14fb05a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.codexHistoryMessageToServerMessage (cognitive 31): BridgeWebSocketServer.codexHistoryMessageToServerMessage has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 11 (20 pts), if/else 6 (8 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5147fc951c64c6ae85cb59a3b810b10da4dab268f02e5c0d2f3aa5407bc42d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._extractCodexStructuredInputs (cognitive 30): ChatSessionCubit._extractCodexStructuredInputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 4 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":2966}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f7c4fd54e66164eaa723d4dbfa8d04b49c3a64f9b4813bd61f20f03e3af2e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerMessage.fromJson (cognitive 30): ServerMessage.fromJson has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 10 (20 pts), match/switch 3 (5 pts), if/else 1 (3 pts), loops 1 (2 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d2c221a8eee65c4ada01974963e8330e854e84ef405f7e3d34dd11d9bba976"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._routeProjectRequestError (cognitive 30): BridgeService._routeProjectRequestError has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (29 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5a8057ed462e1a2e8f99adef6486954fdcc52d32c3658d0fae7d66002c565c"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService.send (cognitive 30): BridgeService.send has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"7933dc18a891034f3e95525002e47a464c8df786473016b875f2ad608a9ec0aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler.handle (cognitive 30): ChatMessageHandler.handle has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d3af2a5ea5ea1a7126108dca5f21af7c30a2e477cb209b353e07a794fbca12"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler._buildCommandList (cognitive 30): ChatMessageHandler._buildCommandList has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 7 (11 pts), boolean chains 3, ternaries 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff370823736e1363c028b582ded5b9821be1470091fa7ecef3942c44a4c48fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._userEntryMatchIndex (cognitive 29): ChatSessionCubit._userEntryMatchIndex has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 11, loops 1, ternaries 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"49121620eab12b4af10bf7257efe0282803575742972b9eb9415e19822098d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"MockBridgeService.send (cognitive 29): MockBridgeService.send has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (9 pts), ternaries 4 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31e88bcffbfea5b0ad53846dcf453a3d0804634ac6bb00ae3e66176f5b72631"}},{"ruleId":"D2","level":"warning","message":{"text":"_AskQuestionLayout.build (cognitive 29): _AskQuestionLayout.build has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 2 (6 pts), boolean chains 4, loops 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":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"be920b289a14e7b1bb13f054ea1970091685a8501f7422fea3c05befb92a3ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"_InputTextFieldState._handleKeyEvent (cognitive 29): _InputTextFieldState._handleKeyEvent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7c6926e3228b7a1325e1996130daf0d383522e8c75193e40ea0fd88d68e1af"}},{"ruleId":"D2","level":"warning","message":{"text":"recent-session-search.transcriptLineMessageTexts (cognitive 29): recent-session-search.transcriptLineMessageTexts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 4 (8 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06291c2cee0c1ba529f5c61cf58244ed21a985f0852a9ba0f022e0b019409d5"}},{"ruleId":"D2","level":"warning","message":{"text":"codex-process.coerceElicitationValue (cognitive 29): codex-process.coerceElicitationValue has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5368}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1fb862adfc7b117fa6ba2d833362f740ebbaf90d99f4cc19ab94013c48b3e3"}},{"ruleId":"D2","level":"warning","message":{"text":"cli-args.parseCliArgs (cognitive 29): cli-args.parseCliArgs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (6 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":"packages/bridge/src/cli-args.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba32f09cdc361097ed797935d6018ea698321126331f43d08bfb37f042ad196a"}},{"ruleId":"D2","level":"warning","message":{"text":"skill-triggers.convertSkillTriggers (cognitive 29): skill-triggers.convertSkillTriggers has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, loops 3 (5 pts), ternaries 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":"packages/bridge/src/skill-triggers.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea0ef997a4d8801e5858986d39ee26c1fcfaad5773df2ba27945ef96c125ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.registerPastUserMessageImages (cognitive 29): BridgeWebSocketServer.registerPastUserMessageImages has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (5 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 12). Of this number, 28 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf79a38f1196ba71a126be295ff7743349c57d1842e5c397d7594e84d6669791"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUploadCubit.start (cognitive 28): FileUploadCubit.start has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 6, error handling 3 (6 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":"apps/mobile/lib/features/file_upload/state/file_upload_cubit.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfa0c386e6a4818f3ac701b52b7a350060f16f6878ed290c1df9049d4403d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.create (cognitive 28): SessionManager.create has cognitive complexity 28 (threshold 15). Drivers by points: if/else 69 (137 pts), boolean chains 39, loops 4 (12 pts), error handling 5 (9 pts), ternaries 6 (7 pts) (nesting depth added 81). To reduce it, split the body into named stages: move each independent 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 (SessionManager.create::processMessage) 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":"packages/bridge/src/session.ts"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4492f476896503757a5476d2b9ae25fa9bd199c9ce15ce529bb640a87f1fe804"}},{"ruleId":"D2","level":"warning","message":{"text":"skill-triggers.catalogFromCachedCommands (cognitive 28): skill-triggers.catalogFromCachedCommands has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (6 pts), loops 2 (4 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":"packages/bridge/src/skill-triggers.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e068e369e69ee384f1bd208bb28f21ffb0379f01feade803212fe038b8a7bb"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.collectGitDiff (cognitive 28): BridgeWebSocketServer.collectGitDiff has cognitive complexity 28 (threshold 15). Drivers by points: error handling 7 (13 pts), if/else 9 (13 pts), ternaries 1 (2 pts) (nesting depth added 11). Of this number, 16 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11274}}}],"partialFingerprints":{"codehealthFindingId/v1":"2499715dea7e2df1c56346169c08a4c44f7327ed21d8d4921072054445a25390"}},{"ruleId":"D2","level":"warning","message":{"text":"_MachineEditSheetState._testConnection (cognitive 27): _MachineEditSheetState._testConnection has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 5, error handling 1, if/else 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162c8b136e1591051f71a631dd85bf1f89f67879b772cc8295a74e0167315d5"}},{"ruleId":"D2","level":"warning","message":{"text":"_UsageSectionState.build (cognitive 27): _UsageSectionState.build has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 7 (10 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/usage_section.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca580fcdae0e594a0145b82dce1c121ee1a9589369370516aea1fcafcede0b8"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._clearTransportScopedRequestState (cognitive 27): BridgeService._clearTransportScopedRequestState has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 6, 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d154db42ba554c7d04d06448a038588e35f412018ed8818591cf1a8c90e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"recent-session-search.searchTranscriptFile (cognitive 27): recent-session-search.searchTranscriptFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 2 (4 pts), boolean chains 3, error handling 3, loops 2 (3 pts) (nesting depth added 8). Of this number, 22 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf629be90898d52530e7ce4a264fd9d42eddbc640441f2648829416e604a6dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._restorePendingInputMessages (cognitive 26): ChatSessionCubit._restorePendingInputMessages has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), ternaries 3 (7 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"912666cec2e4fd30757e0402d761fc01b122d66b071b8decfeccded687071963"}},{"ruleId":"D2","level":"warning","message":{"text":"_StandardBubble.build (cognitive 26): _StandardBubble.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (15 pts), loops 2 (5 pts), if/else 3 (4 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":"apps/mobile/lib/widgets/bubbles/user_bubble.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb714c5edee98e795811cc8ab24ba72b495323c640a4e783fcddcfeb1f5d317e"}},{"ruleId":"D2","level":"warning","message":{"text":"codex-recovery.rateLimitFailure::visit (cognitive 26): codex-recovery.rateLimitFailure::visit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (8 pts), boolean chains 5, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5faef1f7b04c0c3ea75cc0ee6175a3a07f5ad3ea9036acfd2d4312e7bd0c84d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.extractMissingFieldsStreaming (cognitive 26): sessions-index.extractMissingFieldsStreaming has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 4). None of this is in the body itself: all 26 points belong to 4 function literals inside it that branch (lines 1007, 995, 1042, \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"3322e12befa71b52e0a42b66a60855a4001fb91dee49beae2ad7d52c0475208c"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.getPinnedCodexSessions (cognitive 26): sessions-index.getPinnedCodexSessions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6, loops 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). Of this number, 22 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07109204e929e2e964bff3706c1ec5eebfaa051bb2514a5435334912dcb0bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.findCodexSessionJsonlPath (cognitive 26): sessions-index.findCodexSessionJsonlPath has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 4 (8 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 11). Of this number, 15 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a9bb366a308f10e7010976f74006cef44e38e5c91c81300e66b6dff8384735"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.handleTurnCompleted (cognitive 26): CodexProcess.handleTurnCompleted has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5 (10 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e891d8824d08fa77ea5952e99af4f9051d4b3e6ba637bd70623108a0762e7bd"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadStore.receive (cognitive 26): UploadStore.receive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 4 (10 pts), loops 2 (3 pts), boolean chains 1, 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":"packages/bridge/src/upload-store.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"8689153fa4f9a81f974ebb2a461f57cc530099bd0c9a72d8582dbb648a156431"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSetupCubit.request (cognitive 25): ProjectSetupCubit.request has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (8 pts), boolean chains 4, 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":"apps/mobile/lib/features/project_setup/state/project_setup_cubit.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f53a577dbe27ad80e3aa61651e7f1a0b785f99a86b8333d04ec0117f7211ef"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProjectSetupActionBody.build (cognitive 25): _ProjectSetupActionBody.build has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (10 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/project_setup/widgets/project_setup_action.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"382cf3e054831083d3ef7d69f7b4827f9229e890a46f0b45f98523a0e7cc8c97"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._clearPendingSessionActionFor (cognitive 25): BridgeService._clearPendingSessionActionFor has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc542d39cca0f6a5b433415ca086590d744abec119c3d9fe7fa869b6feaeedd"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.extractLastPromptFromTail (cognitive 25): sessions-index.extractLastPromptFromTail has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), error handling 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ec4137c3d064a43e6e6fabcdd542e9ee17ef874abbd10bdc4e9d60cfc9c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.handleStdoutChunk (cognitive 25): CodexProcess.handleStdoutChunk has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (9 pts), error handling 2 (4 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2842}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96fc13b6ad7e8b1651a8b4ef2a4c35d2791e33f9d9595e1f0f8da22f558b4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.preparePastHistoryMessages (cognitive 25): BridgeWebSocketServer.preparePastHistoryMessages has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (18 pts), if/else 3 (6 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ea74fcab9e63b97e97f10465ace0c2a45b2c05d379821a93442e551443d47c"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.sendCompletionPush (cognitive 25): BridgeWebSocketServer.sendCompletionPush has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 5 (8 pts), loops 1 (nesting depth added 7). Of this number, 23 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10960}}}],"partialFingerprints":{"codehealthFindingId/v1":"539b5bb1c99cd4328bddbb1b97a9f8a382cec8b0a3bf26b8c5a486f81bebe259"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.checkCliProviders (cognitive 25): doctor.checkCliProviders has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (17 pts), error handling 3 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 4). 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: 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":"packages/bridge/src/doctor.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e0a7c392bde13ba8378d8b7526d372025ecc8ce57a4673dc29cc768c014ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTransferCubit.start (cognitive 24): FileTransferCubit.start has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, error handling 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":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb100dd34f8c4893c75a283662dc5d913b0440fc3f34829a3673e9c5e113caf"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._showRecentSessionActions (cognitive 24): _SessionListScreenState._showRecentSessionActions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"15335ae83a1cab3750d9abc6658c518e1fb1c5fc80d6df004dd6ea31f3728d55"}},{"ruleId":"D2","level":"warning","message":{"text":"codex-service-tier.extractCodexServiceTierMetadata (cognitive 24): codex-service-tier.extractCodexServiceTierMetadata has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 2 (4 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":"packages/bridge/src/codex-service-tier.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab2dc73708060d0a0a1f0c41c004cfb0d755b35d4a38c0468220f1d3ce11048"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.hydrateClaudeIndexedEntry (cognitive 24): sessions-index.hydrateClaudeIndexedEntry has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 6, ternaries 6. 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc696b677f181bdccb934361fb2d7bd5b364a32bea68a88f912db8ac535a787"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexBackgroundTracker.observe (cognitive 24): CodexBackgroundTracker.observe has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2, 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":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1802aac48cf667d224657ea579c9cee73e1512024fabfaffad37285cc351f82"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.registerPastToolResultImages (cognitive 24): BridgeWebSocketServer.registerPastToolResultImages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (6 pts), boolean chains 2, ternaries 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c681313e470e60e52aa064de29700cc7ee18c981a3b196e4fe67932f8e68bde9"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.listSnapshotOnlyCodexSessions (cognitive 24): BridgeWebSocketServer.listSnapshotOnlyCodexSessions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (3 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":9970}}}],"partialFingerprints":{"codehealthFindingId/v1":"a628b27ec1587e97802ae9b42c702d0f77719ecb6e118fa370670883b8a318d8"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.prepareServerMessageForClient (cognitive 24): BridgeWebSocketServer.prepareServerMessageForClient has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 7). Of this number, 19 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11043}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f24439ffd64c7a3ad7cf53f0bee691346fa85894e53ec8a7ae481be138fe82"}},{"ruleId":"D2","level":"warning","message":{"text":"websocket.normalizeHistoryContent (cognitive 24): websocket.normalizeHistoryContent has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 6 (9 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cd1e658d82d1f04be01d881e22a373b883ec039d6b7b97cbaab378551e83c4"}},{"ruleId":"D2","level":"warning","message":{"text":"setup-systemd.setupSystemd (cognitive 24): setup-systemd.setupSystemd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 4, error handling 3, ternaries 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":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad466cee2d95281b7bfa1f2361f91ec933cb84146114c9cc54ef1c1cdee652d"}},{"ruleId":"D2","level":"warning","message":{"text":"_FileBrowserViewState.build (cognitive 23): _FileBrowserViewState.build has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, 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":"apps/mobile/lib/features/file_browser/file_browser_view.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d076dffef1a3b33d7a04ac71924217b88be9cd079dc418d797280c5779f6e9"}},{"ruleId":"D2","level":"warning","message":{"text":"_HtmlFilePreviewState._loadPreview (cognitive 23): _HtmlFilePreviewState._loadPreview has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, ternaries 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":"apps/mobile/lib/features/file_peek/widgets/html_file_preview.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4eb50f600ee88e676d07f38282c2ee456cd233a951d4cdd9fc18af506072c2"}},{"ruleId":"D2","level":"warning","message":{"text":"GalleryImageViewer.build (cognitive 23): GalleryImageViewer.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 4 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff6ba79cfb676208429f617e765691d51f8a905da5d4c69acd01c93443e314b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionFilterBar.build (cognitive 23): SessionFilterBar.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 4 (7 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a681bc11a2f8218d74ce90fe8d002338fe12bdad2966ae2fc96eabae1872e8e"}},{"ruleId":"D2","level":"warning","message":{"text":"_StripPrimaryAction.build (cognitive 23): _StripPrimaryAction.build has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 4, match/switch 2 (4 pts), if/else 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e698db66c157b8f71e13e877670a6f8bc1d0e8a52f45c00713f4fc552e09777a"}},{"ruleId":"D2","level":"warning","message":{"text":"DoctorPageView.body (cognitive 23): DoctorPageView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 4 (8 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":"apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd771a044fc710f1447c8e3f1b698fd40fd6bb5ddf644d7fe304f63f80a4b94"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown-images.scanTitleAndClose (cognitive 23): markdown-images.scanTitleAndClose has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3248d5db2ecdd858d41fcd871efc6c6aa519e74cf3e26a0be4004687ea2f6e90"}},{"ruleId":"D2","level":"warning","message":{"text":"codex-process.formatDynamicToolResult (cognitive 23): codex-process.formatDynamicToolResult has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 5 (7 pts), boolean chains 4, 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4880}}}],"partialFingerprints":{"codehealthFindingId/v1":"39049e871ce7fd83c1e77d5ca7f488b06e648d8db0cc1bebf98cc76cc67170ec"}},{"ruleId":"D2","level":"warning","message":{"text":"git-operations.collectFileSystemFiles.visit (cognitive 23): git-operations.collectFileSystemFiles.visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2, ternaries 1 (2 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":"packages/bridge/src/git-operations.ts"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4decff6e3d039b3cabfe6320f861d38c923a3b25d5e18bb3c1c1ff9617fd45"}},{"ruleId":"D2","level":"warning","message":{"text":"setup-launchd.setupLaunchd (cognitive 23): setup-launchd.setupLaunchd has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 4, error handling 3, ternaries 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":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"79186c22fd8cf7b415b202e6f7fef4c225dab9b351e08a79c466956f42f0314c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClaudeSessionScreenState._listenForSessionCreated (cognitive 22): _ClaudeSessionScreenState._listenForSessionCreated has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 10 (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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e38b6a5e70ef68103357fe287617b1366d382602e80710eabb2dc837d2f6fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"_CodexSessionScreenState._listenForSessionCreated (cognitive 22): _CodexSessionScreenState._listenForSessionCreated has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 10 (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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1210520b22fb1043b2395aada45cfa6229ef0771942540ad36c9d6d2a759d1"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineManagerService._mergeStoredMachines (cognitive 22): MachineManagerService._mergeStoredMachines has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 7, loops 3 (5 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b544e3e6b83562557a18a498122684d10ac1288d4e66780331dec4847ac9c4"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineManagerService.updateMachine (cognitive 22): MachineManagerService.updateMachine has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 9, ternaries 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5cc9238f83c328851c0f503bd20093cab1310f3e3a54079175f0e5f90e7651"}},{"ruleId":"D2","level":"warning","message":{"text":"_ToolApprovalArea.build (cognitive 22): _ToolApprovalArea.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 6 (8 pts), boolean chains 4 (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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6f652b191396cdf7305f39e6b12fd6bd92ea60b29ee24324c8da219855ece2"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.processItemStarted (cognitive 22): CodexProcess.processItemStarted has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 10 (19 pts), boolean chains 1, if/else 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf01b99aa39e29b2acbcd217afa65fa14f7a62ead1588bd870d8c352f81b741a"}},{"ruleId":"D2","level":"warning","message":{"text":"websocket.buildCodexHistoryPrefix (cognitive 22): websocket.buildCodexHistoryPrefix has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 2 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"30699dd6c370eba0b621f2f924a1e218215c5a5fa86626ef930b3fa0f9206082"}},{"ruleId":"D2","level":"warning","message":{"text":"runProbe (cognitive 22): runProbe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 1 (2 pts), loops 2, other 1 (nesting depth added 9). None of this is in the body itself: all 22 points belong to 7 function items inside it that branch (a function literal at line 54, settleError, a function literal at line 96, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tmp/verification/codex-app-server-effort-probe.mjs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8572e4f134e86649e2219edf837b5f52866bdd184c6bd1fc5e08ad226a0722c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUploadTransport.upload (cognitive 21): FileUploadTransport.upload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 2, 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":"apps/mobile/lib/features/file_upload/file_upload_transport.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f3e7e623451594051f69790868ef502ddf7b87d7650af2fbe26cdb86854f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"GitViewCubit._onDiffImageResult (cognitive 21): GitViewCubit._onDiffImageResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (7 pts), boolean chains 5 (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":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73b4448b24c14c302307e4d541bdc24ecdb205c291ac0425915fb0acd0eb6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffContentList._buildFileSection (cognitive 21): DiffContentList._buildFileSection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dff75492bfeba709c6835751a6745e81a829b2d163bf2215f89f7b1f254ad3c"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._loadPreferencesAndAutoConnect (cognitive 21): _SessionListScreenState._loadPreferencesAndAutoConnect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daef7e20703cdb993ccc8e424eb4d467f1ef0ff1ee5ac8cec837c34b55672af"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsCubit._load (cognitive 21): SettingsCubit._load has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (6 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/state/settings_cubit.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bbe6f46a944e944cc420bc62d77ed2a6532a220c5bf8ac428ffb52b72081f7"}},{"ruleId":"D2","level":"warning","message":{"text":"_CompactWindowRow.build (cognitive 21): _CompactWindowRow.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 9, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/usage_section.dart"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb23d38ad36448f2d5def3c1628ca5cca987e49c402e117195cd8e5186c59b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._markScopedRequestSent (cognitive 21): BridgeService._markScopedRequestSent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (2 pts), 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3516}}}],"partialFingerprints":{"codehealthFindingId/v1":"d784687bb6c7386b895fc16b2f34870742c99f188098d51034003f812debe313"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptHistoryService.matchesFilters (cognitive 21): PromptHistoryService.matchesFilters has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9 (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":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd79ae14f89a97971ee45620445577a66e5697650251a1596ed0648831934985"}},{"ruleId":"D2","level":"warning","message":{"text":"_ApprovalButtons.build (cognitive 21): _ApprovalButtons.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/approval_bar.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3f7e712193c338bf3a6d306e03f56a1f9dcfc3f6803b5a9c3e0e1be11c9acf"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultChip.build (cognitive 21): ResultChip.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 3 (5 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/result_chip.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b4a69a13b64a348fd682145712d49016761704629f97dd8669f37831533e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexSpeedButton.build (cognitive 21): CodexSpeedButton.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 4 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/codex_effort_slider.dart"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1580b16374b4bfc795054a542e7bbf721c9dd4825edd5df9367f4b92a01144d"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.parseClaudeJsonlChunksFast (cognitive 21): sessions-index.parseClaudeJsonlChunksFast has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, error handling 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0d5b8f46440520e982dcbbf4c65ded106c1f524e2cb754505439de1454cf60"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.appendImageGenerationResult (cognitive 21): sessions-index.appendImageGenerationResult has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12 (15 pts), if/else 4, 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d21a72fe8162946b2ab7e8db14165d442b3bcc6e39932b026ed3d60ed09a4c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.forkThreadAtUserTurn (cognitive 21): CodexProcess.forkThreadAtUserTurn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d917fe265010422a623c4f9684b6a7889fd3a7160359e222ed93a8c95626c7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.installToolSuggestion (cognitive 21): CodexProcess.installToolSuggestion has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (4 pts), boolean chains 3, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"058a51d831f1ca8323fc49470e0b3f30c1b7a9634744f04d7e1fc69897362a49"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.isSameUserInput (cognitive 21): SessionManager.isSameUserInput has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b437770803f6b3a25c26e29a25d857aafa0452f2ee49cd4f5678f9f02ac528b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.extractLastMessage (cognitive 21): SessionManager.extractLastMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 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":"packages/bridge/src/session.ts"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"6164b772f3b56f076a6747d36833bfeebc372d7f3e6bfe85d344a13c49e6d06c"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMediaSnapshot._prepare (cognitive 20): LocalMediaSnapshot._prepare has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (8 pts), error handling 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":"apps/mobile/lib/features/file_peek/playback/local_media_snapshot_io.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27a1ead0601e76ed10c384f628b316884290b542741ad425310907a29d81e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"FinderRevealCubit._reveal (cognitive 20): FinderRevealCubit._reveal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/state/finder_reveal_cubit.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb34371eb532392e6cc21fbb0ca455ae2782989363a07a76bd652e14fa94e7eb"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTransferDialog._shareReadyFile (cognitive 20): FileTransferDialog._shareReadyFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (7 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":"apps/mobile/lib/features/file_transfer/widgets/file_transfer_dialog.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1ba3cfa3e84d07f51bee18da0926695d3135301fb520e961e0cf64f12920e7"}},{"ruleId":"D2","level":"warning","message":{"text":"GalleryScreen.build (cognitive 20): GalleryScreen.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 7, if/else 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":"apps/mobile/lib/features/gallery/gallery_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"672bc00358ec6eadb6895ef0793951a8a72495ad03d92b0526261cf5b13889f9"}},{"ruleId":"D2","level":"warning","message":{"text":"_GitScreenContent.build (cognitive 20): _GitScreenContent.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (11 pts), boolean chains 6, if/else 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47fcf581806c1b6051701d760775224544a34779322940effd3262dfa5895db"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._buildScaffoldBody (cognitive 20): _SessionListScreenState._buildScaffoldBody has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 7, boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbc9735555cc3247d4e204c47fe2c673884f13ff67c01f9ebe0cd6431f5075b"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._buildBodyContent (cognitive 20): _SessionListScreenState._buildBodyContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ad110005a46d3279293ae999766d67ac647d818dc7cc6a12d5bd51eefa82fb"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProjectRecentSessionGroup.build (cognitive 20): _ProjectRecentSessionGroup.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), boolean chains 2, 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":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5a6dc9967636c95e44d94b93b359c87aff6cb662b08ff28aa949ee61340ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"_RecentAdvancedSearchSheetState.build (cognitive 20): _RecentAdvancedSearchSheetState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (7 pts), loops 2 (4 pts), boolean chains 3, if/else 3, match/switch 1 (3 pts) (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a5961469f73390bebee181e9ca413dcd1d8dd450adb31dbe7f4d6dc323f3de"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeUpdateStatusTile.build (cognitive 20): BridgeUpdateStatusTile.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 20. 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":"apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea98e6aca57b62457b96511577e0b294a6fb8e3bb47ca522a66cf608ee487b6"}},{"ruleId":"D2","level":"warning","message":{"text":"_ToolResultPresentation.fromMessage (cognitive 20): _ToolResultPresentation.fromMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1, match/switch 1, ternaries 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":"apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9676fdc553a22eda208579ae273e4c86d544a9415ae1023e80fb73c64b85c4e7"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewSessionSheetContentState._refreshModelCatalogs (cognitive 20): _NewSessionSheetContentState._refreshModelCatalogs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"888ae0d5c297ec32d3a692767bab71f2edad790ba5976e8b1b2d3d64a3faa93b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentSessionCard._formatDateRange (cognitive 20): RecentSessionCard._formatDateRange has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"618669488480c6c22db1d8dd9c9b106081933b43d0c3e1970fef85f54b4cd6ea"}},{"ruleId":"D2","level":"warning","message":{"text":"SlashCommandSheet.build (cognitive 20): SlashCommandSheet.build has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 6 (7 pts), boolean chains 3 (nesting depth added 6). 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":"apps/mobile/lib/widgets/slash_command_sheet.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5a2cd1a13d939153e596ebabeab828de77ddbffcee5273a6e9cd63bd1841a7"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk-process.matchesSessionRule (cognitive 20): sdk-process.matchesSessionRule has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (18 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"138c05628b1f83235411722637d7a1c78e977d0a76ba45422d8717fc2d002342"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.findSessionJsonlPath (cognitive 20): sessions-index.findSessionJsonlPath has cognitive complexity 20 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 4 (8 pts), loops 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3488}}}],"partialFingerprints":{"codehealthFindingId/v1":"103a334650ecdf6249284df858b49e792a0f5007548a002c7b9fcad4b674f925"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStore.extractInfoFromJsonl (cognitive 20): RecordingStore.extractInfoFromJsonl has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadfc4e2cd47f930db5ed1707092d1932884958c806843941b81762a3cea18f2"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.buildResumeSessionMessage (cognitive 20): BridgeWebSocketServer.buildResumeSessionMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11848}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e79f3548f4f778193232abfc5f4b1fa240417b7c8fa10779968c05db1f0fe9b"}},{"ruleId":"D2","level":"warning","message":{"text":"websocket.buildRecentSessionPredicate.\u003Creturned closure\u003E (cognitive 20): websocket.buildRecentSessionPredicate.\u003Creturned closure\u003E has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, ternaries 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"98303379460d63fda846d7591f733853a2a5ba65492db2705a5f76d5702e79a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._entriesEquivalent (cognitive 19): ChatSessionCubit._entriesEquivalent has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (9 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cc7939c79d296b06a141c8f44244f6b79c2e55fd0d2fa717e57a93dbe918a9"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatMessageListState._measureVisibleAnchor (cognitive 19): _ChatMessageListState._measureVisibleAnchor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, ternaries 1 (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":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aae09503e2eff1dabeb6e4b81fa4073c124b3676e8534812669aa78860e06e"}},{"ruleId":"D2","level":"warning","message":{"text":"_FilePeekMediaPreviewState._open (cognitive 19): _FilePeekMediaPreviewState._open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, error handling 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":"apps/mobile/lib/features/file_peek/widgets/file_peek_media_preview.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"031ce31fd89f9136656791773998c562d2ee6eb5117df785cff2f869ebae4f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewProjectSheetState.build (cognitive 19): _NewProjectSheetState.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9, boolean chains 6, if/else 3, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/project_setup/widgets/new_project_sheet.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a6c14145421d017396cf1fadb5fc32f81502225ecc2acba0f45a02d8e12a64"}},{"ruleId":"D2","level":"warning","message":{"text":"_InputTextFieldState.didChangeAppLifecycleState (cognitive 19): _InputTextFieldState.didChangeAppLifecycleState has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (7 pts), match/switch 1 (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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adae2c4c8402b6145716196ce1112970a2d6f3841914a0cd1f709c22b057208"}},{"ruleId":"D2","level":"warning","message":{"text":"_IOSImagePasteContextMenuState._show (cognitive 19): _IOSImagePasteContextMenuState._show has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/ios_image_paste_context_menu.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a78ecf58984f559b2164ae1ec15b7c2cd4cb8dbba195ebf69f994e5ce6c073"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewSessionSheetContentState.initState (cognitive 19): _NewSessionSheetContentState.initState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 2 (4 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c4ae817980912c043d0e05bcbf7198068887d92d6bc702c058e545202845e1"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorktreeOptions.build (cognitive 19): _WorktreeOptions.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 1 (4 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":4070}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5999b9eb93e2218763c8ffaf39467c959892179b7fb540368cbb94f3f033d64"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentSessionCard.build (cognitive 19): RecentSessionCard.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"615a8560b0b16f09af9baade5772a7607e70e4f587fd1442a53e3ccfdfd7d816"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkDiscovery.getReachableAddresses (cognitive 19): NetworkDiscovery.getReachableAddresses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 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":"apps/menubar/CCPocketMenubar/Services/NetworkDiscovery.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"801ef874cd3406a1b394163389665cf28901946a10e8c9d6421e3f8f9e508cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"worktree.parseGtrConfig (cognitive 19): worktree.parseGtrConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (6 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":"packages/bridge/src/worktree.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60a831629c4a64ab81c1e2eaa759fa96806a3043ff2f93664ad2dd8237b23c4"}},{"ruleId":"D2","level":"warning","message":{"text":"worktree.copyConfiguredFiles (cognitive 19): worktree.copyConfiguredFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d2dfe16fd2f30be5f008ab8e1bdbcf3b776cde9e0cc42732955bfe0a1995f"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.parseClientMessage::isPromptHistoryEntry (cognitive 19): parser.parseClientMessage::isPromptHistoryEntry has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (parser.parseClientMessage) 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":"packages/bridge/src/parser.ts"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bd1c21d8a1b0d9df2f674f78ee3ca575c1558bed3481f52125c194fb96bbc0"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk-process.backgroundTasksFromSdk (cognitive 19): sdk-process.backgroundTasksFromSdk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (6 pts), boolean chains 5, 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d858545c6d2f58c4e79b4ee758b7e808e3e26f027700422da20420d0849aac02"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.findSessionsByClaudeIds (cognitive 19): sessions-index.findSessionsByClaudeIds has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 3 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e009ce8dc57e87c354f87aacb3c189b0b461e20d19badc2c17aa117b5418396c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProcess.rewindBeforeUserTurn (cognitive 19): CodexProcess.rewindBeforeUserTurn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 1 (2 pts), boolean chains 1, 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd241f36f93bf8f57ffd6b634e7203fe7df926c4b8da2c5ee444e1900659a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.findAssistantUuidBeforeUser (cognitive 19): SessionManager.findAssistantUuidBeforeUser has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6f2675ff96b52a686e6acba62dc562c5c6de786e3cadf93433835c4829c699"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadStore.publish (cognitive 19): UploadStore.publish has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), boolean chains 1, loops 1, ternaries 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":"packages/bridge/src/upload-store.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"80767da38373261b9574aac31b0730edee981cd8c1df2fc4c86af1bcde801671"}},{"ruleId":"D2","level":"warning","message":{"text":"git-operations.listGitFilesWithArgsForClient (cognitive 19): git-operations.listGitFilesWithArgsForClient has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 7 function literals inside it that branch (lines 452, 418, 434, \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":"packages/bridge/src/git-operations.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"9852682171c204cdddafcb6a582f57e3e639bea0be7ea59df6124ede209d714b"}},{"ruleId":"D2","level":"warning","message":{"text":"websocket.countCodexUserTurnsInSession (cognitive 19): websocket.countCodexUserTurnsInSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3005a6b8b2b88a5c5c3e780c70ae1755daa6ab2f20ba408a38c2cb35fa73e70"}},{"ruleId":"D2","level":"warning","message":{"text":"startup-info.renderPairingInfo (cognitive 19): startup-info.renderPairingInfo has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (7 pts), ternaries 5 (7 pts), if/else 4 (5 pts) (nesting depth added 6). Of this number, 10 points are the body\u0027s own statements and 9 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/startup-info.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b997cd2dbf4636f0b7759a9ebeaaa03f43e02fb1ceea53c4c81fad945ec8bc6f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ExploreScreenState._pickAndUploadFiles (cognitive 18): _ExploreScreenState._pickAndUploadFiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, 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":"apps/mobile/lib/features/explore/explore_screen.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0f64a8cf988bdd4b09b75d2c674bfa7d1d7b27bde7308adecac524fb929384"}},{"ruleId":"D2","level":"warning","message":{"text":"_DiffBottomBar.build (cognitive 18): _DiffBottomBar.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 5, boolean chains 4, 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"3922475333a776018e86978dc7a906dcf46e84abf67d816e08eeefdd6d05b1ce"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffImageViewer.build (cognitive 18): DiffImageViewer.build has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 5, boolean chains 2, match/switch 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":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31357854fc25b0af0c02d4c183f7c79404941b764bf123e13b706eb1220849"}},{"ruleId":"D2","level":"warning","message":{"text":"_RecentProjectPickerSheetState.build (cognitive 18): _RecentProjectPickerSheetState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dc7c67d2b7cb32f4de067cae116d6e927c8006db17ca26782e650af7e6f263"}},{"ruleId":"D2","level":"warning","message":{"text":"SketchDocument.decode (cognitive 18): SketchDocument.decode has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (5 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/sketch/sketch_document.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"69258405b95c5d4569d8c362d812c3d31f4d5b98639e2dfa3804001688594fe3"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeService._sendRecentSessionsRequest (cognitive 18): BridgeService._sendRecentSessionsRequest has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 4, loops 3, if/else 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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69896eaa81ba0c2b6c21e5161f54dfca8fc9f6c9adc69dcf0e556da73ba501e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHandler._handlePastHistory (cognitive 18): ChatMessageHandler._handlePastHistory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (5 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"7928975db6bc0855b19b5af097dfba93245cdfe4d5354d62d893578bb85d693e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplayBridgeService._buildChunks (cognitive 18): ReplayBridgeService._buildChunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (3 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":"apps/mobile/lib/services/replay_bridge_service.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef6aca1b6345084c9bd08b6ed989b1d8cfca5ec960328868eb64003c62c93c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SshStartupService.startBridgeServer (cognitive 18): SshStartupService.startBridgeServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, 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. This shape REPEATS in the file: one other method here (SshStartupService.updateBridgeServer) 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":"apps/mobile/lib/services/ssh_startup_service.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"885a2e4197f9866345047f2b52c6b86f88b0e7ced7531874dc16f38b3d9404f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SshStartupService.updateBridgeServer (cognitive 18): SshStartupService.updateBridgeServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, 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. This shape REPEATS in the file: one other method here (SshStartupService.startBridgeServer) 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":"apps/mobile/lib/services/ssh_startup_service.dart"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e572831e998934556834e84fc641b3bf657c5bd129aa58a27517dce15ef7617"}},{"ruleId":"D2","level":"warning","message":{"text":"_MediaExportActionsState._export (cognitive 18): _MediaExportActionsState._export has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 1 (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":"apps/mobile/lib/widgets/media_export_actions.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb2d2df01a907278c72de14a214a96c588b35347ae1309c97ed449c06486916"}},{"ruleId":"D2","level":"warning","message":{"text":"_NewSessionSheetContentState._buildPage (cognitive 18): _NewSessionSheetContentState._buildPage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 4 (5 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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e99989fe89d7139a6531fa01cbef405d164abf84dfceb67071f06c90444394"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessError.errorDescription (cognitive 18): ProcessError.errorDescription has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeProcessManager.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5cdd03c1789fbb1d37b52baadcfffbec11d74b80f049a2b084b7c69584fa07"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingView.buildStepList (cognitive 18): OnboardingView.buildStepList has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Views/OnboardingView.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1ced4c82bea145fc2f405ecd5f49e71d55897532ff26b249d2cf8fbbfc03a1"}},{"ruleId":"D2","level":"warning","message":{"text":"SdkProcess.updateStatusFromMessage (cognitive 18): SdkProcess.updateStatusFromMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7cf8a2f1ea8056e130fddcbb183a1cfb9c46026057e98a0aa068290470f879"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.listRecentCodexThreads (cognitive 18): BridgeWebSocketServer.listRecentCodexThreads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 8). Of this number, 17 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10657}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf5c99dd7db1ac1626d7f57f471c92fb563233d9baf38ca27b56330371b0ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._applySessionContext (cognitive 17): ChatSessionCubit._applySessionContext has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, boolean chains 4, if/else 3, match/switch 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"55386385ef6d693f16efa4e9d99c61d30af750742796270d303584c0f4f36ef4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._rollbackFailedModeChange (cognitive 17): ChatSessionCubit._rollbackFailedModeChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5086a8173890825d69a4b483648ecc117f383f1201f53b1f36ea22ed4148b16c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatMessageListState._deriveData (cognitive 17): _ChatMessageListState._deriveData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, ternaries 2, 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":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d85eb7217b79c503e9c78132c0d80c2c3916a3d1060818c7babf09285fce7a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatMessageListState._findPlanFromWriteTool (cognitive 17): _ChatMessageListState._findPlanFromWriteTool has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec17d9f7e864840bb01d608b8582830cac2f6f1976ea48b17da3a1cdd9acb4d"}},{"ruleId":"D2","level":"warning","message":{"text":"_GeneratedImagePreviewScreenState.build (cognitive 17): _GeneratedImagePreviewScreenState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 3 (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":"apps/mobile/lib/features/generated_image_preview/generated_image_preview_screen.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46367931b8778bf6ae9cfe24bd8fc914f5a1e1c817618f9da02a615055a9ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._connectToMachineConfig (cognitive 17): _SessionListScreenState._connectToMachineConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1478ee5f744c03f1a33ac33d6b2b5880e0233a7743a8c9b69f5ffadf13e8f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceShellScreenState._notifyPresentationChanged (cognitive 17): WorkspaceShellScreenState._notifyPresentationChanged has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), ternaries 2 (5 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":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed89047cd498f28ce594483d798aa723cb066aa3a27cf2456613b696b1920bd"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineManagerService.addMachine (cognitive 17): MachineManagerService.addMachine has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b31b0a533154ef3e13aff835a0d57a22ce01568eabc1a49e44719aeebaefad2"}},{"ruleId":"D2","level":"warning","message":{"text":"DoctorViewModel.cliProviderCommands (cognitive 17): DoctorViewModel.cliProviderCommands has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd9b8a5f578c13d0c1bfb73618b43da7b300e31df1484ee9d289b02b213c531"}},{"ruleId":"D2","level":"warning","message":{"text":"index.relay (cognitive 17): index.relay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (6 pts), error handling 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f9f4d1a3cfaafd5a4f00d25ab0d8d85b83a8e015a8a63544008cb7ac709bba"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.nextCodexUserTurnUuid (cognitive 17): SessionManager.nextCodexUserTurnUuid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"133bc41e261e59ceb1a01266c0f8a18626e0b0c6ced34a15531dbe52e24421cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.retractableUserInput (cognitive 17): SessionManager.retractableUserInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 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":"packages/bridge/src/session.ts"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6164fc9c8c345fe1f4c4215355d734c7c3e4637ff51174dd05351ec87656af45"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.listRecentSessions (cognitive 17): BridgeWebSocketServer.listRecentSessions has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 6, if/else 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":9810}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d5df2a2d1421963e411b2d3d151042435f50d66d09b6195299fb287fb63937"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit._mergeEquivalentEntry (cognitive 16): ChatSessionCubit._mergeEquivalentEntry has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 2, if/else 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1088e60fe6d8844ba2d2f718810d7c021b26b98e354a99ec0a8b558c8faa634d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionCubit.setClaudeSettings (cognitive 16): ChatSessionCubit.setClaudeSettings has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 5, if/else 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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":2631}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1861f9b0c89da16d888195b0f34253505ee24154093fef8fcef68332d7f14a7"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatMessageListState._entryKeyBase (cognitive 16): _ChatMessageListState._entryKeyBase has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4d99d998c016f3a3fb000370b0f08c6e28ac981f7460ea41c1f2c79f3dbdfa"}},{"ruleId":"D2","level":"warning","message":{"text":"_SwipeStageDismissible.build (cognitive 16): _SwipeStageDismissible.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9, if/else 4 (5 pts), boolean chains 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":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4225df4e8f83faad76cbb7421f77834167a8b4b8356367819306af2aa65f063c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConnectedStatus.build (cognitive 16): _ConnectedStatus.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/settings_status_card.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a589724f3ba36826497320f794f4702cfdd8513d8067cdcb074087135e016e03"}},{"ruleId":"D2","level":"warning","message":{"text":"DraftService._loadAll (cognitive 16): DraftService._loadAll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 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":"apps/mobile/lib/services/draft_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71bb8b978d4c57fdb91dedaa88be89da34c02b5f5d54f469ff447a734a87a83"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillTriggerCatalog.fromCompletionItems (cognitive 16): SkillTriggerCatalog.fromCompletionItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/utils/skill_invocation.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed82dc8bd6bb48faccf149a3c2252cc4b0d5573a29c2961ca860a042a140ad8a"}},{"ruleId":"D2","level":"warning","message":{"text":"_AskUserQuestionWidgetState.build (cognitive 16): _AskUserQuestionWidgetState.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd77a5625d504516c84ac614904bd608e936287fd108d9ec3f2cbb11b0e2bde"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineEditDiff.build (cognitive 16): InlineEditDiff.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 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":"apps/mobile/lib/widgets/bubbles/inline_edit_diff.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2bc87bed4d15136cce126bd82f862f0360f5088fdc88ecb3cd05aef1450f88"}},{"ruleId":"D2","level":"warning","message":{"text":"_StreamingBubbleState._buildMarkdownBlocks (cognitive 16): _StreamingBubbleState._buildMarkdownBlocks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, 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":"apps/mobile/lib/widgets/bubbles/streaming_bubble.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f29dd58dd0c473870c99e6d2d7c93026136db341eddfd63dc8dee02b33d41eb"}},{"ruleId":"D2","level":"warning","message":{"text":"_DirectoryBrowserSheetState._onMessage (cognitive 16): _DirectoryBrowserSheetState._onMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 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":"apps/mobile/lib/widgets/directory_browser_sheet.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b498fb6609476558a39ebc8b89c9f5a0e9cfac611f287913a42326214a8d37"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatEntryWidget.build (cognitive 16): ChatEntryWidget.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 5, if/else 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/message_bubble.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5935c64db9a1393a5bf058f38eaa3abcb3fbf7269f1e4391ff5ff3b525365e"}},{"ruleId":"D2","level":"warning","message":{"text":"SdkProcess.createUserMessageStream (cognitive 16): SdkProcess.createUserMessageStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (3 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef82b2e0a1a99969f0b1488de4b2cc6b9f3fccfdf87c2e058ca3420e5f75a687"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.scanJsonlDir (cognitive 16): sessions-index.scanJsonlDir has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), error handling 1, loops 1 (nesting depth added 2). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb338424d8af94c881e06d45805568a86e7b07b9254f49b6322cdfc7020c6471"}},{"ruleId":"D2","level":"warning","message":{"text":"sessions-index.hasCodexUserMessage (cognitive 16): sessions-index.hasCodexUserMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f6c0c4cff52355404624517490560749429ef5aa83a819bbb5f9abb83c8e98"}},{"ruleId":"D2","level":"warning","message":{"text":"project-bootstrap.bootstrapProject::copy (cognitive 16): project-bootstrap.bootstrapProject::copy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-bootstrap.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7890a35556efbd90aeebc490f6ebdc981fad4613855ceb75deb6fc4705ee1cc3"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaStore.serveEntry (cognitive 16): MediaStore.serveEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 3, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"36115d47949e64969683dd9e913522576df8a3bf967e55f5f2609a1457bfa84c"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.prepareFileUpload (cognitive 16): BridgeWebSocketServer.prepareFileUpload has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), boolean chains 4, if/else 4, 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fa04a0d97bbe60efcd4f9204b6ae71e0a6e38b31ba2d5d218fb20ada56c987"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeWebSocketServer.rewindCodexConversation (cognitive 16): BridgeWebSocketServer.rewindCodexConversation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 3, ternaries 3, error handling 1. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"347632404252807fedc44689732e023b1f415bd2383a4cc800807134501c3f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"startup-info.getReachableAddresses (cognitive 16): startup-info.getReachableAddresses has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 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":"packages/bridge/src/startup-info.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5d478d46f5a877365ee9ba0e26abc832947fa55a0c295d09fddc28601492f7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.handleClientMessage: MethodTooLong \u2014 handleClientMessage runs 4238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4138 over it, 42.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8be57274a0d20d89afa6dae98c7f233d741050ee7ced57aa3a1937f78687fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BridgeWebSocketServer: ClassTooLong \u2014 8166 significant lines (blank, comment-only and punctuation-only lines excluded), 172 methods. The bar is 400 significant lines; this is 7766 over it, 20.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef53d6edadcfda42f7551318819e808490f42389d4295777c2f4b94349dad8f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/websocket.ts: FileTooLong \u2014 9018 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: BridgeWebSocketServer (1114-11903). The bar is 500 significant lines; this is 8518 over it, 18.04\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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ddfd5ab67e5d05b8fbefb3b697e7cf113cc6d6e60aace2a8652a7beea6d782"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BridgeService: TooManyMethods \u2014 303 methods. The bar is 30 methods; this is 273 over it, 10.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f25b25832709d48ce9c71d4df98ad20d1d8e42f6981635edb01e15b154e3b63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/messages.dart: FileTooLong \u2014 4993 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4493 over it, 9.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a417f301c5c2a0435f1843917fda6392f43d6733fc0caa010463aa3bce965136"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BridgeService: ClassTooLong \u2014 3925 significant lines (blank, comment-only and punctuation-only lines excluded), 303 methods. The bar is 400 significant lines; this is 3525 over it, 9.81\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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8f630a811578df6f28c8abe6553b45f37b3a63152808f2ff2081eea6473df7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatInputWithOverlays.build: MethodTooLong \u2014 build runs 915 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 815 over it, 9.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d93fe242a42f7ea9757237f32e7fe30653b4ae8f73ee0076ba190addbddff0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex-process.ts: FileTooLong \u2014 4308 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: CodexProcess (331-4261). The bar is 500 significant lines; this is 3808 over it, 8.62\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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bc0349907bb65bc89d040c6438c9215b762429e7ace09ea0366f5dfd47dbef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/bridge_service.dart: FileTooLong \u2014 4033 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BridgeService (40-5264). The bar is 500 significant lines; this is 3533 over it, 8.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa190c3063645e3f6ef44c826e570afe8e024bbca111a4251a0a60657e5d4e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CodexChatBody.build: MethodTooLong \u2014 build runs 775 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 675 over it, 7.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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6f2382ce504b44da1a9250f32dbd2ea566a020b74265dbea7bd2b946486aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexProcess: ClassTooLong \u2014 2826 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 2426 over it, 7.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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e984ebfcdefe49e0b76b43deacb6633df336d3922361e80c56b6697c2d2f675a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/new_session_sheet.dart: FileTooLong \u2014 3460 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2960 over it, 6.92\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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e98d6c1326dc0a3b7a6c843ba032ea4e73d24fd5bf3f0549500a78c2c60a3a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenBody.build: MethodTooLong \u2014 build runs 684 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 584 over it, 6.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d65adaf957589d13fbb7645539a05cd27b07668816c5b149838c3e69e7abb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerMessage.fromJson: MethodTooLong \u2014 fromJson runs 679 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 579 over it, 6.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06b412558e06b4fb38a83bec74751f3af30313dd996c94a4e6dc085cf3fac3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sessions-index.ts: FileTooLong \u2014 3206 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2706 over it, 6.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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0de9b699ae932065a6e863ee3fc1198618bd321909aa1b1d52bedca1e33090"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BridgeWebSocketServer: TooManyMethods \u2014 172 methods. The bar is 30 methods; this is 142 over it, 5.73\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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1da441d82540ac119c0869a0b1b2196074be76602b7b51e07d448f5f505bd7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSessionCubit: ClassTooLong \u2014 2232 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 400 significant lines; this is 1832 over it, 5.58\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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9a377356af7f53e7e5b3448d81d5c895ff5cd13889e5d70063b18bb2ccae35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mock/mock_scenarios.dart: FileTooLong \u2014 2526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2026 over it, 5.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":"apps/mobile/lib/mock/mock_scenarios.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb978d88a3c74dcad3fc9c5c1884d783f9d19fd596fac312972af2ef92fcff2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SessionListScreenState: ClassTooLong \u2014 1933 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 1533 over it, 4.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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efec70890761e499e5128e7f8d4af9457cec59ecc82eb49db1ecdae8ef6d5b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/session_card.dart: FileTooLong \u2014 2411 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1911 over it, 4.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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d9eacccf3961cfdd7507ab4e2f91727feb06b03836d878438942abfdd88db4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeContentState._buildContent: MethodTooLong \u2014 _buildContent runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5410aa73487e9e2de03bf3c09d2509215473383cd84b7ed3acfc7e6237ca6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeService.connect: MethodTooLong \u2014 connect runs 467 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 367 over it, 4.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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"104ef091a666062d00174d0e5b66b9e20d65ae6fefd661ba837c46efbf310418"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/chat_session_cubit.dart: FileTooLong \u2014 2284 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatSessionCubit (25-3088). The bar is 500 significant lines; this is 1784 over it, 4.57\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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66818c05cc0a8a03c7d65b54b97f7adaab787734111bf34691d6a038575d426e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session_list/session_list_screen.dart: FileTooLong \u2014 2211 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: _SessionListScreenState (263-2817). The bar is 500 significant lines; this is 1711 over it, 4.42\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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"784e8e9857a5edb483e18ece7b3455a56ba9e9a96a1d079ce1320167acb509fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/parser.ts: FileTooLong \u2014 2189 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1689 over it, 4.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":"packages/bridge/src/parser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9874e1f23c252da0d20e1ec59c3f4eaeb28bc10396d0aec5d5096269f0e4c110"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MachineEditSheetState.build: MethodTooLong \u2014 build runs 427 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 327 over it, 4.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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d35ca4bf7c3efd684afdb2b70edd7557f4085b9c664c268be72b4d03e3d574e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSessionCubit._applyUpdate: MethodTooLong \u2014 _applyUpdate runs 406 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 306 over it, 4.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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6597405ec8e8d42749780ba3c62dbaf1917b1fd94f80feb5d7bc526191a372b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatSessionCubit: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.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":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf08260099f6474206255cef527025bef6d49afae6b2adbbea69039f21b881f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RunningSessionCardState.build: MethodTooLong \u2014 build runs 377 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 277 over it, 3.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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaf7d7f449fe80b3dc4eec8e2fa50a7f605f646b0ec8800c89b2720b614acd6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _OptionsSection.build: MethodTooLong \u2014 build runs 369 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 269 over it, 3.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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6510add30a3869ecc0c351662430bd40fc8fc22f4067850f7c62b8f7d8bd063"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionManager: ClassTooLong \u2014 1468 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 1068 over it, 3.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd417baa101f1ac05f9675a15b18f74d61487a5c4c8ae060c166a4cd7d08163a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodexProcess: 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cce65ecd503f526299f97ac0d84a4452fe75016b59fc8160e0e0946091e44f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/session.ts: FileTooLong \u2014 1744 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: SessionManager (351-2451). The bar is 500 significant lines; this is 1244 over it, 3.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4beff732f9705b1cc702bfc730f1263279fdf954afc4e375adb9e894eab155f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex_session/codex_session_screen.dart: FileTooLong \u2014 1695 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1195 over it, 3.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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8f70e5b401ea8587014b6f9614d2452b4389dead8123adb16c351c642d76d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientMessage: TooManyMethods \u2014 98 methods. The bar is 30 methods; this is 68 over it, 3.27\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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c952f8eb3d494c0d8f53b8950d180ee62695363d66b8472fee2e8c8820ebb44a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: claude_session/claude_session_screen.dart: FileTooLong \u2014 1499 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 999 over it, 3.00\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d298ca7db34092e7b3cbee514fccb644f0f0cf14170cb8d00d1800dd0d27c56"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sdk-process.ts: FileTooLong \u2014 1483 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 983 over it, 2.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce6eaccc575d196b094b1155bd7653ce39a4cef79e1f8ec14caf5447501564b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/home_content.dart: FileTooLong \u2014 1459 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 959 over it, 2.92\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":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aba2b795c573a8faf8e121c24f1c949707fa4054492b4d11bf2fd22332f478"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NewSessionSheetContentState: ClassTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 649 over it, 2.62\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a531a7ec1c60954cf14ea74aaf158f31e3ce8d4af9aeefbcb1c7e20071025a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/chat_input_with_overlays.dart: FileTooLong \u2014 1274 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ChatInputWithOverlays (67-1404). The bar is 500 significant lines; this is 774 over it, 2.55\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":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1ae444a15b67dd35ce665e1d7f2bd6c9a3c36a1b9854650c462b42d84b4c6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.startServer: FunctionTooLong \u2014 startServer runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bb4ca3c216b8d5b4e8281c42fdc0fce9df54f4e8284ce81ba23ae73f01fc21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _SessionListScreenState: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4eeb01dbeacbbe883cfa59c0412cf481056ac2dfc97bda428e43ce514785e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceShellScreenState.build: MethodTooLong \u2014 build runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.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":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7e48349bf2b9e835a87b0fefffcc32b243c7c0e9bc0fb96aa92012db393537"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/store_screenshot_extension.dart: FileTooLong \u2014 1213 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 713 over it, 2.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95767c90f1f0fa78ba4f4f7085940efbe73262bbfe54414684b9ebac3f175d09"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClientMessage: ClassTooLong \u2014 941 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 400 significant lines; this is 541 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5225}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fe12fcf80a468d99c62d2264f7db054f8cddc797d3b944ad44f592e2ec10be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatInputWithOverlays: ClassTooLong \u2014 940 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 540 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"661a5a64eb0944b9f494e8ec451d2630a6ccb30d08d7197800e01d154f6f1755"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/chat_input_bar.dart: FileTooLong \u2014 1151 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 651 over it, 2.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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbeb61cd2a12babdb91f6cc780d06b04ce53e89028422eb695111d52982ec582"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/mock_preview_screen.dart: FileTooLong \u2014 1148 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 648 over it, 2.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":"apps/mobile/lib/screens/mock_preview_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"839972c562f7d22a846c58d7ce52feece0d454312881567adf60b04959901e52"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess.bootstrap: MethodTooLong \u2014 bootstrap runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1663fea7cb00d875abc3a1c1e0c16a686a81a4d2e49631c5864e8cd96ae455"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PromptHistoryService: ClassTooLong \u2014 879 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 479 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44451a11dcbede35c23737b9863211e32ab7ffcd5323c24658b545d47f6a1ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SdkProcess: ClassTooLong \u2014 871 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 471 over it, 2.18\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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d824e06943aeb81eb3912e9dc0711b70e196c7e7e2737f579b2df14068d513"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess.processItemCompleted: MethodTooLong \u2014 processItemCompleted runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3734}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3212ee4ae55726b8f2ed3d981e61f62ede96b3242359576b6fce62d6dbc965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/prompt_history_service.dart: FileTooLong \u2014 1052 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: PromptHistoryService (230-1387). The bar is 500 significant lines; this is 552 over it, 2.10\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":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1764554e17f3623ffa5e0a9e89bd09eea620ccfb65f201c2fb6b9179e3a51a28"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionManager: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010a3c4c8dd0e0b12636c45cc8a309f6b36190956e49bf418d93a9087f5218a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session_list/workspace_shell_screen.dart: FileTooLong \u2014 1048 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 548 over it, 2.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"440fd586a516196e1af58666f36cb71b7be3c73d25c76a2ef65c3202e45668b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SessionListScreenState._buildBodyContent: MethodTooLong \u2014 _buildBodyContent 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1142505c6d10654af29082011ca71ba7e460e7238922f40a8a5c628c11edb74f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessions-index.getCodexSessionHistory: FunctionTooLong \u2014 getCodexSessionHistory 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4354}}}],"partialFingerprints":{"codehealthFindingId/v1":"575f7fcf3a4ee187d6201617e349540ff5990f561e0f23c1456530de73b17fca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/session_mode_bar.dart: FileTooLong \u2014 1023 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 523 over it, 2.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab169287d08681737444b977006048a9010e65314dfb496912b27adccaf49aff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _CodexChatBody: ClassTooLong \u2014 791 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 391 over it, 1.98\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":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eb3b99a90702cf7766f8985f2f8934634a26167fcab8e74e54d4a74cd1598f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _NewSessionSheetContentState: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b739f25e7cee88ff378423123f543faf7bf0d2ea31923acaf33c132660435e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/git_screen.dart: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 444 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6d322cf42660b7ca48bd6810e2a12d7827b08a8fe4aa9a52c553a070834229"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NewSessionSheetContentState._buildPage: MethodTooLong \u2014 _buildPage runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadea469196ba1b7611d2c369a8bc76b735884debd303628fb1d692a5310fce8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecentSessionCard.build: MethodTooLong \u2014 build runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e41a861adaf4c9805de238cd3052c3c7e48d22304902d41da51b69db395a1f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess.handleNotification: MethodTooLong \u2014 handleNotification runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c806c580b3b722f604e334438db6531aea5220a9cc75aa1ec6435ed9b105128"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessions-index.parseCodexSessionJsonl: FunctionTooLong \u2014 parseCodexSessionJsonl runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d91b4209570f5dd546828115e1de9a18d17f2dab922c22ea181996ad497b11e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MachineManagerService: ClassTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 326 over it, 1.82\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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e4bd74114b65deadae2eec3569042c64a032dbe458a58ea189dc3848b46a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatMessageListState.build: MethodTooLong \u2014 build runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cd209da0aaa7395a034d5d5728f9b8f27c288d1f3f980e020fb96cc3bd5bb3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessions-index.codexThreadToSessionHistory: FunctionTooLong \u2014 codexThreadToSessionHistory runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"974b6907c8532ccbfd7a8842842fda3a92c475c7e3a00c45e06dcff510bece5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeContentState: ClassTooLong \u2014 710 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 310 over it, 1.78\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcdf390502c56f16b39d296ce4865d01af1f19342a07d8df288248052441dde"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatScreenBody: ClassTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 300 over it, 1.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"3828c9622d5ead2798a5e89de730599aaf35c416d44800bbe7331aedfb198e10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.buildSessionCreatedMessage: MethodTooLong \u2014 buildSessionCreatedMessage runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.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":"packages/bridge/src/websocket.ts"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ea18eefba42f4ca1d3b22d8d7634843d3d98b94176fce357917aea458ac298"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceShellScreenState: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20c20005155b325197391a95311ee384fd135ca7f97da95fd53ad101af05a31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PromptHistoryService: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"473f21eda70d9adf37529aa644ac465bb9b6b2a8f7f007db86f10ac7709953ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _MachineEditSheetState: ClassTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 290 over it, 1.73\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":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b00bc026953ce1c8d22e992a170034b7de132e6238554a97b465ca7827c8787"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatMessageHandler: ClassTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 290 over it, 1.73\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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec96cbeea913992af2a1ce574240fff0e7278206e47b46c690cff708c3d394a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockBridgeService: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"172b5cb5ec0450e11fe1cd763f801de4643fb3f4e20d1984a91b5b5c352c2ece"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServerMessage: ClassTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 280 over it, 1.70\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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b2bc56e1e633219bab4cad98ee845656e1887a6c3742bed5cf516f2b9b759c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilePeekContentState.build: MethodTooLong \u2014 build runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aee144402ba3069524f070aee190a93d10488a38514e5f5d7791ba3578563f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/chat_message_handler.dart: FileTooLong \u2014 846 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ChatMessageHandler (204-1117). The bar is 500 significant lines; this is 346 over it, 1.69\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca43c0a42e9821cd8a00001aec31c53bb435ff427c290b00287e16e45ddd7ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/machine_edit_sheet.dart: FileTooLong \u2014 845 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: _MachineEditSheetState (80-1008). The bar is 500 significant lines; this is 345 over it, 1.69\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7db68532fab8484396e3b636bdced9caec5704c55dcef63f311879337169ade"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsCubit: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/state/settings_cubit.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c77b4699d8eded577740281fddac8daf6d0db169560449fcff797914bdaaca4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess.handleServerRequest: MethodTooLong \u2014 handleServerRequest runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2943}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fec7e747f3c5db89ed09802ffb7ac78b3a444a47af5a3c44420e18cb5cc4c52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/chat_message_list.dart: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: _ChatMessageListState (256-1039). The bar is 500 significant lines; this is 329 over it, 1.66\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":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"269974ea692d4fece42a4e473e03989e62661fe89cf154a89e525ad6ec754df8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/supporter_screen.dart: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 328 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/supporter_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de65ffeb584e289df623c244f234b2b69d49000a68b4432695a8ca0bfeccef7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AskUserQuestionWidgetState.build: MethodTooLong \u2014 build runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc49bb7611f23f3f368d3e7b5978b16ffa59220f078d2037aa3ff291a871981"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RecentAdvancedSearchSheetState.build: MethodTooLong \u2014 build runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"632c2e02ab92a04bbc3e779c9feef7d55b4f23a81a44b01d915a55b71370555e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeService._routeProjectRequestError: MethodTooLong \u2014 _routeProjectRequestError runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bbe17c77a4b4d12c8f15c82a3871245039d0089fdeffe4aea313ce3b375cc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/mock_bridge_service.dart: FileTooLong \u2014 784 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 284 over it, 1.57\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":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"674752a4e52646908225fe57f7ac2e4116694dd5e118d28c42fad87759ebaaeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ToolApprovalArea.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"92563d96719a77e8f9189da53ca520285d16bad46bf2be63d5ae98393d7d29b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkspaceShellScreenState: ClassTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 215 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd12365951c445af079f140a50806ca7a6eee39e9155eaf22c24873edeb8a61"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitViewCubit: 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":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7370372a682a57726ca60a151f2af248c1b124a5779c8c5233dbae7a65487884"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SdkProcess: 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"2353280fdcccda255dedf3e4fc9299ee5f214cdf214b3d27c2c8ec902b771b2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatMessageHandler.handle: MethodTooLong \u2014 handle 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":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cffe3c38e2feab692e38e30ba47a933f8594ebfde4c4ca27da04eba8a1464c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sessions-index.parseFromChunks: FunctionTooLong \u2014 parseFromChunks runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf29c73525c9c43c56576bf791da8e9359ac814e21a24f6ee3522d9643c603e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/machine_manager_service.dart: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MachineManagerService (37-1091). The bar is 500 significant lines; this is 245 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f9045cf2d83178d90ee2c01445b1dcba6b5a3bba03fa5b7341d8d4a9fb23ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/git-operations.ts: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 239 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4cc38cf9a0b5764a16449edbfd56e9feeb1bce73cf8155f64f3bc1a3d043e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MachineManagerService: 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf3034011fa17363c8bce463e58640942f3ccf66b1ba4c0425528002f09db89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess._fetchCompletionEntitiesInternal: MethodTooLong \u2014 _fetchCompletionEntitiesInternal runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4649888551cfdcac6ec66ee42de8fd560dd2417c77571d7aed8958522f1d4f3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bubbles/ask_user_question_widget.dart: 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":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"232ee7d72ccbadc001ac22835db4df5e8f35dc89cfaf436ccce205aa35177d08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatMessageListState: ClassTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 174 over it, 1.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d909585a26542a72a9d0d76ef63d7207d4ecb3eb6c1438cc49df8ca9debe00"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PermissionPresentation.from: MethodTooLong \u2014 from runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b094b8865e832e381a36081735c5a8077e0033832c1da766a09896ef8811fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatMessageHandler._handleSystem: MethodTooLong \u2014 _handleSystem runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1778cd59cdc342160708eecd689550db43913ca5485771d65ee28fb0b0c202dd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitViewCubit: ClassTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 162 over it, 1.41\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c63653031bfb5a444e5ac44ed003989624872c70dcba79f7d6f0b52b2a15e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/ssh_startup_service.dart: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 200 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/ssh_startup_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd566b746f4ed4540a7b75e097addc41325e2746e60691160db4e26e02960e02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OfflinePendingSessionCard.build: MethodTooLong \u2014 build runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"743ae23ece2e3e2275ab1de40b03a544ffc63956bd41197877b2ba6b77f6989a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codex-process.createElicitationInput: FunctionTooLong \u2014 createElicitationInput runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5485}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb4bdd9eafe668a2ee692cbd824fce5645d3ff79a7f94cb7b2043a90c1c7d4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sdk-process.convertSdkMessage: FunctionTooLong \u2014 convertSdkMessage 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"853a5a17c1d7fd2e0b7173f4f91cc25bf783c5c5492e16f7201c268c349bcf0a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.rewindCodexConversation: MethodTooLong \u2014 rewindCodexConversation 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"24095c34f5aeebb23b1d6636738ac56f37c875b0fd2e2dee48f953a3de12024f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SessionListScreenState._buildScaffoldBody: MethodTooLong \u2014 _buildScaffoldBody runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d569f62dd4818b7c383898cf648b2425ef9b84af63e6138e9ca56307c208fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.constructor: MethodTooLong \u2014 constructor runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68a9b6e5378c6a49a7c9afd21ff4574bfb3696b2a5660491e86f03f369cfe2a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsCubit: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 137 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/state/settings_cubit.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"137c53f735e6b5d6513493dcac91fd0fa6605bdc299f04a1da2d05b77f5138d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SessionListScreenState._startNewSession: MethodTooLong \u2014 _startNewSession runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce41ec862047e65c93b435acafd65568ca2f00d5d75cfe669519c401dd95e1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/doctor.ts: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 166 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":"packages/bridge/src/doctor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa02fba957414db27a20086656859bfdfc60710854f72807a7651e9cc131521c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: setup-launchd.setupLaunchd: FunctionTooLong \u2014 setupLaunchd runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"72425a868100def76db7241d566719ab8a0b5eed16c62efafb337492272028f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/usage_section.dart: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 158 over it, 1.32\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":"apps/mobile/lib/features/settings/widgets/usage_section.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4323b26697348d314533e2f773798e9858b24901bb3f5ecf8ac1bb66512dec4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file_peek/file_peek_sheet.dart: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 153 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":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"367ac8b61a650dc39846ec10102210d135f37a86efdb95e030fff1b1182ba7de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bubbles/user_bubble.dart: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/user_bubble.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"170b54dd6a33d3f7e8a26f5da6297526be61f2609d47b2a5bba8a4fc615dda8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSessionCubit.sendMessage: MethodTooLong \u2014 sendMessage runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadfa568d9f2639e5d706cf737bf56a708e8aa8e55e7b5d5e91eb150b21d4451"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GalleryImageViewer.build: MethodTooLong \u2014 build runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b92e4232c84c7502fca3ef93e6a51b747c0f5937c22b67e87abd19526a4869d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TerminalAppSheetContentState.build: MethodTooLong \u2014 build runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/terminal_app_bottom_sheet.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa56d84fd3c7cf14ec26be920d47ab4b776c310c7482f3d4a30e74a8cca97b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionResumeCoordinator.resume: MethodTooLong \u2014 resume 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":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda66cc00751d6b36f4a4f00e22d9221f7ba5b82b4532962466b1238c29c45ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/diff_image_viewer.dart: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 129 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":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbe6dc6090488f20b62fca9687c9becd6c86106201ce7a64e3a6b521336c17f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _OptionsSection: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2794}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3f29664f014f1d726b43060cefce99a1e95265fb2eb9cf75a7f921799bbdba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionModeBar.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"685bf355e4bc2fb174633860a5089ee41766090447294b46f6ee80dafb680c65"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InputSettingsSection.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/settings/sections/input_settings_section.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"66baf70be95b83f03f143d02b48da048a27ed941c134f388cfb9c59da8ef235b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GitScreenBodyState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"93753b838a6a2c9717e3bdfae4436afedc87932a9aefc152a163d98b35d25dbf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BranchSelectorContentState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/git/widgets/branch_selector_sheet.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b5a9864e2f82a31684b7d553c9ae459acbef97c75f4a28ac685cacb7eea4ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme/app_theme.dart: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 117 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/app_theme.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cf30b51bd60db91481fd2e1b035c72992dc138a2c23becb89a2da145af64f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MachineManagerCubit: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/providers/machine_manager_cubit.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4c84aa7452a6d4ef151b91856281a21224d2ef25896e5c5d59dc284837dd0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NewProjectSheetState.build: MethodTooLong \u2014 build runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/project_setup/widgets/new_project_sheet.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2cbf692c349d5e1157eebac190762cf85f4fbb27ad1cd853376cabb1de69f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppTheme._buildTheme: MethodTooLong \u2014 _buildTheme runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/app_theme.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"05efea857fdfd46f3990ec36c9ac30a85928acf21d5279307fcb4ebd79eb0afc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MachineManagerService.checkHealth: MethodTooLong \u2014 checkHealth 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":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9c43ba42aad833549a3aef1d488865312882c6424337a2aca7e4eb65293e92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/upload-store.ts: 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":"packages/bridge/src/upload-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed84b55d30b8d944aecf87c24797fba133d4c12a2a3589e2393a70139cb6d1c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsCubit._load: MethodTooLong \u2014 _load runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/state/settings_cubit.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27a8cf031b7290e1c06e81e481ef60b1c6ab6a896600cbee4b2bdf2946311e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdkProcess.processMessages: MethodTooLong \u2014 processMessages runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"9157c164cd72392a89f567f72a77505c807a6d293920485bbf28549e53f5ae92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme/markdown_style.dart: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 96 over it, 1.19\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":"apps/mobile/lib/theme/markdown_style.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52de947b0cb64742abc8d0abd9f7441c6647b58437dad5c66719825c86515a00"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatMessageHandler._handleHistory: MethodTooLong \u2014 _handleHistory runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de7f9b488174554c684bc79de97d63a95a48c8e6cb0c1f53057b77f6a3ff453"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerMessageWidget.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/message_bubble.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2fc0ade9b365069708ec0046cea911e371446e1685e671d32f2547aa0e899b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/directory_browser_sheet.dart: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/directory_browser_sheet.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0d329a914cacd01ae37d8d02b87340d22f8264c1f2f4368416d93f292de482"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/recent_session_filter_sheets.dart: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed189cd5ecd46de32616b15dc2fbfba357b708b0512aeb5d7ff933acb32fa49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MultiPaneBreakpointTileState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/settings/widgets/multi_pane_breakpoint_tile.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5e646f19f044360c29828e75e1a88e334d9e7bcf07dac9dc087aeb53fc28de"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionListCubit: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/state/session_list_cubit.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"388c77e5dbc20030a5c343f3a7f9435dc3935311e445b0b3e2eeaf072e6dd463"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RecentProjectPickerSheetState.build: MethodTooLong \u2014 build runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf7e30347cafac4805f736985aee4c307e29feb8b7e93495b1c6677f690fb43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bubbles/assistant_bubble.dart: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 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":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a15acfd26157986d72694087d58b29bfb03b0006e56a868a125aa6a4ac33a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/git_view_cubit.dart: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: GitViewCubit (17-833). The bar is 500 significant lines; this is 70 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d3093e845b07435d7959060976ae8ca240928a2106f9623f12d65af3c3549b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.applyCodexCanonicalHistoryBaseline: MethodTooLong \u2014 applyCodexCanonicalHistoryBaseline 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"692ec77b3379aa0f815b9116bfa439e8b3f859d489804a36b3bfefac99fc4072"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/settings_cubit.dart: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SettingsCubit (30-790). The bar is 500 significant lines; this is 62 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":"apps/mobile/lib/features/settings/state/settings_cubit.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a97fbce211f67251c6dd7baba46db8c2274e119f5ba05ef24edf091a44ab9c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConnectedStatus.build: MethodTooLong \u2014 build runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/settings_status_card.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c432d5fcd191a546ea38b2dd7493c0d27253928f91bf4fc4d4bb31c69c599395"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CommitBottomSheetContentState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/git/widgets/commit_bottom_sheet.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fe303b4e6589aee3111d51c3182e21e4451cab9488ee09d0750184d2017ca8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PromptHistorySheetBodyState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/prompt_history/widgets/prompt_history_sheet.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51738128fd0ad17ba4e0f3ef6c99733143efddf198cc0b8d59af9751504c321"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConnectForm.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/session_list/widgets/connect_form.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa79a12b37fbc3aca825b8fb9772882d8f9c455d322906c8fb738f8a2f36fe56"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentsSettingsSection.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/settings/sections/agents_settings_section.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2057e90cadddbffa68751640432efb1422f585049dafdfbae7b0df67196bb684"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PlanApprovalArea.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d01bdfca143a3399592e90a9707f90ef1e9576835178d4f5d082d4775ed4f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionManager.rewindInPlace: MethodTooLong \u2014 rewindInPlace runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"9915771f2e07732bb556fb22f0f22ba25baeb6450d08d35e7937495412ae96b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GeneratedImagePreviewScreenState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/generated_image_preview/generated_image_preview_screen.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"63933333eb43dd0c77a84d0a3205b93e828030e12ec5b9b4aeb8fd3bd1c4217a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScreenshotSheetContentState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/screenshot_sheet.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"577c76bfad0beac326067595d3152e3fd97f154c95963eb5a2c9303b7cfc811a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: setup-systemd.setupSystemd: FunctionTooLong \u2014 setupSystemd 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":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"31faa60b287c6929dbeb174a89c0b17d3fd277a8d79a0929c46b62f644e5bc09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SetupGuideScreen.build: MethodTooLong \u2014 build runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/setup_guide/setup_guide_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6702350e4879faf3eeef7d4b0c1feaf958c2d3956817cdb97d27566fbfe1d3ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LandingPreviewScreenState._load: MethodTooLong \u2014 _load runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/screens/landing_preview_screen.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c526c1f38569e0601e744c329adb9748e5599270c8c7cfaa79b0bb236f238ccc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AddWritableRootSheet.build: MethodTooLong \u2014 build runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2644}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba3fddd183ec8f4535ac319ba2f0db3d95176d8b09e9109b770e2810e782f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/diff_parser.dart: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06\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":"apps/mobile/lib/utils/diff_parser.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e401aa8d47676787cf1c574d6c47d5c9b7ca5388a999c49f3705738f3a8a34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FileMentionOverlayState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"255c88f4880814985c6fa73917fb7a6615cd743dbf31166cdb1178a706936a78"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BridgeWebSocketServer.maybeSendPushNotification: MethodTooLong \u2014 maybeSendPushNotification 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10809}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27c50c5714965d42149e607aa093709534647aad6316e17604663c63a030880"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SessionListScreenState.initState: MethodTooLong \u2014 initState 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8568595b0fc6bab749840738df89cb81e7683a4979b0694a92c8264f372a6a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserHeader.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/features/file_browser/file_browser_view.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eab8b9eb488c407f72e0aa19fcaf47390b8d4276ac24f67633977f38be01a6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatInputBar.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"121436e0b972623b40492d2701ce6378de577725e985769e17c30c41d80dc669"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _AskUserQuestionWidgetState: 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":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e72fb9fc34984baf321e059c1320c1b792c148cd1634c1cfd10dcdf467c318b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _RunningSessionCardState: ClassTooLong \u2014 413 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 13 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efcdd93d75a78c09d6ed4a25d99e88476a8ad326b0a5d2c53c00c3c7b70fe90"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SshStartupService: ClassTooLong \u2014 412 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 12 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":"apps/mobile/lib/services/ssh_startup_service.dart"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60e0df5aed99431489d75b22f8653898a4243f02a16ff3ae74481faff4538e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PermissionRequestBubbleState.build: MethodTooLong \u2014 build 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":"apps/mobile/lib/widgets/bubbles/permission_request_bubble.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a836444c0a377076d1629e86836ab3dcd699707d93ebe860c00dbf0442efd143"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file_browser/file_browser_view.dart: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 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":"apps/mobile/lib/features/file_browser/file_browser_view.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9891c30b5c1f10debf2b1958c61a2215aadfd806b245848c79f8e4a4eca42aee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProcess.runInputLoop: MethodTooLong \u2014 runInputLoop 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8f348064ea42129e7c065f7c0f2a18d5e1b30f39cfe895cca4067258e6d2af"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (704 shared lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:607-1526 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:667-1684 \u2014 These two members are variants of one another: 704 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ed3b6bc9747cffdfeb28da0c92599a14164cf05352a253d37c0f043d399800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): apps/mobile/lib/models/messages.dart:5743-5807 | apps/mobile/lib/services/bridge_service.dart:3749-3813 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5743}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefab3070bfe2b8106dcb6bd5022a3f6aae1f3a7000e13c29f26b2a359f63d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:53-108 | apps/mobile/lib/features/settings/widgets/new_session_tabs_bottom_sheet.dart:78-176 | apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart:55-113 | apps/mobile/lib/features/settings/widgets/terminal_app_bottom_sheet.dart:120-308 | apps/mobile/lib/features/settings/widgets/theme_bottom_sheet.dart:40-104 | apps/mobile/lib/widgets/plan_detail_sheet.dart:38-95 | apps/mobile/lib/widgets/screenshot_sheet.dart:129-283 | apps/mobile/lib/widgets/worktree_list_sheet.dart:127-211 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"507464235e01559fb69b921e0a64d51653d8dd96a1483e11809caa1f071fbe5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:980-1033 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1054-1112 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1129-1174 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1236-1288 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1303-1341 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1356-1400 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4434aedb4a8e3768ed9f499070f8f880397cb5ed5a7c132f262d4881886d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:42-55 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:72-84 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:86-99 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:101-114 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:116-129 \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":"apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"64744ed86652d338148163b2dd45d54a7a2d8e0257b8280e017db201cf107645"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/mobile/lib/features/session_list/session_list_screen.dart:2554-2579 | apps/mobile/lib/features/session_list/session_list_screen.dart:2581-2606 | apps/mobile/lib/features/session_list/session_list_screen.dart:2608-2632 | apps/mobile/lib/features/settings/settings_screen.dart:294-342 \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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8a1a1a9fc743b862d8cf3fb17dd04625f499aac0e91cd7da7ba4855677fda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/mobile/lib/services/store_screenshot_extension.dart:663-690 | apps/mobile/lib/services/store_screenshot_extension.dart:818-847 | apps/mobile/lib/services/store_screenshot_extension.dart:963-989 | apps/mobile/lib/services/store_screenshot_extension.dart:1719-1753 \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":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98463a409d62405ad9916d5a6029b62abe1d94935d34d678853a3bb88904ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift:201-261 | apps/menubar/CCPocketMenubar/Views/OnboardingView.swift:44-120 | apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift:6-120 | apps/menubar/CCPocketMenubar/Views/UsagePage/UsagePageView.swift:44-77 \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":"apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfb6b36f018f48061cb49027bad86675f13310c2a9c26ef805e125d3075cc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): apps/mobile/lib/features/git/git_screen.dart:523-596 | apps/mobile/lib/features/git/git_screen.dart:598-687 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"323bf0d7ba4a5af3f65e0ff883f126d8e836871c3da620e3e38a4c328502bffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:193-255 | apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:277-355 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a4c1876bbad3c07a67d180006f5eadde8bbdf90b56c7e71711f8a268df1bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): apps/mobile/lib/widgets/codex_effort_slider.dart:398-439 | apps/mobile/lib/widgets/codex_effort_slider.dart:458-505 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"apps/mobile/lib/widgets/codex_effort_slider.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0fb02a463423600143e871351f2d5990ffaacd9abfe9af0d7881075ddf5104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): apps/mobile/lib/features/git/widgets/diff_content_list.dart:248-304 | apps/mobile/lib/features/git/widgets/diff_hunk_widget.dart:514-566 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b72e550f3d26de58f8e0c4a932f61bc462758ff8bbd93e7bebe8067a6671d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): apps/mobile/lib/features/session_list/widgets/bridge_update_banner.dart:25-71 | apps/mobile/lib/features/session_list/widgets/support_banner.dart:11-74 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"apps/mobile/lib/features/session_list/widgets/bridge_update_banner.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9661651d7b742ce34c7688edc2bda951e4abc81ae68f7392ac62ac1c4bf262dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart:209-268 | apps/mobile/lib/widgets/claude_settings_panel.dart:299-360 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd65a471d9d136357ea6b6f5e6333cef729eee41bdf4d5ce485d280a1245905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): apps/mobile/lib/widgets/session_card.dart:1833-1878 | apps/mobile/lib/widgets/session_card.dart:1897-1949 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9344a59b89a34806d7265a974a9a461703387c61f7e9397f230f425646a93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:465-517 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:507-561 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d6bad4005236b30487238b03d8988803ee4392493ee411d65fb1cc9298fab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): apps/mobile/lib/widgets/bubbles/image_preview.dart:62-110 | apps/mobile/lib/widgets/bubbles/image_preview.dart:124-171 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/image_preview.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19270620ecce27369455cceeef83a9944f04667a8e9ab6dc5ae650f7c2ace05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart:11-50 | apps/mobile/lib/features/session_list/widgets/session_list_empty_state.dart:11-63 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac1c0ffe469f90ca13ede35e56f081c462ea331cebe4b1f33948482fd5ffb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): apps/mobile/lib/features/session_list/session_list_screen.dart:2634-2670 | apps/mobile/lib/features/settings/settings_screen.dart:344-380 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"85470de8817e999fb7bffa340f38921ac4c244f25d38d0f667688756398bc1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:564-610 | apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart:308-356 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f949e8d236e3910cb26c6271fac944d5ba3d859a8941d913f23713216b47c82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): apps/mobile/lib/widgets/worktree_list_sheet.dart:225-259 | apps/mobile/lib/widgets/worktree_list_sheet.dart:273-311 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/worktree_list_sheet.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e1b0f40134857dd4f35a1fe78b9c5e5446742fb5f433fcfdd970492dfeecce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): apps/mobile/lib/services/revenuecat_service.dart:478-523 | apps/mobile/lib/services/revenuecat_service.dart:525-556 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/revenuecat_service.dart"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b413bd7853d90fc16141c46b11eff84eb926bc383db35f8cd6e584133bd6b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:417-447 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:453-489 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b843f04855bcc16574948addf55bbdcbddfee8097af45941e8045d844c1b05a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): apps/mobile/lib/features/session_list/session_list_screen.dart:2830-2881 | apps/mobile/lib/features/setup_guide/widgets/guide_page_bridge_setup.dart:177-230 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad139cc34a14db6a1d86694ef655e120d79b435ded77656b015dca285ab3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:126-146 | apps/mobile/lib/widgets/session_card.dart:1550-1569 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"732ca109283fdf6059f1f77ff029fa2d094cdcffda3856f41cf8cfb2dcfd98f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): apps/mobile/lib/features/session_list/session_list_screen.dart:2724-2750 | apps/mobile/lib/widgets/new_session_sheet.dart:1514-1545 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69eebb62cee753b35e2d89596c9fe9ebb742a47452805e1508fbbfc07dd303c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:549-585 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:602-641 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc2117e03d790a389f0c6446ef38c3244e2b629fe07667ab1fd75a13106f9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/mobile/lib/theme/app_theme.dart:24-51 | apps/mobile/lib/theme/app_theme.dart:57-88 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/app_theme.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b0086a144d67b9a9ea5540d2a9e0a42e1cdf70944029f62e1dac15f8370531"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:338-360 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:395-425 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16131aa6f2cccd4eb9444a6f29f13258ce68dbb3541cc2cc2fa09625d75b7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/mobile/lib/features/git/widgets/diff_stats_badge.dart:11-48 | apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:773-800 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_stats_badge.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e720b5888b679df461c7bfb65f6a3f44c2762d92d10998c0061757b3e13895a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): apps/mobile/lib/features/chat_session/widgets/reconnect_banner.dart:10-47 | apps/mobile/lib/features/session_list/widgets/session_reconnect_banner.dart:9-38 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"apps/mobile/lib/features/chat_session/widgets/reconnect_banner.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"14216a8e17231e1042d5629f768170986cde48c0791da5da2a7e94beb2d000e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): apps/mobile/lib/features/generated_image_preview/widgets/generated_image_chat_group.dart:311-340 | apps/mobile/lib/features/generated_image_preview/widgets/generated_image_preview_page.dart:45-73 \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":"apps/mobile/lib/features/generated_image_preview/widgets/generated_image_chat_group.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0440e8b7bdabbd453896915bf8fcfaa853a2b851de7e728bbdec3c38e22172"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): apps/mobile/lib/features/file_peek/widgets/file_peek_model_preview.dart:261-289 | apps/mobile/lib/features/settings/auth_help_screen.dart:213-245 \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":"apps/mobile/lib/features/file_peek/widgets/file_peek_model_preview.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a6a54f5f1c8e169a837ce5a0128326b7cc5d6a44b91f7dac35e2bd2277a59d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/mobile/lib/features/github/state/github_selection_cubit.dart:19-34 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:13-26 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc1ba0eafb2d75ccd0e2b4c0714efbed979ee93082cc2a140f02e7724f672e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 23\u002B corresponding lines): apps/mobile/lib/widgets/chat_input_bar.dart:272-298 | apps/mobile/lib/widgets/chat_input_bar.dart:306-334 | apps/mobile/lib/widgets/chat_input_bar.dart:341-369 | apps/mobile/lib/widgets/chat_input_bar.dart:377-409 | apps/mobile/lib/widgets/chat_input_bar.dart:416-445 | apps/mobile/lib/widgets/chat_input_bar.dart:525-547 | apps/mobile/lib/widgets/chat_input_bar.dart:1414-1442 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d606f775f78add312551075774a354819d5c3432169d0bae89c2a9ed5fc25c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/mobile/lib/features/github/state/github_selection_cubit.dart:49-63 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:38-52 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5f97043e7eb70bb0965be3cce8dfeefba2233647539c0cb483011d1cd38f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): apps/mobile/lib/features/claude_session/widgets/rewind_action_sheet.dart:142-165 | apps/mobile/lib/features/git/git_screen.dart:689-716 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/widgets/rewind_action_sheet.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b009ba23c626e32ff66c36825e41586fb1a00b4f84bcc85caa4678255f8b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:283-298 | apps/mobile/lib/widgets/session_card.dart:1613-1631 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f62eb87c0b58cf9e4bdeaeb9891dc0042090dc88f80f147c8819d76a9ee929b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:196-217 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:213-238 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07e61179ea25ec7b23b5468514ed24bb2e1c91508d67f82a34902c0e09f5f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): apps/mobile/lib/services/bridge_service.dart:4234-4260 | apps/mobile/lib/services/bridge_service.dart:4543-4570 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":4234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afaf151751aaa5061cffd87e913ccab65fa9db58f6eb8820d8a32a59bde6ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:148-164 | apps/mobile/lib/widgets/session_card.dart:1571-1584 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1502559cb3a7766a33036b06861d9014026a788e00c548429963c9d619ba0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): apps/mobile/lib/widgets/chat_input_bar.dart:1087-1108 | apps/mobile/lib/widgets/chat_input_bar.dart:1110-1135 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"139ca9bfbc62cf1e9f34fc65e0c12bf511ec48ee2fe541a443a962dd87630c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): apps/mobile/lib/services/bridge_service.dart:3444-3466 | apps/mobile/lib/services/bridge_service.dart:4417-4436 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ceb1ec8274128964094422fb39e639c8719f062c28b77d415a1efa79347571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/mobile/lib/features/github/state/github_selection_cubit.dart:92-105 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:76-88 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e2efe448e9084087799f29e27621f9b94080b1d3373b51f270a20bc9911279"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/mobile/lib/services/bridge_service.dart:3923-3947 | apps/mobile/lib/services/session_runtime_store.dart:189-211 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3923}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4c65362c2eb7c4351e2272cfbd2fa9fda2e5fa00bad006b7061db46ca4f60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:195-211 | apps/mobile/lib/widgets/session_card.dart:1596-1611 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c37c19df6177afa18767b783aa567d3f3d2dd48591f73b3e9e6b35ad049b895"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/mobile/lib/features/session_transcript/session_transcript_screen.dart:167-189 | apps/mobile/lib/widgets/directory_browser_sheet.dart:723-743 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_transcript/session_transcript_screen.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8db578e9ac3d315b29c465de44a66540c7e6a78b2d05ef9960fbc96eb3221f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:924-939 | apps/mobile/lib/features/git/widgets/diff_image_widget.dart:427-442 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b930bedb829b261200c5fa1538e467973016027eba4310cdd4d249615a2127c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/mobile/lib/features/session_list/widgets/home_content.dart:1838-1858 | apps/mobile/lib/widgets/bubbles/tip_chip.dart:21-43 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb45d4c71ebff6910bcd17f29a485f959038a2af31b5e8b3d502d6e479c3570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart:1095-1113 | apps/mobile/lib/features/session_list/widgets/session_list_loading_view.dart:41-67 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fac99a144cc069c95730f723824a8e88162af18220593f35be72d77aec28fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart:283-299 | apps/mobile/lib/widgets/claude_settings_panel.dart:408-432 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4058822d26ddab4f38ee7ef5bdb3dcc700b15573919ccab0dc910c8ee49465a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/mobile/lib/features/git/state/git_view_cubit.dart:613-628 | apps/mobile/lib/features/git/state/git_view_cubit.dart:650-665 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"808893243c7e7f5d790449d4bdca9ad2120c2ab6ce9becc744d03268b1272494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/mobile/lib/services/prompt_history_service.dart:1279-1291 | apps/mobile/lib/services/prompt_history_service.dart:1293-1305 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8c7e4d2b293257e7d5aa0e31a8392a746d337730efcaa96b254b6d59822790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): apps/mobile/lib/models/messages.dart:5452-5471 | apps/mobile/lib/models/messages.dart:6165-6184 | apps/mobile/lib/models/messages.dart:6202-6219 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5452}}}],"partialFingerprints":{"codehealthFindingId/v1":"67356042489324012173e3085be9086dbd97a015aa4d6dafffa52a0058ac097f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): apps/mobile/lib/features/git/state/git_view_cubit.dart:517-530 | apps/mobile/lib/features/git/state/git_view_cubit.dart:532-541 | apps/mobile/lib/features/git/state/git_view_cubit.dart:555-564 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc350a738da72a70f7c7f519ab10987559aa4afeec1110e248afe72b185abca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/mobile/lib/features/git/widgets/diff_comment_widgets.dart:214-231 | apps/mobile/lib/features/settings/widgets/settings_tiles.dart:84-102 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_comment_widgets.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b923bbdebcdfa5dfe9228a7e102d2f2a113cda1b0cee2eb085326f3b9b7dd0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:376-401 | apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart:64-81 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f46eff2c4113830ace7b1560ba059732b037ea34d0ca82a6cb17af5027e4318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/mobile/lib/features/chat_session/widgets/status_indicator.dart:136-150 | apps/mobile/lib/features/chat_session/widgets/status_line.dart:28-42 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/status_indicator.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5247d0d00ff6b55d3f82187d9f617be5dafe16fd85b55e44f7e5d9a9d0e08c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/mobile/lib/features/settings/widgets/prompt_history_section.dart:372-377 | apps/mobile/lib/features/settings/widgets/prompt_history_section.dart:420-426 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/prompt_history_section.dart"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c30425a29037800781d37449759fe2050395ed5f4525f89fc59f5fa7c34834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart:17-26 | apps/mobile/lib/features/session_list/session_list_screen.dart:1248-1261 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef4bfa34f182e0a2bf375204c35d3067da128a63c29dd30355cc5920a060910"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart:582-590 | apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:154-163 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79416c6f5dd1c607d618f59fb81576fca5e9ca62d26a4161efe35f7ac7abccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): apps/mobile/lib/services/bridge_service.dart:4849-4869 | apps/mobile/lib/services/bridge_service.dart:4871-4879 | apps/mobile/lib/services/bridge_service.dart:4943-4951 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":4849}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e69e526f56a2bd86c807f509d6f6d7b8a1af1c247fcaa1622c7c7de768eedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/mobile/lib/widgets/bubbles/thinking_bubble.dart:32-46 | apps/mobile/lib/widgets/session_card.dart:2570-2586 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/thinking_bubble.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d664392a79d0a303c728586d8049433026d95276613033d73b8dda7d787aa909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart:124-144 | apps/mobile/lib/features/file_peek/widgets/file_peek_video_controls.dart:413-430 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2161740748be283b59b5e727c44515d5c3cde6e5a6d51d0cd54ea87b193414"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/mobile/lib/services/ssh_bridge_tunnel_service.dart:23-35 | apps/mobile/lib/services/ssh_bridge_tunnel_service.dart:37-49 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/ssh_bridge_tunnel_service.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e92f738db13bbd851fb2ad3a9b8a7e424df00536e3037ca6f1bba0ddb93f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/mobile/lib/features/generated_image_preview/widgets/generated_image_details_panel.dart:131-148 | apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:903-916 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/generated_image_preview/widgets/generated_image_details_panel.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4b86ce7c7aaaa92808abee5f2fc9f9adab133968281db350d1a6a65b970919"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/mobile/lib/services/bridge_service.dart:1373-1384 | apps/mobile/lib/services/bridge_service.dart:1637-1649 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2e6e0dd5118c0a2a4cb356ad7e2143df67ab365eae8090d1b49529c43d63aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart:1682-1692 | apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart:1026-1038 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"620b28b036980a7280e028215d9b496179d1035b70803c4e5c1804028ec96f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/mobile/lib/models/messages.dart:656-665 | apps/mobile/lib/models/messages.dart:716-727 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b109d9b89e3cfec521147414b5de873315027e4fbd866995c386be6bac8ff8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): apps/mobile/lib/features/git/widgets/branch_selector_sheet.dart:290-307 | apps/mobile/lib/features/settings/sections/agents_settings_section.dart:180-194 | apps/mobile/lib/features/settings/supporter_screen.dart:705-721 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/branch_selector_sheet.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4c3caeccae253452db644d3d30f6d258e3807702a8c4f5e4e1fea75f7fbe4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/mobile/lib/models/messages.dart:1740-1749 | apps/mobile/lib/models/messages.dart:2296-2304 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7c8c3d57cac7ec911c2a307ab0e08ca93847abc5649c8815d43058389a6a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:449-463 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:491-505 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"0774dca59de1c268ae00f3ae5adbb354a59d9c5fa2e300b34bb93fc3f9fdf751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/mobile/lib/models/messages.dart:6186-6200 | apps/mobile/lib/models/messages.dart:6221-6230 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":6186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6e8d37c67487e4bc3092b0ee7a4e9c666aed9f6e8d34e5b0b25957edef9621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/mobile/lib/widgets/bubbles/error_bubble.dart:508-533 | apps/mobile/lib/widgets/bubbles/error_bubble.dart:547-567 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/error_bubble.dart"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c6c781b50a5d13b59a7a0c351669c31478e6855d5d7a4e8fd528381505f8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/menubar/CCPocketMenubar/Services/BridgeClient.swift:33-43 | apps/menubar/CCPocketMenubar/Services/BridgeClient.swift:57-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeClient.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1782a126ba08c8936048a9699cd49bf78d4806d5635abcf44a989d7694a49dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift:285-296 | apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift:298-309 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a77aa2c1fc6f8ace2d04c196c3ae954c9e86706f08a2ef38422f07388e5653e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): apps/mobile/lib/features/git/state/git_view_cubit.dart:630-638 | apps/mobile/lib/features/git/state/git_view_cubit.dart:640-648 | apps/mobile/lib/features/git/state/git_view_cubit.dart:667-675 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5463b5f96e2624bd383792814aa71ade51601dd099e01b036e47f3f34fbdad67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/mobile/lib/features/explore/state/explore_cubit.dart:84-98 | apps/mobile/lib/features/explore/state/explore_cubit.dart:100-116 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/explore/state/explore_cubit.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85b82f070eb50ce440aa59d0527bf2ae94745386fd0728ea9a3ebe097304e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/mobile/lib/features/claude_session/claude_session_screen.dart:160-176 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:172-190 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d4604b2182d1d53ac1e95941f41adcb3b5bfab86d1d91101b353d52aa85f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/mobile/lib/widgets/bubbles/error_bubble.dart:293-306 | apps/mobile/lib/widgets/bubbles/error_bubble.dart:625-635 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/error_bubble.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d5fba7e86c39ab386b2c0e873d2ee5abb01a130ec4cde56492fa8a829de1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/mobile/lib/features/file_peek/file_peek_sheet.dart:409-418 | apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:407-416 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d51022d89a5e639643dde08d2845ad56d741646f51d5906a89b459f595f5275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/mobile/lib/features/session_list/workspace_shell_screen.dart:606-614 | apps/mobile/lib/features/session_list/workspace_shell_screen.dart:616-623 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96fc178103f42cdb3759a98746e7036b17294b190a6582ff38785f05526c249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/mobile/lib/services/machine_manager_service.dart:1058-1070 | apps/mobile/lib/services/machine_manager_service.dart:1072-1084 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"a276290001caab97de9f154a120a857d570ae9030537fa0ba2c92e151eebd803"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/mobile/lib/features/git/state/git_view_cubit.dart:737-745 | apps/mobile/lib/features/git/state/git_view_cubit.dart:760-768 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e78fee51d7c36672000fe11a71c90ac3ef369572a35b14f47eddf8419b0287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/mobile/lib/widgets/new_session_sheet.dart:1503-1512 | apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart:3038-3046 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79985dd59448f97ff7e1c27a744b6686d92374d2db23d2f376006e1bd59b98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:220-229 | apps/mobile/lib/features/chat_session/widgets/status_indicator.dart:152-161 | apps/mobile/lib/features/chat_session/widgets/status_line.dart:44-53 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da3c967479140597454406747372da999f07e043cfdecc7499833446fc6f1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): apps/mobile/lib/models/messages.dart:6247-6258 | apps/mobile/lib/models/messages.dart:6282-6295 | apps/mobile/lib/models/messages.dart:6371-6382 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":6247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82b5388a687df4947f011c5dca69de19510d00d828a99c9eac2583cc3c6b988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/menubar/CCPocketMenubar/Views/OnboardingView.swift:479-486 | apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift:122-129 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Views/OnboardingView.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bba1c0c455ae5bac2eff82b65c82ff263e79a20251e415b12918e2773ed4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): apps/mobile/lib/models/messages.dart:5425-5438 | apps/mobile/lib/models/messages.dart:5835-5848 | apps/mobile/lib/models/messages.dart:5850-5863 | apps/mobile/lib/models/messages.dart:5876-5891 | apps/mobile/lib/models/messages.dart:6055-6066 | apps/mobile/lib/models/messages.dart:6133-6146 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5425}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f106dbdbe740a9179ba0e5c7485f1729b4e7e42534fdad6b9d7a37346c3c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/mobile/lib/services/replay_bridge_service.dart:302-314 | apps/mobile/lib/services/mock_bridge_service.dart:1037-1046 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/replay_bridge_service.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a7755c64449431da24f8faf5cab510357f80393c3b3e1d12b3952336716b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/mobile/lib/services/mock_bridge_service.dart:542-556 | apps/mobile/lib/services/replay_bridge_service.dart:276-289 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/replay_bridge_service.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb541338655d2c98f2e3595b261fea3eb40af51be23200a919844b7c0d0508a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/mobile/lib/features/git/state/git_view_cache_service.dart:66-73 | apps/mobile/lib/features/github/state/github_view_cache_service.dart:31-37 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_cache_service.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c7191857dccf20cc500516996aa38889f06d1b70290756108c266b82fceb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart:210-220 | apps/mobile/lib/features/file_upload/state/file_upload_cubit.dart:383-390 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9393c34ac0d994afab4bc4c377d8e9b59cbfcc073da9a12f607e7e8b858b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/mobile/lib/features/github/state/github_selection_cubit.dart:80-81 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:67-68 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0677dbf61f09bed290ee49999a6c706c1cf3485eae2dd2bcdf2b5b443a6a19e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/mobile/lib/models/input_delivery.dart:15-20 | apps/mobile/lib/models/skill_trigger_style.dart:19-24 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/input_delivery.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d21b3ef47c844efb3010dd252cadf5b9b0ac93473ae4df032eca9c57002b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:300-305 | apps/mobile/lib/widgets/session_card.dart:1633-1638 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5afbf3981a8c3f5ece3142b2aee284aff99ac0401121c4e807e20b2de3f76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (115 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1024-1138 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1126-1240 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1024\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70798f8d90a6659c05e98d505e526de0c9e5f0030b380d7e1f510cb8e7f61f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (100\u2013103 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:747-849 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:826-925 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:747\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac54b5a2ea9f4ef9b452f315724756c6b1e99465f86f1379de0d91e12964b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:966-1022 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1068-1124 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:966\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5239e393ec27f01e486537b16f159f7c38c5b9e9b24da3764b6febb10d07fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:698-741 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:761-804 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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, \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:760\u0060 calls \u0060_hasSentUserMessage\u0060 and \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:697\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25e868cc4e2a5aaf69d25ad3810d28cb3e57eb70462312e2044395df23c1b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): apps/mobile/lib/theme/app_theme.dart:512-553 | apps/mobile/lib/theme/app_theme.dart:558-599 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/theme/app_theme.dart:512\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/app_theme.dart"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa707566c987d9e2ff613b09205ab524854bc08d0cab3ed53f50715bec9f4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:635-675 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:693-732 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df15aa602fbddcc711f8a148ab3cd73b0c5d8dc2b67b9002f2eb6d4796976b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1153-1192 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1276-1315 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1153\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a290a2425a96c690e7eaffd6d85085638943a372a1ce65ffbfc9c2e41ec71e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:256-294 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:277-314 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae92fe2b91f1621bd01f8a44bc71b7a91732251fe47573f2816522455103fcf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:1078-1116 | apps/mobile/lib/widgets/session_card.dart:1246-1284 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/session_card.dart:1078\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/widgets/session_card.dart:1245\u0060 calls \u0060ValueKey\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart:1077\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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04726107b5d560bf4ad78f1ffbebb4a9ddcb6d904bdbb33ed209aad6584f2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1375-1410 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1521-1556 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1375\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d1c7e12095445997516515520db48318ea2d96e75ea23baf81c6c3ca5e9a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1256-1290 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1387-1421 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1256\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ac3326bdd1d1d9875943b16c5a26e85bece6efbcd0b9e468dbb34ef42c02a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1000-1033 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1079-1112 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1367-1400 \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 \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1000\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":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"26402ebd2d5b5dbd742a05749005f4201de8a64526b4f3ccfc01774cefd17874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:1188-1221 | apps/mobile/lib/widgets/session_card.dart:1311-1344 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/session_card.dart:1188\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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"830ecaa1f850b4c2c06f524c2998bb33fd5d92977fcd04dbd6c15528083d7696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1494-1526 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1655-1684 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1494\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e22361849cb614e97f35f2eb4049e2fa1a9f128141c3a722298963e99af5a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/user_bubble.dart:321-353 | apps/mobile/lib/widgets/bubbles/user_bubble.dart:463-495 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/bubbles/user_bubble.dart:321\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":"apps/mobile/lib/widgets/bubbles/user_bubble.dart"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"568d3aace007e482812e1f12e9cadd9c1f8ede34ef333e550248e7a2591fb336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): apps/mobile/lib/features/session_list/session_list_screen.dart:2634-2664 | apps/mobile/lib/features/settings/settings_screen.dart:344-374 \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 \u0060apps/mobile/lib/features/session_list/session_list_screen.dart:2634\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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef80d78f7429c9871972dc696e309910eb59026e2ebfd60d512b2fa31b5d9228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): apps/mobile/lib/models/messages.dart:5744-5773 | apps/mobile/lib/services/bridge_service.dart:3750-3779 \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 \u0060apps/mobile/lib/models/messages.dart:5744\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5744}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb6bf8f7335c544d40cb57b77cc3d522bf5d157ba6f71c249e1878dbc8cac31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): apps/mobile/lib/services/store_screenshot_extension.dart:534-562 | apps/mobile/lib/services/store_screenshot_extension.dart:1098-1126 | apps/mobile/lib/services/store_screenshot_extension.dart:1504-1532 \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":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef42305d92fb7674cfd914fd73d9d1d83fd5cd4cdbd8d020796342a7c676741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): apps/mobile/lib/features/git/git_screen.dart:538-565 | apps/mobile/lib/features/git/git_screen.dart:618-646 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/git/git_screen.dart:538\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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e483d61e99d0b802c7e11ab5349597ae74aa600e6bc8f56500997e164a34695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): apps/mobile/lib/features/git/widgets/diff_content_list.dart:278-304 | apps/mobile/lib/features/git/widgets/diff_hunk_widget.dart:540-566 \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 \u0060apps/mobile/lib/features/git/widgets/diff_content_list.dart:278\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c9626239ef376e5c8247a54edf8b530ccb62bf4b77f593b0d7db82c577e147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:408-432 | apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:538-562 | apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:671-695 \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":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"397f3e69e135b4e82ca2a724a2979778ebab7e247524009e1e15d6d824d74d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:881-905 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:960-983 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:957\u0060 calls \u0060_goalCardData\u0060 and \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:878\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b4dc8118829b807ad7a550725df9298ba28bb9a28f9149d260975b2f548cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): apps/mobile/lib/widgets/plan_detail_sheet.dart:48-70 | apps/mobile/lib/widgets/screenshot_sheet.dart:137-160 | apps/mobile/lib/widgets/worktree_list_sheet.dart:133-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/plan_detail_sheet.dart:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/plan_detail_sheet.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"caada44ac737aad415c8a49190aab18a944a79d58ef8eea60e8d8f065a8970ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1302-1324 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1424-1446 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1302\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c181d4dee4c3c25327051a3b76fe66afd653396d227c5fcf20ea63f9d3054adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart:221-242 | apps/mobile/lib/widgets/claude_settings_panel.dart:316-337 \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 \u0060apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart:221\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":"apps/mobile/lib/features/chat_session/widgets/codex_settings_sheet.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7285833935608436cb5f5650a0b0130d748aa0e8a540f74c48a12924531b751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:678-696 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:735-756 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:735\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3062942eec767d9b2fda9f5e21bc1a34886f4a162826311189964e10ffee3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:854-875 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:932-953 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:854\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fb9bf3c805c538fa232e6f1a1b76f7d57c1924ee124261bf13a3078310b710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:60-80 | apps/mobile/lib/features/settings/widgets/new_session_tabs_bottom_sheet.dart:85-105 | apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart:62-82 | apps/mobile/lib/features/settings/widgets/terminal_app_bottom_sheet.dart:131-151 | apps/mobile/lib/features/settings/widgets/theme_bottom_sheet.dart:47-67 \u2014 before extracting anything, compare \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart\u0060 and \u0060apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:57\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/features/settings/widgets/new_session_tabs_bottom_sheet.dart:82\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":"apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e35ca8dc0b8a6467bf51822072fbc67760663d3e8a1f30edfaf116b83b531e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:469-489 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:510-530 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:469\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:468\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:509\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c48a07d4252de9e40eab773e2a615b121b5dbc342e9e77f847a9ff796f9f894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:579-599 | apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:665-685 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:579\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce4666a91e80e3796ae3feb80ccfb3841556446741c92e21ac1ea15dda13b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:568-588 | apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart:313-333 \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 \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:568\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart:311\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:566\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":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"234001f4a338781565b919c2010a550fecbd03cea5a4312ff21a8e6076a75c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1155-1174 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1269-1288 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1155\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e3414d3df6bbbc5a154f8ec859a98dc527b03be1b5a3b3685e1e2885fdd1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:206-233 | apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:299-328 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart:206\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":"apps/mobile/lib/features/session_list/widgets/session_filter_bar.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f1281b411e9f591644ff8b8ef4a3409a9d9f51f13257db9b0020e66065e2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:1859-1878 | apps/mobile/lib/widgets/session_card.dart:1930-1949 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/session_card.dart:1859\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a4633b587e717ad76626f4699e02adcbf0a672e96a0fef7814d183876da892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:236-254 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:257-275 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6cfed343d79741c18ce49ee80ef466146d98515c9908e57917638cd4323998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1216-1234 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1347-1365 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1216\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6ec8f074dfb1d5f4b6d4df1da8412961787c2aa80ec7742f370bb3f40ad40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart:177-195 | apps/mobile/lib/widgets/bubbles/image_preview.dart:308-326 \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 \u0060apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart:177\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f82b6713e4d2e47c48e00128afa8c1f85f1655ec9ab223ec16b128099c945b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/features/git/widgets/diff_file_header.dart:59-77 | apps/mobile/lib/features/git/widgets/diff_stats_badge.dart:18-36 \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":"apps/mobile/lib/features/git/widgets/diff_file_header.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d840b0e609bc80992b15bd6fd4b59d2ea2722177a7a327d17f66a2c19f2839b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/result_chip.dart:100-118 | apps/mobile/lib/widgets/plan_detail_sheet.dart:114-132 \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 \u0060apps/mobile/lib/widgets/bubbles/result_chip.dart:100\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":"apps/mobile/lib/widgets/bubbles/result_chip.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"072e8108c6828e2d085fccceecb2053fc20003a514cc1713298bea55f8eef8e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/mobile/lib/widgets/chat_input_bar.dart:351-369 | apps/mobile/lib/widgets/chat_input_bar.dart:427-445 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/chat_input_bar.dart:351\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/widgets/chat_input_bar.dart:426\u0060 calls \u0060ValueKey\u0060 and \u0060apps/mobile/lib/widgets/chat_input_bar.dart:350\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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"39aba2a3e83eef702f96d8bb204c9c850d2ef9a84492a720572274ecbe2e8f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:931-948 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1033-1050 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:931\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"1263bdeb0fde641efb7a54a3db8559db291379ead712171ba46a6f3580989fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1477-1493 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1636-1653 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1477\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"24113eecdf2605c450d47f39e854f06f0988a5220d030fdb09238ce6cc3d883c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): apps/mobile/lib/features/git/widgets/diff_content_list.dart:248-265 | apps/mobile/lib/features/git/widgets/diff_hunk_widget.dart:514-529 \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 \u0060apps/mobile/lib/features/git/widgets/diff_content_list.dart:248\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":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb798d85e37539acf1ba85293fe4cbbb21efee0b4eb1e712fee165f84e2c272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): apps/mobile/lib/features/session_list/widgets/bridge_update_banner.dart:32-49 | apps/mobile/lib/features/session_list/widgets/support_banner.dart:17-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/session_list/widgets/bridge_update_banner.dart:32\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":"apps/mobile/lib/features/session_list/widgets/bridge_update_banner.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe25ff720613a83494ca0c08188c9c7dcf2dd514ebe02200ae452f3ee6e18d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/plan_card.dart:187-204 | apps/mobile/lib/widgets/bubbles/streaming_bubble.dart:159-176 \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":"apps/mobile/lib/widgets/bubbles/plan_card.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d7f39cf4c28689c097e67ed0f6bdceadd47168343812c793ab8ffe0fd51b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): apps/mobile/lib/widgets/codex_effort_slider.dart:403-418 | apps/mobile/lib/widgets/codex_effort_slider.dart:467-484 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/codex_effort_slider.dart:403\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":"apps/mobile/lib/widgets/codex_effort_slider.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a94648c3e1782e5513f23ad8f688ca6b6af06faa5caf11a002a8cc6c43afc62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:61-77 | apps/mobile/lib/features/settings/widgets/new_session_tabs_bottom_sheet.dart:86-102 | apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart:63-79 | apps/mobile/lib/features/settings/widgets/terminal_app_bottom_sheet.dart:132-148 | apps/mobile/lib/features/settings/widgets/theme_bottom_sheet.dart:48-64 | apps/mobile/lib/widgets/plan_detail_sheet.dart:51-67 | apps/mobile/lib/widgets/screenshot_sheet.dart:141-157 | apps/mobile/lib/widgets/worktree_list_sheet.dart:137-153 \u2014 before extracting anything, compare \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart\u0060 and \u0060apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:61\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:57\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/features/settings/widgets/new_session_tabs_bottom_sheet.dart:82\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":"apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"084f2520aeb372ec4c5784e692ce9eafa01cfc958eb14b3966515f949bda1e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:611-627 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:672-687 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:630\u0060 calls \u0060useTextEditingController\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:690\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce540d57f0bb5aff7176aeecb1976018ad1e20f94dbfdedce96c8161552216a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/mobile/lib/features/codex_session/widgets/tool_suggestion_card.dart:37-53 | apps/mobile/lib/widgets/approval_bar.dart:56-72 \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 \u0060apps/mobile/lib/features/codex_session/widgets/tool_suggestion_card.dart:37\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":"apps/mobile/lib/features/codex_session/widgets/tool_suggestion_card.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bcd066721674985df80cd1bd3425f1d92bde75be635afedb39d0a31f5eb0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart:365-381 | apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart:391-407 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart:365\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":"apps/mobile/lib/features/file_browser/state/file_browser_cubit.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b19389f396705f6ff8631e7190bdc2ed03e09606a00e2845abbc4ada2515c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart:622-638 | apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart:780-796 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart:622\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1c91fc37b84b014ac96a3a47be53224ec67f67575170244a49914616e0d95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/mobile/lib/widgets/file_mention_overlay.dart:47-63 | apps/mobile/lib/widgets/slash_command_overlay.dart:43-59 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/file_mention_overlay.dart\u0060 and \u0060apps/mobile/lib/widgets/slash_command_overlay.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad30f31da72770256995ab89405c720139166d0f3d45412e9873d05c54344cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/mobile/lib/widgets/file_mention_overlay.dart:166-182 | apps/mobile/lib/widgets/slash_command_overlay.dart:91-107 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/file_mention_overlay.dart\u0060 and \u0060apps/mobile/lib/widgets/slash_command_overlay.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/file_mention_overlay.dart:166\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":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"345fb04187411f85abb3ad66b8e0e3cce10a646274cc77679fbe8aa7ad9eee0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): apps/mobile/lib/services/store_screenshot_extension.dart:666-680 | apps/mobile/lib/services/store_screenshot_extension.dart:820-835 | apps/mobile/lib/services/store_screenshot_extension.dart:965-979 | apps/mobile/lib/services/store_screenshot_extension.dart:1723-1737 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/services/store_screenshot_extension.dart:666\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/services/store_screenshot_extension.dart:665\u0060 calls \u0060_sessionIdForScenario\u0060 and \u0060apps/mobile/lib/services/store_screenshot_extension.dart:819\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":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab5ffda09fd28f21cb8b870e1029b907779da0229456245539d92b1b40618d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:318-333 | apps/mobile/lib/widgets/bubbles/result_chip.dart:106-121 | apps/mobile/lib/widgets/plan_detail_sheet.dart:120-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:318\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":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50473aa1d10006353dd92ea522ed755480e23919362eea3798acee3eba4db7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): apps/mobile/lib/widgets/file_mention_overlay.dart:113-128 | apps/mobile/lib/widgets/file_mention_overlay.dart:171-185 | apps/mobile/lib/widgets/slash_command_overlay.dart:96-110 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/file_mention_overlay.dart\u0060 and \u0060apps/mobile/lib/widgets/slash_command_overlay.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/file_mention_overlay.dart:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"84af9c8d058d5a4aa28e452493bafc7b4bb3037f0cd5a680d78f9fd0aa9a5703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:219-234 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:240-255 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17cdf8d378057a9ef489962a26623720b76974bb7e7c7c4ca210a64d18b2c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:1138-1153 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1259-1274 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1138\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, \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:1275\u0060 calls \u0060showCodexRecoverySheet\u0060 and \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:1154\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6527a9e0fd63306bd97b2dbb1a68dee7f0d523651b665c8f3e7cecb9528ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): apps/mobile/lib/features/prompt_history/widgets/prompt_history_sheet.dart:108-123 | apps/mobile/lib/widgets/slash_command_sheet.dart:294-308 \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 \u0060apps/mobile/lib/features/prompt_history/widgets/prompt_history_sheet.dart:108\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":"apps/mobile/lib/features/prompt_history/widgets/prompt_history_sheet.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcd3f82efbf96aad74b7155f7ec61204b6b65eca07a479dead31a7838162b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): apps/mobile/lib/models/messages.dart:5287-5301 | apps/mobile/lib/models/messages.dart:5746-5760 | apps/mobile/lib/services/bridge_service.dart:3752-3766 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5287}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf3ae9e58172fe44dd419afc7ab897c0ce1c2e42fdd0a583e248afea549c134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): apps/mobile/lib/widgets/bubbles/result_chip.dart:79-93 | apps/mobile/lib/widgets/bubbles/user_bubble.dart:336-350 | apps/mobile/lib/widgets/bubbles/user_bubble.dart:478-492 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/bubbles/result_chip.dart:79\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":"apps/mobile/lib/widgets/bubbles/result_chip.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5202191efb68f70d583ce6d38b15eb4c95d000ba7c96690fb545ad504106f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:919-933 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1013-1026 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50445086b32d8a2388ff989afd978f2f0850d53b772b4dc30080e1bce14a45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:950-964 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:1052-1066 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:950\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"35297093e9b66588c85031a5d493166f77e90c0d4182b895174d7693b136678b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/mobile/lib/widgets/file_mention_overlay.dart:88-102 | apps/mobile/lib/widgets/slash_command_overlay.dart:65-79 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/file_mention_overlay.dart\u0060 and \u0060apps/mobile/lib/widgets/slash_command_overlay.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/file_mention_overlay.dart:88\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":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e351d175f08fe1b385aa0d64c6a6548c732ef1df3a50adf1d3163de77440845d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/mobile/lib/widgets/new_session_sheet.dart:3380-3394 | apps/mobile/lib/widgets/new_session_sheet.dart:3684-3698 \u2014 both copies are in the same file, so extract the block 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, \u0060apps/mobile/lib/widgets/new_session_sheet.dart:3699\u0060 calls \u0060buildChildren\u0060, \u0060_CodexAdvancedOptions\u0060 and \u0060apps/mobile/lib/widgets/new_session_sheet.dart:3395\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":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6419d82c26cb0d1cf87dc5126a733022e9591313f6c996a5e0526ae0740932d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): apps/mobile/lib/features/session_list/widgets/home_content.dart:1734-1747 | apps/mobile/lib/widgets/session_card.dart:456-468 | apps/mobile/lib/widgets/session_card.dart:2905-2917 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/session_list/widgets/home_content.dart:1734\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":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"4635c1610382fb25d4958fed393568816f68452da63c2c039f8360a1de7b42e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/mobile/lib/features/git/git_screen.dart:565-578 | apps/mobile/lib/features/git/git_screen.dart:654-667 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/git/git_screen.dart:565\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":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c0badf341cd5f5d86e4588c217031daedbbcc8c21d95a0fd138d62335852ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/mobile/lib/features/session_list/session_list_screen.dart:1379-1392 | apps/mobile/lib/features/session_list/session_list_screen.dart:1422-1435 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/session_list/session_list_screen.dart:1379\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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bc80ac6502deeba82d827c1dfcae436bb2f7b650d49728125cac8bc934c789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): apps/mobile/lib/features/session_list/session_list_screen.dart:2077-2089 | apps/mobile/lib/features/session_list/session_list_screen.dart:2146-2159 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/session_list/session_list_screen.dart:2077\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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57fbee11a1b723e634d749e409f660730e624cb2291e5841a473ecb1994d5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:428-440 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:466-478 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:428\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cb42536ea88dbb73926a5e01118ff88e22dbaed05c141da7c46944e0f51831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/features/git/state/branch_cubit.dart:197-209 | apps/mobile/lib/features/git/state/commit_cubit.dart:154-166 \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":"apps/mobile/lib/features/git/state/branch_cubit.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"547218be233992970dcffe59d2cfca706fc2bc10e8ca31dc22e5a8fbbf179bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:924-936 | apps/mobile/lib/features/git/widgets/diff_image_widget.dart:427-439 \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 \u0060apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:924\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":"apps/mobile/lib/features/git/widgets/diff_image_viewer.dart"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"4837d541da683ebd31086374d3ac45d236b04f36d03ec2d0a5a09dabe05f4a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/models/messages.dart:5343-5355 | apps/mobile/lib/models/messages.dart:5793-5805 \u2014 both copies are in the same file, so extract the block 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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e896b232005ede6f3ff3f099cc0c57b9fbee38f1718c6b016efc581b85108f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/services/store_screenshot_extension.dart:599-611 | apps/mobile/lib/services/store_screenshot_extension.dart:1136-1148 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/services/store_screenshot_extension.dart:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d52e049be2a8da59b803fd67e8f3f20a49073f568151a6abce77d343215503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/widgets/approval_bar.dart:374-386 | apps/mobile/lib/widgets/approval_bar.dart:406-418 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/approval_bar.dart:374\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/approval_bar.dart"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e3fb8dea1bf43aa38db4e2f2cf813935662c554393f2498b87c14a71a055ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:740-752 | apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart:455-467 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:740\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b56cc24449a2a579709a9d3f0531900079dc319c361c60ee108d3780e77eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:1833-1845 | apps/mobile/lib/widgets/session_card.dart:1897-1909 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/session_card.dart:1833\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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cb4b26821df92cc384e621f7e11cac19d2ddef86b41a4bec75daabfe5b126b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): apps/mobile/lib/features/session_list/session_list_screen.dart:2555-2566 | apps/mobile/lib/features/session_list/session_list_screen.dart:2582-2593 | apps/mobile/lib/features/session_list/session_list_screen.dart:2609-2620 \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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7570b2abcbb15f5bf978f0a8522e93d21f4699ec79bc0148898ea8c8af727a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:296-307 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:316-327 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"947a2da074c5c088a1b47633c7fe72c6847d579f866e90202ee2cbc299981251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:338-349 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:395-406 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart:409\u0060 calls \u0060sandboxModeFromRaw\u0060 and \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:352\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d84efbc640407527c906b12cba50ce018ffb804568540bc850857c2243851b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/gallery/widgets/gallery_filter_chips.dart:27-38 | apps/mobile/lib/widgets/horizontal_chip_bar.dart:64-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/widgets/gallery_filter_chips.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7d3a4df9042ef34e0de9471d9d51f9d730b9e7c262d04946975f936944a9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/github/state/github_selection_cubit.dart:50-61 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:39-50 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060entries\u0060 to \u0060List\u003CGitHubSelectedItem\u003E\u0060 in one and \u0060List\u003CMediaFeedback\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/github/state/github_selection_cubit.dart:46\u0060 calls \u0060isSelected\u0060, \u0060items\u0060, \u0060any\u0060 and \u0060apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:36\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":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bebaeef15437552f69e12a7d482a322264ecbfbf6465d966f2d2c94a70e51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart:178-189 | apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart:610-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart:178\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":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e0d18cd0e2c93b826decf19ab86b958696b9640ff2e70efb445ca6478e098a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:84-95 | apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart:89-100 \u2014 before extracting anything, compare \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart\u0060 and \u0060apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2541439b863169cc7e06141f2f40a17c6a066ee630a8e43aabd0695302af461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:97-108 | apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart:102-113 \u2014 before extracting anything, compare \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart\u0060 and \u0060apps/mobile/lib/features/settings/widgets/speech_locale_bottom_sheet.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart:97\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/app_locale_bottom_sheet.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b822efbb28113a6d586448174f15a6f277305b118a098309bc6784762bae3d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/mobile/lib/services/bridge_service.dart:3923-3934 | apps/mobile/lib/services/session_runtime_store.dart:189-200 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/services/bridge_service.dart:3923\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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3923}}}],"partialFingerprints":{"codehealthFindingId/v1":"75689e3850a027aac6663ca4c0b02fdd7a905ab9fa94f168d822345144f0088a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): apps/mobile/lib/features/session_list/session_list_screen.dart:2556-2566 | apps/mobile/lib/features/session_list/session_list_screen.dart:2583-2593 | apps/mobile/lib/features/session_list/session_list_screen.dart:2610-2620 | apps/mobile/lib/features/settings/settings_screen.dart:299-309 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41ac018b374099a70cdadfc57793ff87b595be28a4f9a7cf4b9ee226fb9c163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1136-1146 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1241-1251 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1133\u0060 calls \u0060codexModelDisplayName\u0060 and \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1239\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":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93c6a9ca3887fae4566825a2fdadacc9ade437e697b97e190f229eccbc6be9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart:17-27 | apps/mobile/lib/features/session_list/widgets/session_list_empty_state.dart:21-31 \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 \u0060apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/session_list/widgets/session_list_empty_state.dart:18\u0060 calls \u0060Card\u0060, \u0060Padding\u0060, \u0060all\u0060 and \u0060apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart:16\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":"apps/mobile/lib/features/gallery/widgets/gallery_empty_state.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bbe4fe541d9d71003357cf26f76930f4ab51c11771e9eb868417f73f1f0179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/features/session_list/session_list_screen.dart:2021-2031 | apps/mobile/lib/features/session_list/session_list_screen.dart:2189-2199 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/session_list/session_list_screen.dart:2021\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"312b5cb785276b49fa7ab0f128763d20835e6fc833e5a02f7a0109e371285b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/models/messages.dart:4811-4821 | apps/mobile/lib/models/messages.dart:5167-5177 \u2014 both copies are in the same file, so extract the block 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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":4811}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed142ec2d59cbd0c262f091c47fd5d99b22a8f87c82d4b4d97590fba4895492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/models/messages.dart:4823-4833 | apps/mobile/lib/models/messages.dart:5190-5200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/models/messages.dart:5187\u0060 calls \u0060_resolveCodexPermissionsMode\u0060 and \u0060apps/mobile/lib/models/messages.dart:4822\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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":4823}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78a0a5e7fdcd8be446c1f38fd99c8ecee5962dc99a1d23a7bf9268d0b78a521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/models/messages.dart:5716-5726 | apps/mobile/lib/models/messages.dart:5791-5801 \u2014 both copies are in the same file, so extract the block 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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5716}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba2a119e03e7a2ff8d29ab99a99be41676aeab25d3e0d4138b7a7cc2838310b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:384-394 | apps/mobile/lib/widgets/bubbles/question_answer_transcript_bubble.dart:26-36 \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 \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:384\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":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a1f9f169272b0179547904cdc4ac5e0a622393c72a03406e9fea687b7af75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1003-1012 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1082-1091 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1137-1146 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1242-1251 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1310-1319 | apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1370-1379 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1003\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1133\u0060 calls \u0060codexModelDisplayName\u0060 and \u0060apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart:1239\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":"apps/mobile/lib/features/chat_session/widgets/session_mode_bar.dart"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49c9cdc854fa41db457327e675f17add632563c6c6499771d2debe698978078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): apps/mobile/lib/widgets/chat_input_bar.dart:280-288 | apps/mobile/lib/widgets/chat_input_bar.dart:424-432 | apps/mobile/lib/widgets/chat_input_bar.dart:533-541 | apps/mobile/lib/widgets/chat_input_bar.dart:1423-1432 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/chat_input_bar.dart:280\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":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56cc7c4002f449feeea5d037b093dc11b099c3b16523d7e9d209d9ac7a2ec1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart:759-768 | apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart:1108-1117 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart:759\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":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b930059d8e1fe2f67ab6e3d1333ff9b0619ef5723515345f7b3974b89bc4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:362-371 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:427-436 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35920d82df3f0a46cd49638ecee1d9fe0b0b0fb0f0ab895258bb06d5f035dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart:226-235 | apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:767-776 \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 \u0060apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart:226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/git/widgets/diff_image_viewer.dart:766\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart:225\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":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8421ff87019f38d8a714c5a1d9065b331e08ec9433ccdb961b16f183bb7cd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/session_list/session_list_screen.dart:2731-2740 | apps/mobile/lib/widgets/new_session_sheet.dart:1522-1531 \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 \u0060apps/mobile/lib/features/session_list/session_list_screen.dart:2731\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":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":2731}}}],"partialFingerprints":{"codehealthFindingId/v1":"780e732a401e40b3f8db82cd04e840dd6d50a9ba0826345059ffe7724e42d97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/settings/supporter_screen.dart:143-152 | apps/mobile/lib/features/settings/supporter_screen.dart:196-205 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/settings/supporter_screen.dart:143\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":"apps/mobile/lib/features/settings/supporter_screen.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b79c715c20d7c0e73a14f3f487bbb4d1fce4ba47b56491471239c76f0835ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/setup_guide/widgets/guide_page_about.dart:23-32 | apps/mobile/lib/features/setup_guide/widgets/guide_page_autostart.dart:63-73 \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 \u0060apps/mobile/lib/features/setup_guide/widgets/guide_page_about.dart:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/setup_guide/widgets/guide_page_about.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec4bb785b39abca4f06a2121b5296a79be0488337080d5812cf30b2b9de0a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/setup_guide/widgets/guide_page_autostart.dart:91-101 | apps/mobile/lib/features/setup_guide/widgets/guide_page_bridge_setup.dart:50-59 \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 \u0060apps/mobile/lib/features/setup_guide/widgets/guide_page_autostart.dart:91\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":"apps/mobile/lib/features/setup_guide/widgets/guide_page_autostart.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf039e6504d4d11b2e8ffcadfa42d6b91a0d70cd03b9fdc3b86a8fa9424af97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/theme/app_theme.dart:192-201 | apps/mobile/lib/widgets/new_session_sheet.dart:1678-1687 \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 \u0060apps/mobile/lib/theme/app_theme.dart:192\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":"apps/mobile/lib/theme/app_theme.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"020f1dea28b26a9b262450dcaf23921e6e93d321f3be9155676d494162b6b48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:102-111 | apps/mobile/lib/widgets/session_card.dart:1444-1453 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e78ad9ca1d9b8f928e9ef8cd71f5ecbe5e5ac566ca97b767f818d9ec31292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:789-798 | apps/mobile/lib/widgets/session_card.dart:1243-1252 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/session_card.dart:789\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/widgets/session_card.dart:1242\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart:788\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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fc0c168c358604432ed5c66522b64f1dddb17e0bbce2e52d6f96765f92ad40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): apps/mobile/lib/features/git/widgets/diff_file_header.dart:66-74 | apps/mobile/lib/features/git/widgets/diff_stats_badge.dart:25-33 | apps/mobile/lib/widgets/bubbles/assistant_bubble.dart:786-794 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/git/widgets/diff_file_header.dart:66\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":"apps/mobile/lib/features/git/widgets/diff_file_header.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"441a8d3774cd2d616a76c2002586fc26d0d98cbd431dd3fcb9bb07e6f85e839a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/features/git/widgets/diff_image_widget.dart:162-170 | apps/mobile/lib/features/git/widgets/diff_image_widget.dart:202-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/git/widgets/diff_image_widget.dart:162\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":"apps/mobile/lib/features/git/widgets/diff_image_widget.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04498951ef2fa5344ed7c56060da7bee475dddfd18a00518dc2fa95e862af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/services/bridge_service.dart:1860-1868 | apps/mobile/lib/services/bridge_service.dart:1882-1890 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/services/bridge_service.dart:1860\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060msg\u0060 to \u0060HistoryDeltaMessage\u0060 in one and \u0060HistorySnapshotMessage\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":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc35045e83021e5cd1a771aa8ac2cad7866d183924ef616fc643ddf5111815d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/services/bridge_service.dart:3481-3489 | apps/mobile/lib/services/bridge_service.dart:3492-3500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7c3694875c1ed96cf7743a607465b9fa5f99754dbc0509b289d828318192a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:138-146 | apps/mobile/lib/widgets/session_card.dart:1561-1569 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:138\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c234ec322551ac3bc77241924f6593b28b431e1fcf4fdb9a2ea5571db04c8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/widgets/session_card.dart:2707-2715 | apps/mobile/lib/widgets/session_card.dart:2722-2730 \u2014 both copies are in the same file, so extract the block 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":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"8531bf8f3392dfda0ea52d8fce7d84faad60f9727ecfa2bdc619359cb49d07d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): apps/mobile/lib/features/git/state/git_view_cubit.dart:631-638 | apps/mobile/lib/features/git/state/git_view_cubit.dart:641-648 | apps/mobile/lib/features/git/state/git_view_cubit.dart:668-675 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060result\u0060 to \u0060GitRevertFileResultMessage\u0060 in one and \u0060GitRevertHunksResultMessage\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":"apps/mobile/lib/features/git/state/git_view_cubit.dart"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba46f1df6c87f478aada3c6a4f2091e5a408b78b6100cfd38ca0a9b77261d3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:419-426 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:455-462 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart:419\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060oldWidget\u0060 to \u0060covariant ClaudeSessionScreen\u0060 in one and \u0060covariant CodexSessionScreen\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":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc74fdb6e2759214830f1fd32a527f53c5bc45cccdffb38c87aab5bcee41796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart:164-171 | apps/mobile/lib/features/file_peek/widgets/file_peek_video_controls.dart:601-608 \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 \u0060apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart:164\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":"apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"096f3b49425c1a75cce24da6a0d7158f6e95f52a15cd1d5ccc42cf0e1630249d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/features/github/state/github_selection_cubit.dart:92-99 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:76-83 \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 \u0060apps/mobile/lib/features/github/state/github_selection_cubit.dart:92\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":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"38edd884ddc03d076bbc2a1cd95ba5381659075ac02a36bd219354b15ada1572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/features/settings/supporter_screen.dart:601-608 | apps/mobile/lib/features/settings/supporter_screen.dart:671-678 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/settings/supporter_screen.dart:601\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/supporter_screen.dart"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8bd9f2ba19db9e0ff4a5b78c0a71c52e8dd6bf46b8d591cfd3ce50269070f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/features/settings/widgets/settings_category_body.dart:199-206 | apps/mobile/lib/features/setup_guide/setup_guide_screen.dart:34-41 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/mobile/lib/features/setup_guide/setup_guide_screen.dart:33\u0060 calls \u0060of\u0060 and \u0060apps/mobile/lib/features/settings/widgets/settings_category_body.dart:198\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":"apps/mobile/lib/features/settings/widgets/settings_category_body.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe936fc2a689e5ce952cce966130bd38e1e8156b4805289fdad77f01ed5e5f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/models/messages.dart:1065-1073 | apps/mobile/lib/models/messages.dart:1076-1084 \u2014 both copies are in the same file, so extract the block 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":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c14c4e3a5e3a51af716610ef25c5ee6a573b2c0806d005727fb810f80277ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/error_bubble.dart:381-388 | apps/mobile/lib/widgets/bubbles/error_bubble.dart:482-489 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/bubbles/error_bubble.dart:381\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":"apps/mobile/lib/widgets/bubbles/error_bubble.dart"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a0802e096b6a61eb46bd46b5e8332d0153a259723a9152ebdd7fdc2877ddfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/image_preview.dart:62-69 | apps/mobile/lib/widgets/bubbles/image_preview.dart:124-131 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/widgets/bubbles/image_preview.dart:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/image_preview.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a89b63e6a2a6e7465a7cb9633103ad79b1edaae59a474b0bfff718b56f0b5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/widgets/worktree_list_sheet.dart:225-232 | apps/mobile/lib/widgets/worktree_list_sheet.dart:273-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 \u0060apps/mobile/lib/widgets/worktree_list_sheet.dart:225\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":"apps/mobile/lib/widgets/worktree_list_sheet.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a20e3e398037ad901efbd9c38cea0b65ea1547b9c5e5f5e9393733720881543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/mobile/lib/features/claude_session/widgets/rewind_action_sheet.dart:149-155 | apps/mobile/lib/features/session_list/session_list_screen.dart:667-673 \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 \u0060apps/mobile/lib/features/claude_session/widgets/rewind_action_sheet.dart:149\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":"apps/mobile/lib/features/claude_session/widgets/rewind_action_sheet.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4462d009714dd8470cb8ef510398241fe597b50011290b2194cb288ae74f98c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/mobile/lib/features/git/git_screen.dart:328-333 | apps/mobile/lib/features/setup_guide/setup_guide_screen.dart:34-39 \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 \u0060apps/mobile/lib/features/git/git_screen.dart:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"820e899b683b76583288fac4e27443ee10466af93d7e7d38d9bfff6590e56d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:309-318 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:329-338 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aecdc651030503ccf57a8ca2201b909b55697835c8524a563ab8ab30d06dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/mobile/lib/features/claude_session/claude_session_screen.dart:373-386 | apps/mobile/lib/features/codex_session/codex_session_screen.dart:438-451 \u2014 \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 and \u0060apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 31 separate duplicated blocks between them, totalling at least 888 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1f66f17432de7898a4a701b83142abc849471c456c4a595a1464a86b71756f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/mobile/lib/features/github/state/github_selection_cubit.dart:36-41 | apps/mobile/lib/features/media_feedback/state/media_feedback_cubit.dart:28-33 \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":"apps/mobile/lib/features/github/state/github_selection_cubit.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0250eb61043de5894d8fe6b0a5e85f13792e21c05edd692734b04023547f7b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/mobile/lib/screens/mock_preview_screen.dart:1469-1477 | apps/mobile/lib/services/store_screenshot_extension.dart:1043-1051 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/store_screenshot_extension.dart"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"597e0f788a7f43aecd576e7cf2f707438627b3179f7098c1692cc2eeacc08f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/mobile/lib/services/app_icon_service.dart:52-56 | apps/mobile/lib/services/revenuecat_service.dart:446-450 \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":"apps/mobile/lib/services/app_icon_service.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f717b1f5e7df26fa8c6be786db88d948d36790834e1041ccd7d252e682145b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:81-85 | apps/mobile/lib/widgets/session_card.dart:1424-1428 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffefdd1b2e5e2af0cffc917024c4d2263079ef4e9e70de878973d6760f2e8a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart:314-320 | apps/mobile/lib/widgets/session_card.dart:1651-1657 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e910194133e4cc4b171f644e2dd2f674f62e5d7453e3ee41c83beeea184e4ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/mobile/lib/widgets/file_mention_overlay.dart:32-39 | apps/mobile/lib/widgets/slash_command_overlay.dart:28-35 \u2014 before extracting anything, compare \u0060apps/mobile/lib/widgets/file_mention_overlay.dart\u0060 and \u0060apps/mobile/lib/widgets/slash_command_overlay.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/file_mention_overlay.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e486ca8adef2f0e32bf84886394ad81e454a1b160ea686949f66caaac931c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/mobile/lib/features/settings/widgets/prompt_history_section.dart:373-377 | apps/mobile/lib/features/settings/widgets/prompt_history_section.dart:422-426 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/mobile/lib/features/settings/widgets/prompt_history_section.dart:422\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060DateTime\u0060 in one and \u0060DateTime?\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":"apps/mobile/lib/features/settings/widgets/prompt_history_section.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5d8f690b39461df3efd04c48aa024eb70f0a338295d6fa4f1d071a3885c861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift:9-36 | apps/menubar/CCPocketMenubar/Views/UsagePage/UsagePageView.swift:45-72 \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 \u0060apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift:9\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":"apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ea562be0447b61fa3837fb461136f5570dddcf423878c86350095400a03b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift:204-213 | apps/menubar/CCPocketMenubar/Views/OnboardingView.swift:60-69 | apps/menubar/CCPocketMenubar/Views/QRCodePage/QRCodePageView.swift:11-20 | apps/menubar/CCPocketMenubar/Views/UsagePage/UsagePageView.swift:47-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Views/DoctorPage/DoctorPageView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ae83c86a576b4219c4f0c3fa97d13204a2508d0810f96c1eb385ec67abf3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 8): apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:46-46 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:51-52 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:80-84 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:90-90 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:95-99 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:105-105 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:110-114 | apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:120-120 \u2014 all 8 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 \u0060apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/MockDoctorScenarios.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c605452bafdb389c254e50513c7f9784da5f05e7161068efa6f6e4f997cf945f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/mobile/macos/Runner/AppDelegate.swift:6-12 | apps/mobile_preview/macos/Runner/AppDelegate.swift:6-12 \u2014 before extracting anything, compare \u0060apps/mobile/macos/Runner/AppDelegate.swift\u0060 and \u0060apps/mobile_preview/macos/Runner/AppDelegate.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/macos/Runner/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4784fe01d33d9a6290e3675c815036fd98738f98aea84ac7ee44a7852a288e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): scripts/store-review/apps/deliver-ios.py:20-26 | scripts/store-review/upload-duo-screenshots.py:49-56 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/store-review/apps/deliver-ios.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c548174af3c7d96b5b82aa418a6fc51263dd0c3581a32acc6ad4423bddc11562"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ccpocket: ccpocket: abstractness 0.04, instability 0.00, distance 0.96 \u2014 an application entry point, so it is concrete by design \u2014 the distance is expected; what is worth checking is that other projects depend on it at all, since a host should be a leaf of the graph."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"deb4c41b63eb67892ac7978258b5251b61737876fdfbac1b3763e18a3b52a69e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _SessionListScreenState (LCOM4 14): _SessionListScreenState\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"361524ad3c689ea9fd6767279a5c4bcfe94aa08a1391ebcd0d0b87734bb4904b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockBridgeService (LCOM4 11): MockBridgeService\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8c43ba50037e72faa6fd386410d32f96a47d56d5a98848dba53a5b4cc94d54"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PromptHistoryService (LCOM4 9): PromptHistoryService\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2d9778e751b1cc1ce3e9f6b067e5d46d8e35cee6b3ec00917656379590476c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReplayBridgeService (LCOM4 8): ReplayBridgeService\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/replay_bridge_service.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb319743b7d480caa7f61356f4975fbb4a264bab586bd0cc1a335df2e193ca8b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ToolResultBubbleState (LCOM4 8): ToolResultBubbleState\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"22406695189ee6ae95e094dc1706b63b48312e8f242755e03f81bec629252c40"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SessionListCubit (LCOM4 7): SessionListCubit\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/state/session_list_cubit.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4d76150f595ffe930978454afbb54c1cc0e5224c0c8d5aa8023c8dda3adb33"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExploreCubit (LCOM4 6): ExploreCubit\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/explore/state/explore_cubit.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c637eeb5eb173fa0d54d208addf6e8f5bade0b132b5db6c716764659d79f4ba"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PermissionRequestMessage (LCOM4 6): PermissionRequestMessage\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ca690bb68d18ad08e012d8e1ded65c293c534f0a11aa49c69abe7b9fe9dc76"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _NewSessionSheetContentState (LCOM4 6): _NewSessionSheetContentState\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8c07570cb4e231e334bad948a8731b7581d722d03a157ca268faf96a57e39d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WorkspacePaneChrome (LCOM4 6): WorkspacePaneChrome\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/workspace_pane_chrome.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfb823a7b1b8b33663131c80f229b0473afe5872b14568298de1fa72c002edd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _MachineEditSheetState (LCOM4 5): _MachineEditSheetState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/machine_edit_sheet.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d08123bfa59f4dfabae558634a22dfb1f50c8bfeb82f0f115fe2e6c1fbb6904"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BridgeService (LCOM4 5): BridgeService\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f6172f20851621ebef2a7109cd28e8eeae9e41896d0c49b2262c3c6fb3f811"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GitHubListCubit (LCOM4 4): GitHubListCubit\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/state/github_list_cubit.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"21650d9c1927677d552ea223127a4745fac0c56271a2f73a27f593a565a412e4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PurchasesRevenueCatGateway (LCOM4 4): PurchasesRevenueCatGateway\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/revenuecat_service.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb2a33930f56ab24cdc5618ae75fa952c83eb7c65a051788788ab66ced7a964"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _AskUserQuestionWidgetState (LCOM4 4): _AskUserQuestionWidgetState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"578521a64da8960e7c42a1f6ef865719483a19098831eb3cad28524000e393ae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ToolUseTileState (LCOM4 4): _ToolUseTileState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dec1c54f4594d4646ea624b39a2230c7040899327eaa693b073e136d3201af"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ClaudeSettingsPanelState (LCOM4 4): _ClaudeSettingsPanelState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/claude_settings_panel.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10e32248fd6cd97f579a919f9e4a6ae0c8d3d4771ba35c70b512e3e2a366958"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: echoes a new project\u0027s automatic initial prompt to its Claude client: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":6856}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fa0614525e4448a43d01745f09c6e4c06a3d44613ab178373fea6eb7d7ab10"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: converts dollar skills in a Claude initial prompt once skills arrive: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":6866}}}],"partialFingerprints":{"codehealthFindingId/v1":"90232ec15d4eb93df1b812e7c8237a99e0cf5ec68cd26ffadaa1e5608408c77a"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: limits concurrent HTTP upload bodies without evicting active uploads: This test starts work it did not wait for (\u0060active\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/upload-store.test.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d084f6a35c7384016d1c7b9a428616a9eb405934a9bbe30b5359bd5ecd554ca7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls stop, disable, deletes file, and daemon-reload: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.test.ts"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef1672ea92609b43c56c4ff215a6c1f1f4cd26c7abadbdf1a5dc9f9f7fc6c40"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: archives a Codex thread through a standalone process when none is active: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 2 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da66f05354c2b9f5e48a155ede5e698b8f88963316a0fb6ef04ada11a883494"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: rejects standalone Codex archive outside allowed directories: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"405a92767ac8425ea2deffc327c5b057ca0b0d0cf55a9b1522174aa1ff71e2d5"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: fails closed when client protocol metadata is malformed: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 2 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":2851}}}],"partialFingerprints":{"codehealthFindingId/v1":"568ebb1c3d09e20556a76e61df29a3744374d9500d264d33b9cbd9b7062cb379"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: reports handler rejections to the client instead of leaking them: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 4 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":2887}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d5a915a5eb1ccac39df3fd14b0c554c7510e54c843a515db9a1bea682e3bcb"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: records original deltas immediately instead of recording batches: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":10310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da7c2323b5c696c1f1183c0d1809599ab51e07a6e210d775e5d35192e512603"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not hold Claude completion pushes for background shells: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":10533}}}],"partialFingerprints":{"codehealthFindingId/v1":"953d06cd03194d72c87c63c5dcc2239eeec77e93013766b0f5ecc422e6789dbc"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not hold Codex completion pushes for background terminals: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":10563}}}],"partialFingerprints":{"codehealthFindingId/v1":"c192ffda6b4fbc29a064fc9b0241fb853fda8474033c20797652006268bb47c8"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not notify the relay without an active token registration: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.test.ts"},"region":{"startLine":10609}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5297433b377301af06a29da6f30ef99462bc2eb428ffd3e8d33a4e099c412a"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: packages/bridge/src/cli.test.ts::ccpocket-bridge CLI does not ignore an empty inline --port value: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"63d1a7ed52c9078b0dde040ea81b93e347beeed1f7084c88d3ad6978194d3f4f"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: packages/bridge/src/cli.test.ts::ccpocket-bridge CLI rejects --port when its value is missing: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"41dde1101bfcb8dcf3db61ce21d973a9bff874501ddba02941f19046674ae956"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: packages/bridge/src/cli.test.ts::ccpocket-bridge CLI rejects an invalid --port value before server startup: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c5102c2eb15f64ecb3e800efd8fa2528bc1905a62a52bc7d289dab9e5733bfd"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: packages/bridge/src/cli.test.ts::ccpocket-bridge CLI rejects an invalid BRIDGE_PORT before server startup: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"af505385dac689a8f49ccb36dfb74724965b384222f69ce39570f0396d210c26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/websocket.ts: packages/bridge/src/websocket.ts changed 79 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 715 in BridgeWebSocketServer.handleClientMessage at line 3614. 38 of those changes were fix/bug commits, and the other 41 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/websocket.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e008585abc962e5d615488a8a8c675dc6a054cc888e24d2f94e29d1624b9e5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/parser.ts: packages/bridge/src/parser.ts changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 601 in parser.parseClientMessage at line 1559. 11 of those changes were fix/bug commits, and the other 29 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/parser.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3002e4ccd76168abce0c107dc6844cfa26c688043dea9423783737b0294c2049"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/services/bridge_service.dart: apps/mobile/lib/services/bridge_service.dart changed 58 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 142 in BridgeService.connect at line 821. 34 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/bridge_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ec1598435f4277d07b9e9ef701500acc513f8170b398ebe6c17fe31a8aaf7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/models/messages.dart: apps/mobile/lib/models/messages.dart changed 52 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in ServerMessage.fromJson at line 879. 20 of those changes were fix/bug commits, and the other 32 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/models/messages.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fa5b4778222ff484baedcbe6e2493fb94ee49b3c241b7e7fd9ea3b382c0a6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart: apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 185 in ChatInputWithOverlays.build at line 107. 12 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5219205b680d019a097ce8d981cdc8bf101ab72dad2e19aca40e1813e4e68180"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart: apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 116 in ChatSessionCubit._applyUpdate at line 667. 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-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ac840128253224089dc6b17e5197ea173f8e18865e5e32cdaeb1ff0943ea21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/session.ts: packages/bridge/src/session.ts changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 138 in SessionManager.create at line 411. 17 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/session.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eaa9d818c102a276f2bd8c9dc70f9be131eca483f73187b7aff4b0522df7a43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/codex_session/codex_session_screen.dart: apps/mobile/lib/features/codex_session/codex_session_screen.dart changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 109 in _CodexChatBody.build at line 667. 10 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/codex_session/codex_session_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"64767e5afbdc848cee48aa1a1e24adca455abf26c716a482978140089ff88d43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/codex-process.ts: packages/bridge/src/codex-process.ts changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in CodexProcess.bootstrap at line 2051. 26 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/codex-process.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ea62b98355974e33f8c141520e928a1af297602417a6bb577ccceba96c0339"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/claude_session/claude_session_screen.dart: apps/mobile/lib/features/claude_session/claude_session_screen.dart changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in _ChatScreenBody.build at line 607. 9 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c694ad2e8c374f530055ab1a78e1b09e1daaf7a57ed37359e0f5c47f05028ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/sdk-process.ts: packages/bridge/src/sdk-process.ts changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in SdkProcess.processMessages at line 1778. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/sdk-process.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"204f05d45c7e22304c9e88bad0ea40bdffedb665cf156e89871a16d99691bb48"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/message_bubble.dart: apps/mobile/lib/widgets/message_bubble.dart changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in ServerMessageWidget.build 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-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/message_bubble.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/message_bubble.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"08efa73fb47c97f143bc1636960123eb691414e8c83241f8501bd54afad821d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/sessions-index.ts: packages/bridge/src/sessions-index.ts changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in sessions-index.parseCodexSessionJsonl at line 1619. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/sessions-index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"7207447e1ff3319ea3be4d3e59b0c5afa35a6d9b34938d661e695f89eaca2bff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/session_list/session_list_screen.dart: apps/mobile/lib/features/session_list/session_list_screen.dart changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in _SessionListScreenState._startNewSession at line 980. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/session_list_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1c2c5807d2045098b3da5f107704b9988b087f3e9885e2cfb6f8a24dcce5b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/session_list/widgets/home_content.dart: apps/mobile/lib/features/session_list/widgets/home_content.dart changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in HomeContentState._buildContent at line 577. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/widgets/home_content.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4347937b746e961ce0224fdc15c961855b545fb85881e1075501f17c6b25ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/new_session_sheet.dart: apps/mobile/lib/widgets/new_session_sheet.dart changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in _OptionsSection.build at line 2933. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/new_session_sheet.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c474a15b7e4833e523a09757b036868efb0752f4d2ef84eac0633829f403ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/session_list/workspace_shell_screen.dart: apps/mobile/lib/features/session_list/workspace_shell_screen.dart changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in WorkspaceShellScreenState.build at line 709. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/workspace_shell_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"be31d229cf970b109b9579962d8ccb1e90c31d274ae7373cb36f48c485520b13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/services/chat_message_handler.dart: apps/mobile/lib/services/chat_message_handler.dart changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in ChatMessageHandler._handleHistory at line 656. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/chat_message_handler.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36687671802e797b51fc505218c512403da8f34e199a16e3bd93a25be46c269"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/file_peek/file_peek_sheet.dart: apps/mobile/lib/features/file_peek/file_peek_sheet.dart changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in FilePeekContentState.build at line 420. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/file_peek/file_peek_sheet.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89e35dde5f8633a95dbeeca59f5a7ee9763223aaeddf2239e18d8f75ece85bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/session_card.dart: apps/mobile/lib/widgets/session_card.dart changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in _RunningSessionCardState.build at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/session_card.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae04f9231be65ed3594e322dc4157cc7ee869db316053f8c8a0e7720edc9620"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart: apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in _ChatMessageListState.build at line 622. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6c5b029f6a0c0edcc5815dff3d83fac555e36d16f30335affa604e32fe8206"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/index.ts: packages/bridge/src/index.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in index.startServer at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c9d3ce59269ee2391382172b7e1efb6f9d5e93f6decb6b6f0ce07387ba11dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/services/mock_bridge_service.dart: apps/mobile/lib/services/mock_bridge_service.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in MockBridgeService.send at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/mock_bridge_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/mock_bridge_service.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa9992ff7b30c0f1dba84187307d48418b9733bf4cffe500d858c73e04dd0d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/chat_input_bar.dart: apps/mobile/lib/widgets/chat_input_bar.dart changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in _InputTextFieldState.didChangeAppLifecycleState at line 873. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/chat_input_bar.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/chat_input_bar.dart"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e9cfb17f06e711e6397d43647753986c5639f3b70743260e6fe1e75a1c1646"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/git/git_screen.dart: apps/mobile/lib/features/git/git_screen.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in _GitScreenBodyState.build at line 323. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/git/git_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"03555157154a052159c8c2af3b8788082e2d6f94113d836ebe414065aee822d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/doctor.ts: packages/bridge/src/doctor.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in doctor.checkCliProviders at line 112. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/doctor.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"90851aca6f431123ade6d4c8189f2086122d7bba11f9d329a2bb0bf5e53b21dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart: apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in SessionResumeCoordinator.resume at line 155. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8953ffc60916fb86253516894c27eda1e7ce7eec5302a1e09da9496093e44b85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/setup-systemd.ts: packages/bridge/src/setup-systemd.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in setup-systemd.setupSystemd at line 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/setup-systemd.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69c1d201ca3cee53dc0efc8ff4fb58b0b02757f102eae2270c9ec73f6247681"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/setup-launchd.ts: packages/bridge/src/setup-launchd.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in setup-launchd.setupLaunchd at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/setup-launchd.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b8313633c519cf6b7317c24893051b50b6bf5db2852a5e3d92ef12e8391623"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/settings/widgets/usage_section.dart: apps/mobile/lib/features/settings/widgets/usage_section.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _CompactWindowRow.build at line 745. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/settings/widgets/usage_section.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/usage_section.dart"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ceabcc34a7f5fd0b0ecb1d95f119deefe135b48062c5926f3228837abacbdb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart: apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _AskQuestionLayout.build at line 603. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/ask_user_question_widget.dart"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23fd2ef06f0dcf7f86500121b0632248259d54cca752dc2d2b845b5d10b9960"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/services/machine_manager_service.dart: apps/mobile/lib/services/machine_manager_service.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in MachineManagerService.checkHealth at line 706. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/machine_manager_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73c90bfe824c3a4e4522ad5ea8b04d5bf502cd4a7c5ae6d0e9e536949353781"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/widgets/bubbles/result_chip.dart: apps/mobile/lib/widgets/bubbles/result_chip.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ResultChip.build at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/widgets/bubbles/result_chip.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/result_chip.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f4db01b32bd3e512b15fccc65bd808cbc61bb0fbd95d93bb4c77af952d01f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/git-operations.ts: packages/bridge/src/git-operations.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in git-operations.listGitFilesWithArgsForClient at line 380. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/git-operations.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd5899dbe4d20800f20c3b53372135e4abd84028b02fea6cc28de7d2ca87e3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/gallery/gallery_screen.dart: apps/mobile/lib/features/gallery/gallery_screen.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GalleryScreen.build at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/gallery/gallery_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/gallery_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"077003d6756636af394718721ba61a736fa9da09be5e66cd8ea68cf80cacba6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart: apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in BridgeUpdateStatusTile.build at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/widgets/bridge_update_status_tile.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c6f5ab9e225cdb8568257dc8f44c298b38d776d1877be73a9b8e963aebcfd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart: apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GalleryImageViewer.build at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/gallery/widgets/gallery_image_viewer.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c7661a565bd103f4ce33ae815930361d3a6a28193452209672e30ef3186058"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/media-store.ts: packages/bridge/src/media-store.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MediaStore.register 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-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/media-store.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0e6d9f9656886b4c34cef14aa2fe1c13424fe4ee13c8d2e43ca029d8fa457d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/prompt-history-store.ts: packages/bridge/src/prompt-history-store.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PromptHistoryStore.mergeEntry at line 403. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/prompt-history-store.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8be80b48e6c101a37355b57b2e888b2431e84c177287d2927b49a5271a45c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/bridge/src/directory-listing.ts: packages/bridge/src/directory-listing.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in directory-listing.listAllowedDirectories at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/directory-listing.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f59adaa65325f3903b4c049c1bf18c442de8076162bf63ce008a758f67219e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart: apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _RecentAdvancedSearchSheetState.build at line 592. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/recent_session_filter_sheets.dart"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c1e501c5c2884c51ba2b7f7f62f3d7e54cafb11ec39bafc6b562f94be01bc7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/session_list/state/session_list_cubit.dart: apps/mobile/lib/features/session_list/state/session_list_cubit.dart changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is SessionListCubit._requestWithCurrentFilters at line 560), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mobile): keep recent session filters across reconnects and day changes\u201D; \u201Cfix(mobile): keep pinned sessions visible across filters and pages\u201D; \u201Cfix(projects): preserve workspace identity across sessions\u201D; \u201Cfix(sessions): correlate recent session requests\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/session_list/state/session_list_cubit.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/state/session_list_cubit.dart"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df36f8ec148c15f1914817d20b997ab4aa1dca644dab8d6da10a406c46a0ec7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/chat_session/widgets/image_attachment_sheet.dart: apps/mobile/lib/features/chat_session/widgets/image_attachment_sheet.dart 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 3 (its worst body is ImageAttachmentSheet.build at line 24), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ios): restore plain attachment menu appearance\u201D; \u201Cfix(ios): paste directly from attachment menu\u201D; \u201Cfix(ios): preserve clipboard attachment menu appearance\u201D; \u201Cfix(ios): paste clipboard images with native control\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/chat_session/widgets/image_attachment_sheet.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/image_attachment_sheet.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf76bcab5f5ed5509647726e6fa9182cbc58c332a9a9d7c98f8bce25698b9a3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/bridge/src/auto-rename.ts: packages/bridge/src/auto-rename.ts changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is auto-rename.sanitizeAutoRenameName at line 116), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(bridge): unwrap fenced auto-rename output (#336)\u201D; \u201Cfix(bridge): support npm-installed Codex for auto-rename on Windows (#332)\u201D; \u201Cfix(bridge): run auto-rename CLI asynchronously with a timeout\u201D; \u201Cfix(bridge): derive session titles from user text\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/auto-rename.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/auto-rename.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"689f1e66a7600fa184432d66a52ec5d4e87854f7df659c7023c4296a92e63c04"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/github/widgets/empty_chat_github_button.dart: apps/mobile/lib/features/github/widgets/empty_chat_github_button.dart 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 6 (its worst body is _EmptyChatGitHubButtonState._scheduleAutoOpen at line 103), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mobile): make the empty chat Issues / PRs entry an optional, quiet text button\u201D; \u201Cfix(mobile): bottom-align the Issues / PRs button and compact the detail header\u201D; \u201Cfix(mobile): keep Issues / PRs selection out of local commands and off covered chats\u201D; \u201Cfix(mobile): harden GitHub triage sending, disconnects, and selection\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/github/widgets/empty_chat_github_button.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/widgets/empty_chat_github_button.dart"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2ee8bf17db254c5fd803aaab8e6f14f68e2fcdabcb8b28ace8491e9e56a5b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/ios/Runner/ImagePasteView.swift: apps/mobile/ios/Runner/ImagePasteView.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is ImagePasteReader.read at line 115), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ios): expand paste control across attachment row\u201D; \u201Cfix(ios): align native paste control to menu leading edge\u201D; \u201Cfix(ios): paste directly from attachment menu\u201D; \u201Cfix(ios): paste images directly from native context menu\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/ios/Runner/ImagePasteView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/ios/Runner/ImagePasteView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eebb67d666e7c2d0f64211292b746fc89ac22e8aa18658490062222a34157f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/chat_session/widgets/ios_image_paste_button.dart: apps/mobile/lib/features/chat_session/widgets/ios_image_paste_button.dart changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is _IOSImagePasteButtonState._handleMethodCall at line 60), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ios): expand paste control across attachment row\u201D; \u201Cfix(ios): restore plain attachment menu appearance\u201D; \u201Cfix(ios): paste directly from attachment menu\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/chat_session/widgets/ios_image_paste_button.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/ios_image_paste_button.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"969709c1d103a38f2c736da513d7e4663a85a1db0db245ad9e91d102206ccabe"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart: apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is FilePeekPlaybackRateMenu.build at line 355), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mobile): rebuild video controls so play button never overlaps seek bar\u201D; \u201Cfix(mobile): apply playback speed after video controls hide\u201D; \u201Cfix(mobile): improve video control contrast on bright and dark frames\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/widgets/file_peek_media_controls.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"80074e5934094e832c91a9f95dd545ba8a8609be32afb604cb68ab870e6e3f60"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/services/session_runtime_store.dart: apps/mobile/lib/services/session_runtime_store.dart 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 SessionRuntimeStore.applyServerMessage at line 104), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: keep fork and Claude settings state consistent\u201D; \u201Cfix(session): hydrate notification-opened sessions\u201D; \u201Cfix(session): preserve completion display order\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/session_runtime_store.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/session_runtime_store.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fc95086c11fc063e5f1976024c5d82c42d5e04ed2e4a103e619d02b7b9eaa2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/bridge/src/path-utils.ts: packages/bridge/src/path-utils.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 6 (its worst body is path-utils.isPathWithinAllowedDirectory at line 122), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(bridge): match the allowed root case-insensitively on Windows (#337)\u201D; \u201Cfix(bridge): correlate rejected resume errors and warn on \u0027;\u0027 in dir lists\u201D; \u201Cfix(bridge): allow allowed-dir children whose names start with two dots\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/path-utils.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/path-utils.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c943b20f2c86e644c1e51418985579be50845b04e86e3e511e57f10d4759b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/features/github/github_screen.dart: apps/mobile/lib/features/github/github_screen.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is GitHubItemList.build at line 354), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mobile): bottom-align the Issues / PRs button and compact the detail header\u201D; \u201Cfix(mobile): load both GitHub tabs up front and show draft notice only with drafts\u201D; \u201Cfix(mobile): harden GitHub triage sending, disconnects, and selection\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/features/github/github_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/github/github_screen.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1bf99c5ce22d271405cff6cd173f147e35965a78e2e2eea4c978e287a493c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/bridge/src/repository-root.ts: packages/bridge/src/repository-root.ts changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is repository-root.normalizeRepositoryUrl at line 55), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(bridge): match git remotes that spell out the SSH default port (#341)\u201D; \u201Cfix(bridge): make repository grouping deterministic and refreshable\u201D; \u201Cfix(bridge): keep path casing when matching non-GitHub remotes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- packages/bridge/src/repository-root.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/repository-root.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07067cb90222fef88428e3c4dd9fdaa2fceb873e4c6160f68768c307d123d27a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/mobile/lib/services/session_pending_input_state.dart: apps/mobile/lib/services/session_pending_input_state.dart changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is PendingUserInputQueue.apply at line 47), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mobile): track actionable prompts independently of chat history\u201D; \u201Cfix(chat): queue pending user prompts in arrival order\u201D; \u201Cfix(mobile): preserve approval queue ordering\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:03:50 \u002B09:00\u0027 --until=\u00272026-11-17 11:03:50 \u002B09:00\u0027 --full-history --no-merges -- apps/mobile/lib/services/session_pending_input_state.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/session_pending_input_state.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c054b613f03e4c5bebfb7ee5f13966d2d79b615f096ce85afa40e76690bb0967"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Rate limit check\u0022 repeats the code it sits on: 3 of its 3 words (rate, limit, check) are already in \u0060const rateLimitOp = parsed.op === \u0022notify\u0022 ? \u0022notify\u0022 as const : \u0022token\u0022 as const;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb579e822716e19ee6f79e2dc41bc1444bd38288bb102ed24b1665dfe9a27b8"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022git_create_branch\u0022 repeats the code it sits on: 3 of its 3 words (git, create, branch) are already in \u0060it(\u0022parses git_create_branch\u0022, () =\u003E\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.test.ts"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e541b96aa4e4a799af823bbd416db40264300e35f51cf13c73090e281e83dee"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022git_checkout_branch\u0022 repeats the code it sits on: 3 of its 3 words (git, checkout, branch) are already in \u0060it(\u0022parses git_checkout_branch\u0022, () =\u003E\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.test.ts"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6d42ebf6dc83869dfe427e3a19e07927c1f9545047bef1c025ffbac4ede620"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022git_revert_file\u0022 repeats the code it sits on: 3 of its 3 words (git, revert, file) are already in \u0060it(\u0022parses git_revert_file\u0022, () =\u003E\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.test.ts"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4d0d21550fcdd7feddd0e614cbfcb28a8a3af46e89c9015cda67da2de92fd4"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Users/x/Workspace/vibetunnel/.claude/worktrees/feature\u0022 repeats the code it sits on: 6 of its 6 words (users, workspace, vibetunnel, claude, worktrees, feature) are already in \u0060expect(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.test.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"967a600bd9fa44732aeaef9c7b7d886f8723a8440fd32ff7da6dd9216425a937"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Build environment lines\u0022 repeats the code it sits on: 3 of its 3 words (build, environment, lines) are already in \u0060let envLines = \u0060Environment=PATH=${buildServicePath(nodeBinDir)}\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9176ab0cbd0b3e8009b2a6fbade607a4912b3a38b75b007dd48f51478de6b7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Look up worktree mapping for this Claude session\u0022 repeats the code it sits on: 4 of its 5 words (worktree, mapping, claude, session) are already in \u0060const wtMapping = this.worktreeStore.get(claudeSessionId);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":6836}}}],"partialFingerprints":{"codehealthFindingId/v1":"545e9b29333339e1be357788ce99b718e88a19ef5d9f1971a6e59120afceb0a4"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060apps/mobile\u0060 (121181 LoC, 819 module-visible types across 80 directories) overshoots its size bounds. 2 of 11 build unit(s) (Bundler, Gradle, Xcode, npm, pub) overshoot their size bounds, lowering Project Cohesion to 6.4/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/Gemfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e6045f7aea0f6deb07c4eab0e67d96a9f77c7b600f04edd00ae603835b3e17"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060packages/bridge\u0060 (39854 LoC, 257 module-visible types across 2 directories) overshoots its size bounds. 2 of 11 build unit(s) (Bundler, Gradle, Xcode, npm, pub) overshoot their size bounds, lowering Project Cohesion to 6.4/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6edcd650b1f034078b79cfc3687c5f7447b925f6c96325367cb66c0f73db3d"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"049bb0cbf851df15e2141e75565ae2d3f2a74c80ddbf923dadf68c534e151f8a"},"properties":{"commitSha":"42be1c9582b20a875f7036afb51fc09ca0a94e87"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea72634a1fb6874e52262f3c8a2305efcfdc0a4d7f99c4fdf0c0ea0342a946d4"},"properties":{"commitSha":"8664709445a83dbeb35a04abe08d442a7adf6926"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cf71054bf3fba2644e74afb2ef2d2cf5d008cf55f2b9a1cab3fff5d162d62a5"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35890c8cfd6a451c32e5e438eee92e875271f3102b455dee10f85590e564dcec"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1441e8c15300211f3b01d39e822beab8c38b778e135d19411493a9159cc6e72a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0da4e47dd848502989a4be61e01c50879f2b21b1adebf934d6b787b29e47f80"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"89a5c1b13c9c52a0e4e88c431a2d470406c4348702705e68331563922998bc29"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09f3ee42251137d16c0d90a1f3fa73f28755ec26c0c53d99e6bf78214061e4d1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"0e1789e8db3d83f57fb07aaa95c2836aa1eaf16e28667e888ab564dbbefb1393"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30fd9a8887ca1a49776d5324a219543825597e98a2c307ad1b5ef5baa05a1f9f"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fbd4f0e3c0403ff93bf4504dc21aa42fcf86f68e9c454aaa69a881cbdab4b7f3"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e4c068e7c3632349063b2481a538ec852b50b61eb15c6c6aa9bd5ca61c17985"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51010c43fc79ba96ad53e8794197415a0e19d568abdfca5b1c90e7f7bd02d620"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb893e089b202c9e40324cfd68bbb74d0308c1512c4ef70c5de3ec517a86ae86"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbaea3181fcf411b82e2436fa8d86e55c152ac6140d821c4dff547745b28aa3e"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"52865f6fd96875978d4d00d97f78fddf5b6db64346920bae9fc37537e63d8b44"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8b560e28d6285419668bfbbade7d4763897a399702c8c0881721f50ff9da1ac"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a9ad4c41128716fd556c3516a9e58e7c32e88b898318e3cb54a4a03e5bc5ace"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8f4161cf0b691ca9123bb09f74cc194c7b4c73adc863bcca658d64b4fb06c58"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"116cf2d6188445bbabc40248e1160b7854c2ac0888b25a18831a815c170a0caa"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fc8cfa3358e32d729a1c27a519e0216daeaf467bbeb5de4aaf7b6b4ec4d4ddd"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4754509627ce861b99049d44b34812b83a71d66d50bcfdc7ebe3e11457c0ca24"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"ba831e8008f54eef34c69d23d60a7349db4fe946ad38a09b1fb71d5742e890f1"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"39dd8edea67571bdd3f9a13a078c5cca5c89c6f0ca9ff5854a089756f3ed64e2"},"properties":{"dependency":{"package":"@fastify/busboy","version":"3.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.2.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab4792da2cdce476c3be1ac5c9cb20a78dc7d304520f8dd52e69dd67c45a18f8"},"properties":{"dependency":{"package":"picomatch","version":"4.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26d39ae943ce61134bcfaf0c125eb9a5cdb75929a84093ea273a1bdac63251f7"},"properties":{"dependency":{"package":"@modelcontextprotocol/sdk","version":"1.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.32.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9eabe50e921d2c2a306c1659895f52c11083f6a9b5afd9baccfb22db496e06e7"},"properties":{"dependency":{"package":"body-parser","version":"2.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.4.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2567ea2f56ae79977dadd3bf380bcb8e0d5204997d0db598b3e49e1891ff5525"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.1.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a59d8b1453f784b335dd86e14fce5925604dbea6330bfc74d7748c50a4a540ea"},"properties":{"dependency":{"package":"hono","version":"4.12.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.12.25","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59e28f0fc3ceb219b9638eae73d38b2bcb54c3283507449da6396114e6cfcf26"},"properties":{"dependency":{"package":"ip-address","version":"10.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"10.3.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2e781aeeb54d3ae845ae518d9f9b4fabc9ce4afb31ec2d5eceab2c30473e850"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66e45c79338e5e1175240ddc87a7925c38e72d7410d4eeac67a42d8a759d0ebc"},"properties":{"dependency":{"package":"picomatch","version":"4.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1e03b14734319d875bd0dac1f97ef300c97b23c9a470ff6af28213112e543c4"},"properties":{"dependency":{"package":"postcss","version":"8.5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.12","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a97b7f163f2008119363b8420b4cfa12eea98423470b15ce1ecb79adbbd8728"},"properties":{"dependency":{"package":"rollup","version":"4.57.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.59.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a143e49def50f6267786be10dea52190e0d09245364207bf6c8be5fcae3b49ff"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b694dace86fb7d15873b2ddd65002632093db12bc6146d23cde087273cc549f5"},"properties":{"dependency":{"package":"vite","version":"7.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.3.7","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87acedc051cb89a8ce4b5f36de7264e8d1c5c5fd3ed662cda178e80e0c31f9d8"},"properties":{"dependency":{"package":"zod","version":"4.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1eb43f1bda3013a21cfec88972e0756178879f7521e786d53ccc17d8c1675c75"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d81ef8b6ca1c41f7e20842409b4975cf6395c71117a869cb83b355dba11135c0"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"398c201d1d5c575cbc8e91dfa73ba9fb901e97985774812cb5d46a5cd46ef9e6"},"properties":{"dependency":{"package":"@hono/node-server","version":"1.19.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.19.13","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98645b36f3d8a19e1462b10ae8d23a6853b810993981c4fc4065e762fff2771b"},"properties":{"dependency":{"package":"qs","version":"6.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","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":"2b6885eadeb4cbe773b915b70f7b9b868ef051a9fa0699f1f41e169e926f58b4"}},{"ruleId":"D31","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":"203b4f3581fed6a54614661d92e92dc57435b81f4520dab9ae6a37c789ecb4cc"},"taxa":[{"id":"CWE-321","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"273d74d99271e981ab512a6e0d63e998ed72e8efba9d71e3b0922003c5f21397"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70251a842fd499fa3dc6df9437b65c6e87f4bebfc224bee42ea0b2ade1e10744"}},{"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":"8678acf1252eceb2437fd31a30289e84cd32e19b489b40206825f83bb12f03bc"}},{"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":"d50c04383ea213413c1b3c77534ce65673225d0586744b15d250007aa62da503"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: setup-launchd.ts \u2194 setup-systemd.ts: \u0060packages/bridge/src/setup-launchd.ts\u0060 and \u0060packages/bridge/src/setup-systemd.ts\u0060 change together 86% of the time (12 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 12 shared commits counted here, the most recent 3 are \u0060c622aca2\u0060 feat(bridge)!: remove mDNS advertisement; \u0060a5ebc142\u0060 feat(bridge): add BRIDGE_READONLY_DIRS for read-only file access; \u00605f22cb4e\u0060 feat(bridge): require an API key by default \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5b620ee24f7b8de9e67557b678485ab3a4cff5438cb5d0bfee651b7372291e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings_screen.dart \u2194 settings_state.dart: \u0060apps/mobile/lib/features/settings/settings_screen.dart\u0060 and \u0060apps/mobile/lib/features/settings/state/settings_state.dart\u0060 change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00605072c61d\u0060 fix(mobile): preserve text when using voice input; \u0060b12d68bb\u0060 feat(settings): add compact text density setting; \u0060b5278467\u0060 feat(mobile): add scroll-first git diff mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f974d38cda9b8a66925d1ebf984405820620b8393e416fb65e7b262fb69c8c9a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: git_screen.dart, diff_file_header.dart, diff_hunk_widget.dart: 3 files \u2014 \u0060apps/mobile/lib/features/git/git_screen.dart\u0060, \u0060apps/mobile/lib/features/git/widgets/diff_file_header.dart\u0060, \u0060apps/mobile/lib/features/git/widgets/diff_hunk_widget.dart\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26526f6bf6280ace1feafacca4cae8603197963fef789ec9bb13c04e5cbcb6b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: session_list_screen.dart \u2194 machine_manager_service.dart: \u0060apps/mobile/lib/features/session_list/session_list_screen.dart\u0060 and \u0060apps/mobile/lib/services/machine_manager_service.dart\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060544b0c84\u0060 fix(mobile): clear stale machine error after the bridge reconnects; \u00606e5151be\u0060 fix(app): handle IPv6 bridge endpoints consistently (#162); \u006007512e2f\u0060 fix(mobile): preserve saved ssh private keys \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1721f00433ac7be1103da3ec59264f0f93ba89fead0c941a4a273d366d38a1f7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: streaming_bubble.dart \u2192 assistant_bubble.dart, plan_card.dart, result_chip.dart, plan_detail_sheet.dart: \u0060apps/mobile/lib/widgets/bubbles/streaming_bubble.dart\u0060 changes together with 4 other files \u2014 \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart\u0060, \u0060apps/mobile/lib/widgets/bubbles/plan_card.dart\u0060, \u0060apps/mobile/lib/widgets/bubbles/result_chip.dart\u0060, \u0060apps/mobile/lib/widgets/plan_detail_sheet.dart\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":"apps/mobile/lib/widgets/bubbles/streaming_bubble.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb71242d60072951cfd6d3d3a057ca8bc28133e92604a4c85dbd45d70e2707a1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mock_scenarios.dart \u2194 mock_sessions.dart: \u0060apps/mobile/lib/mock/mock_scenarios.dart\u0060 and \u0060apps/mobile/lib/mock/mock_sessions.dart\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00605fc0babf\u0060 feat(codex): support always allow for mcp approvals; \u0060bc0ebf1f\u0060 feat(mobile): align codex approval ui with cli; \u00605b5be1f8\u0060 fix(session): prevent duplicate screen on session restart and rewind \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/mock/mock_scenarios.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ca3fba65ecaa3703ba48fb611ff3d1cf0edf7872a70e1ab264ba918303404a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: plan_card.dart \u2194 plan_detail_sheet.dart: \u0060apps/mobile/lib/widgets/bubbles/plan_card.dart\u0060 and \u0060apps/mobile/lib/widgets/plan_detail_sheet.dart\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060e0aec96a\u0060 feat(app): underline markdown links on hover; \u00603d60c6df\u0060 fix(app): autolink localhost URLs in chat markdown; \u00608c075b33\u0060 fix(mobile): improve long session performance \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/plan_card.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb6049c50e0a697ef1321717c27949e9fc180c93d3619d24a1a34d31ed08af0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: websocket.ts \u2192 chat_session_state.dart, mock_bridge_service.dart, message_bubble.dart: \u0060packages/bridge/src/websocket.ts\u0060 changes together with 3 other files \u2014 \u0060apps/mobile/lib/features/chat_session/state/chat_session_state.dart\u0060, \u0060apps/mobile/lib/services/mock_bridge_service.dart\u0060, \u0060apps/mobile/lib/widgets/message_bubble.dart\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae006ef2e03591102dac8a5511f2c4e3b8247136a296ae639010cfde3ce3ed44"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mock_sessions.dart \u2194 session_card.dart: \u0060apps/mobile/lib/mock/mock_sessions.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00605fc0babf\u0060 feat(codex): support always allow for mcp approvals; \u0060bc0ebf1f\u0060 feat(mobile): align codex approval ui with cli; \u0060156895de\u0060 feat(mobile): unify button colors with statusColor and add mock scena\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/mock/mock_sessions.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4315e90c8a50700cd4e5a4b85527d39ce046f64b3444abf399e31df0d1bffc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat_session_state.dart \u2194 chat_message_handler.dart: \u0060apps/mobile/lib/features/chat_session/state/chat_session_state.dart\u0060 and \u0060apps/mobile/lib/services/chat_message_handler.dart\u0060 change together 57% of the time (13 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u0060e75169d4\u0060 feat(mobile): change Claude model, effort and fast mode in session; \u0060e1c2e339\u0060 feat(codex): add opt-in bounded usage-limit recovery; \u00605e3f8d07\u0060 feat(codex): align effort and speed settings UI \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3ff104d76fdb2927582b1f1b158ce1873787fdcdb4ab8de9b70316a712ad5d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: session_list_app_bar.dart \u2194 workspace_shell_screen.dart: \u0060apps/mobile/lib/features/session_list/widgets/session_list_app_bar.dart\u0060 and \u0060apps/mobile/lib/features/session_list/workspace_shell_screen.dart\u0060 change together 55% of the time (12 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00606fee4a1f\u0060 feat(mobile): jump to the app update card from the settings badge; \u006018c8a3f5\u0060 feat(mobile): let the iPhone Duo strip follow the touched pane when u\u2026; \u0060b901d36f\u0060 feat(workspace): preserve navigation and state across adaptive layouts \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/session_list_app_bar.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d8e2d8e634b71015b0b0575f9f7aae6db71e759aed3c745dc5c1a999f5e198"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: status_indicator.dart \u2194 claude_session_screen.dart: \u0060apps/mobile/lib/features/chat_session/widgets/status_indicator.dart\u0060 and \u0060apps/mobile/lib/features/claude_session/claude_session_screen.dart\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060937fa407\u0060 refactor(session): move debug bundle button to status indicator long \u2026; \u006016ad3a0e\u0060 refactor(bridge): move clearContext handling from sdk-process to webs\u2026 (at that commit the files were still \u0060apps/mobile/lib/features/claude_code_session/widgets/status_indicator.dart\u0060 and \u0060apps/mobile/lib/features/claude_code_session/claude_code_session_screen.dart\u0060); \u006020d7071a\u0060 refactor(mobile): UI\u7D30\u304B\u3044\u8ABF\u65744\u4EF6 (at that commit the files were still \u0060apps/mobile/lib/features/claude_code_session/widgets/status_indicator.dart\u0060 and \u0060apps/mobile/lib/features/claude_code_session/claude_code_session_screen.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/status_indicator.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"284bdd86c6430057414ee5006987e42d74b9846931794661166fdc7c2e585e3c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: assistant_bubble.dart \u2194 tool_result_bubble.dart: \u0060apps/mobile/lib/widgets/bubbles/assistant_bubble.dart\u0060 and \u0060apps/mobile/lib/widgets/bubbles/tool_result_bubble.dart\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060e7c8cd77\u0060 perf(mobile): reduce long chat rendering work; \u0060d341e05b\u0060 feat(mobile): add Google search selection menu; \u006028034f38\u0060 feat(codex): support image generation results \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/assistant_bubble.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9b3004714104ef508091931c4eda2c2f9c06a9f7917ef1c7ba051287f45d31"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: git_view_state.dart \u2194 diff_content_list.dart: \u0060apps/mobile/lib/features/git/state/git_view_state.dart\u0060 and \u0060apps/mobile/lib/features/git/widgets/diff_content_list.dart\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006032a96486\u0060 refactor(git): remove legacy diff selection flow; \u0060b96081eb\u0060 fix(git): make wrapped diff the default view; \u0060bc1d442c\u0060 fix(git): improve hunk actions in git screen \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/git_view_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aae6c058bc5c15e8270544804be8d8cf3d604584b500f63feca56580dd607c9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: git-operations.ts \u2194 parser.ts: \u0060packages/bridge/src/git-operations.ts\u0060 and \u0060packages/bridge/src/parser.ts\u0060 change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00607b878a2d\u0060 feat(files): improve explorer and file peek; \u00609a51d012\u0060 perf(bridge): limit client file list payloads (#164); \u0060941f37a5\u0060 feat(git): show dirty status badge in sessions \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7461b4415dd5a5c298684573452794fc096d3bba0f566bbc6855df9cf336e9ee"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: approval_bar.dart \u2194 session_card.dart: \u0060apps/mobile/lib/widgets/approval_bar.dart\u0060 and \u0060apps/mobile/lib/widgets/session_card.dart\u0060 change together 50% of the time (14 of the 28 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 14 shared commits counted here, the most recent 3 are \u0060b3db042f\u0060 fix(mobile): improve MCP approval presentation; \u0060d8a6d603\u0060 fix(mobile): dedupe codex approval why copy; \u00607effa5f0\u0060 fix(mobile): soften codex plan continue label \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/approval_bar.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"faae128fd586405236eb130dbd247210009da73989e3c89dd1533efa68b06fc2"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"040727dc0acb44be54a424f15915ed8bbd50675839ae9c8423847a6aaa5734c6"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b1273c81a1ca9b5eb097489b2567416912a145951451afeec807249ffa5e5b8"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad96cc0d839892587bb05f8ba40187974cfd88b111af2d0aecb8092404d29e63"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"decb2bc1a70bf9d834c5b85d748c2e49131fd5b8c580d39a66568ca0583c8e77"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AppLocalizations (1196 abstract methods): \u0060AppLocalizations\u0060 declares 1196 abstract methods: \u0060notifyGoalProgress\u0060, \u0060notifyGoalComplete\u0060, \u0060notifyGoalBlocked\u0060, \u0060notifyGoalBudgetLimited\u0060, \u0060notifyGoalUsageLimited\u0060, \u0060appTitle\u0060, \u0060projects\u0060, \u0060manageProjects\u0060, \u0060createProject\u0060, \u0060editProject\u0060, \u0060projectName\u0060, \u0060sourceFolders\u0060, \u0060primary\u0060, \u0060makePrimary\u0060, \u0060removeFolder\u0060, \u0060addFolder\u0060, \u0060removeWorkspaceProject\u0060, \u0060noProjectsYet\u0060, \u0060unavailable\u0060, \u0060cancel\u0060, \u0060save\u0060, \u0060delete\u0060, \u0060remove\u0060, \u0060removeProjectTitle\u0060, \u0060removeProjectConfirm\u0060, \u0060rename\u0060, \u0060renameSession\u0060, \u0060pin\u0060, \u0060unpin\u0060, \u0060pinProject\u0060, \u0060unpinProject\u0060, \u0060sessionNameHint\u0060, \u0060clearName\u0060, \u0060connect\u0060, \u0060protocolIncompatibleTitle\u0060, \u0060protocolUpdateAppBody\u0060, \u0060bridgeAuthRequiredTitle\u0060, \u0060bridgeAuthRequiredBody\u0060, \u0060machineApiKeyRequired\u0060, \u0060bridgeAuthEnterApiKey\u0060, and 1156 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/l10n/app_localizations.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e2acd7017dd3ca58a6b885eecdf2e4e95cac2d0bef8c25cafe9e7cb6547e5d"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: BridgeServiceBase (18 abstract methods): \u0060BridgeServiceBase\u0060 declares 18 abstract methods: \u0060messages\u0060, \u0060httpBaseUrl\u0060, \u0060isConnected\u0060, \u0060connectionStatus\u0060, \u0060stoppedSessions\u0060, \u0060send\u0060, \u0060queueInput\u0060, \u0060inputDeliveryWasAttempted\u0060, \u0060requestSessionHistory\u0060, \u0060cachedSessionHistorySeq\u0060, \u0060stopSession\u0060, \u0060requestFileList\u0060, \u0060requestDirectoryListing\u0060, \u0060requestSessionList\u0060, \u0060interrupt\u0060, \u0060fileList\u0060, \u0060sessionList\u0060, \u0060messagesForSession\u0060. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service_base.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da1ae253393b3e56d236bd5716698e93a665cd2e329eedcf87349506134fd9c"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: explore \u2192 file_browser: \u0060_ExploreScreenState\u0060 (slice \u0027explore\u0027) depends on \u0060FileBrowserCubit\u0060 from slice \u0027file_browser\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/explore/explore_screen.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5298b705a5621fa971f802b86aee2beccf1068ba53dcf6164bc67eb6e3550cf4"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: git \u2192 media_feedback: \u0060DiffCommentEditing\u0060 (slice \u0027git\u0027) depends on \u0060CodeAnchor\u0060 from slice \u0027media_feedback\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_comment_presenter.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7f85774d1230e88664a2221baa91021f0968f0b8e6a8f0df3dd97cb004528a"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: git \u2192 media_feedback: \u0060DiffCommentPresenter\u0060 (slice \u0027git\u0027) depends on \u0060MediaFeedbackBinding\u0060 from slice \u0027media_feedback\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_comment_presenter.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18e4f88260fb8a2d6723bb589ef1e2822a63707d39616d2532fb9131f085598"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: git \u2192 media_feedback: \u0060DiffCommentCard\u0060 (slice \u0027git\u0027) depends on \u0060MediaFeedback\u0060 from slice \u0027media_feedback\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_comment_widgets.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ad34d9b1e62f9176270df958e720aeb12aa248459167a4d49f4de3b0487b31"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: git \u2192 media_feedback: \u0060DiffCommentEditor\u0060 (slice \u0027git\u0027) depends on \u0060CodeAnchor\u0060 from slice \u0027media_feedback\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_comment_widgets.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade92524172fa2007f5a974f3f4f189f15d521ec5885da75dae71ddd81016e89"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_link \u2192 session_list: \u0060SessionLinkCubit\u0060 (slice \u0027session_link\u0027) depends on \u0060SessionResumeCoordinator\u0060 from slice \u0027session_list\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_link/state/session_link_cubit.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"946796ce0e5abaeb095b87ad4bdefbfdc180378f084d035ec844fab45a70e34a"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 settings: \u0060HomeContent\u0060 (slice \u0027session_list\u0027) depends on \u0060UsageDisplayMode\u0060 from slice \u0027settings\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab0fe9e9b002ad6ef69ff6da162b7052682de125a1b2c4df2028dd2c6133ef7"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 settings: \u0060UsageStreamSummary\u0060 (slice \u0027session_list\u0027) depends on \u0060UsageDisplayMode\u0060 from slice \u0027settings\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/usage_summary.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7c28a9ef541ea48f8ffd36b5d966a43bd140c81437fee26007753c80cdbe13"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 settings: \u0060UsageSummary\u0060 (slice \u0027session_list\u0027) depends on \u0060UsageDisplayMode\u0060 from slice \u0027settings\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/usage_summary.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcc2b21199d0f1264080b35e8224646cd6947a7d7c5cc972c425e3f83d03969"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 settings: \u0060_ProviderUsageLine\u0060 (slice \u0027session_list\u0027) depends on \u0060UsageDisplayMode\u0060 from slice \u0027settings\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/usage_summary.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3432e1edc8e019b8780241284b818b308461210db229e09a03c00312e17137"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 settings: \u0060_UsageMetric\u0060 (slice \u0027session_list\u0027) depends on \u0060UsageDisplayMode\u0060 from slice \u0027settings\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/usage_summary.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8c505b9d83e82fb41226bb00af5f48aaefa63151c32620bb083687573a60d0"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 workspace: \u0060WorkspaceShellScreenState\u0060 (slice \u0027session_list\u0027) depends on \u0060WorkspaceNavigationCubit\u0060 from slice \u0027workspace\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e057df40e3457b1694377eb666c79a0db745514dc6aac21eb2b982ab2d90a0"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 workspace: \u0060_WorkspaceToolPaneHost\u0060 (slice \u0027session_list\u0027) depends on \u0060WorkspaceToolPaneData\u0060 from slice \u0027workspace\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"506509ef9e3fcf37f1493c70aebab2a05938ead827e9064975d6bd84a41fc74b"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: session_list \u2192 workspace: \u0060_WorkspaceContentHost\u0060 (slice \u0027session_list\u0027) depends on \u0060WorkspaceCenterRoot\u0060 from slice \u0027workspace\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/workspace_shell_screen.dart"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2de963dac6ef2c6d142491b5d429d9e6fb8f26d1a3aaefa0693afa9e3f8241"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): SessionResumeCoordinator.resume: \u0060SessionResumeCoordinator.resume\u0060 performs two independent DURABLE writes \u2014 \u0060_codexProfileStore\u0060 (a durable store) and \u0060_claudeSettingsStore\u0060 (a second durable store) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a07db114e185f26def641b4c126edd5957e7b56a8d1f1f3515c152d6cc8447"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 3 ADR-shaped document(s) detected by content \u2014 \u0060docs/design/codex-additional-writable-roots-mobile-ui.md\u0060, \u0060docs/design/codex-additional-writable-roots.md\u0060, \u0060docs/design/linux-desktop-support.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/8 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060apps/menubar\u0060, \u0060apps/mobile/ios\u0060, \u0060apps/mobile_preview\u0060, \u0060apps/mobile_preview/macos\u0060, \u0060packages/bridge\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 as a CI step. What was searched, so you can tell an absence from a miss: the 19 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch gradle: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gradle\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3bff8eed2eb29302c3d10644f1ecba23171c77cd6c406b6dfa078dfc05ad87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/android-release.yml"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060shell\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeProcessManager.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e62ae711f81ff17db8fefde057bd52e1571daec67f258de7188547a88925068"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runDoctorCLI\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/DoctorRunner.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95b863a7261ba703f7c4d572f0f2519b6ff845133b92049372d3a48fd580544"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdtempSync\u0060 in \u0060runCodexAutoRename\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/auto-rename.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"778dc5c0178083a6352f797a05ac48be33c1507d6cbb5dd8091653757d3a219d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060runCodexAutoRename\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/auto-rename.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12697bfae3958092280c1cf91a2d4f10d4f5e8d61596e9db14b402c477691ad"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060runCodexAutoRename\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/auto-rename.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"afac2304d56e947fcba73d2a9409a8ac088cb042cdbd005d1b789422847758c0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060checkCliProviders\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e80a5f77e200f034a8c7f99f39cc4ea7130c7b83951fd5f2e1134a89559b64"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060checkDataDirectory\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc4ad50d838222e06bf958cb93dd93fcd9b6779669ae3aef406583495660c8c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060accessSync\u0060 in \u0060checkDataDirectory\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459f86a0a10e93bc3eb0c4e2d720c1e5e7c3227470e7786dd56fd3b4499389d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060checkLaunchdService\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5d40bf54d19347196e648f0d0cc9f3995f9d4c29f55a5ff3d59aa5f49c2d6c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060checkSystemdService\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04e9bfa4f8744f89c3f2599a20a35d4e5fc34c505ffad19daf3a05f7e87970d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060checkKeychainAccess\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c48fae4e436116c27cde9882b13cfc50b27b4f59935e8707eab8c2ece0da12"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execFileSync\u0060 in \u0060checkKeychainAccess\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"171471866fca65ddc38bb6032f2f24a075cf4e29984affc119dc5d4c4767d6a1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execFileSync\u0060 in \u0060bootstrapProject\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-bootstrap.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b04efe165297bf23374e75722a132c61df7a892dcd75275dc6ff80f9004726"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execFileSync\u0060 in \u0060handleClientMessage\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8f584266e14dab2f94a3a562077213641b0aaf8592ff87b49a81af88234de3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execFileSync\u0060 in \u0060handleClientMessage\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7164}}}],"partialFingerprints":{"codehealthFindingId/v1":"43138448b7f4e27a534fbbcaebefefefe754b23f5cd2027a0ddaac8b1c6c8308"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060callback to void\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7388}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf761d7adcb04d07f7375fdfc5e489a41937b73076347ef3b81f073f5b8ec66"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060collectImageChanges\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f879825086fa30692f9cb637e4ed4b4ea19e2e363bab54b29ef3bf2f2d8e9281"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:3717 \u00B7 packages/bridge/src/websocket.ts:6480 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3717}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f8e96a3de8ed94339fb8fc6ae41cad44df93b364d14f529ce00be45be3b97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): packages/bridge/src/setup-launchd.ts:47 \u00B7 packages/bridge/src/setup-systemd.ts:96 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8433b4496ebaaa3389e7541a4cdd7e42056d4b5b42f5ac14568639e486170ee5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): packages/bridge/src/setup-launchd.ts:93 \u00B7 packages/bridge/src/setup-systemd.ts:148 \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":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"005d6de71650d5b941bb35b1598914033acfb0d2bea0243dd0dba1031c762b8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:5444 \u00B7 packages/bridge/src/websocket.ts:5535 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5444}}}],"partialFingerprints":{"codehealthFindingId/v1":"483b086419e2af6c3215a563df265a7adbc766c1137cc2aecb06ded12b9c9316"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:8608 \u00B7 packages/bridge/src/websocket.ts:8658 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":8608}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e9d64d33e229ba3f41aee4dcf715b1f303ffa37f2e736282c237b6731b02c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:5738 \u00B7 packages/bridge/src/websocket.ts:5772 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5738}}}],"partialFingerprints":{"codehealthFindingId/v1":"2465304d04965ca80d3a621d91560b6b5469ba57d1bebc8ca59c646f5cc5c5b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/bridge/src/doctor.ts:493 \u00B7 packages/bridge/src/doctor.ts:542 \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":"packages/bridge/src/doctor.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bf9b9281674ebb4c45f1c1d00599969e76c3927074540d5ab468ceb7100189"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4796 \u00B7 packages/bridge/src/websocket.ts:4889 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4796}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1430362f388bd5f706255ee2a9ca3d2ff0d77a3ac92370db6d596d8203d6061"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4845 \u00B7 packages/bridge/src/websocket.ts:5494 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4845}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aa7370481911f9d81724eea3e970dc7944f2523eeebedfeb5a2326cf930d78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/bridge/src/claude-usage.ts:134 \u00B7 packages/bridge/src/sdk-process.ts:213 \u2014 the two spans are one implementation copied and then locally edited \u2014 119 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":"packages/bridge/src/claude-usage.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bca2ed1a13ca50d425a28cac75dc8acf793eb6a555140cf7eb66ce9e080b45f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/bridge/src/debug-trace-store.ts:61 \u00B7 packages/bridge/src/recording-store.ts:180 \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":"packages/bridge/src/debug-trace-store.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6330bf067977cbd54bf132ebed9f5f80e85bb78a196f79d84fef5892af2abf1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:2980 \u00B7 packages/bridge/src/codex-process.ts:3010 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2980}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4fbce61a391d21b7eac0cdc14471f8cea81fbd31d4a6028cb0e2009ef755f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4424 \u00B7 packages/bridge/src/websocket.ts:4451 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4424}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb16651b2c8388c68d88ea19ac1fb89c167ac491c14f026c92ffbadf654d765"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/bridge/src/markdown-images.ts:108 \u00B7 packages/bridge/src/markdown-images.ts:155 \u2014 the two spans are one implementation copied and then locally edited \u2014 155 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":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1ea627431eccbb54aec933a7200d6a707101dcb4c63052e7dc2297712d1ff1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4913 \u00B7 packages/bridge/src/websocket.ts:5564 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4913}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d2a541fd112630211d38c63d33856199c5ee3d908f7a7416fd895943301358"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:7168 \u00B7 packages/bridge/src/websocket.ts:7196 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":7168}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc6a083b597167434e3fc0f32dd7c54c2087b98f1cf32a19ce858ce7d2f5b51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:9510 \u00B7 packages/bridge/src/websocket.ts:9553 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":9510}}}],"partialFingerprints":{"codehealthFindingId/v1":"360822a15ea23d168ac901281cf85140e1e97dfcc86464665913d870e87417e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): packages/bridge/src/codex-transport.ts:86 \u00B7 packages/bridge/src/codex-transport.ts:256 \u2014 the two spans are one implementation copied and then locally edited \u2014 126 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":"packages/bridge/src/codex-transport.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b77703f69e865d2ff359e45bb19d904992b850b40f6b89c41217a0de154b73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:6597 \u00B7 packages/bridge/src/websocket.ts:6845 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":6597}}}],"partialFingerprints":{"codehealthFindingId/v1":"488cc30525b9450862ff17cb92da858e3b2ad713f7ab0c123c6d913b99357d66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:6569 \u00B7 packages/bridge/src/websocket.ts:6816 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":6569}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9be22408316fa011176fcd8ff650ff17c6dfde3c0c39d5f90f8779074803bab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 9 locations): packages/bridge/src/websocket.ts:7972 \u00B7 packages/bridge/src/websocket.ts:8000 \u00B7 packages/bridge/src/websocket.ts:8028 \u00B7 packages/bridge/src/websocket.ts:8121 \u00B7 \u002B5 more site(s) not listed \u2014 all 9 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":7972}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e395195a32df4688031502c9e13463a884bca73688f63330a7e8f877dfdd79f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): packages/bridge/src/websocket.ts:8929 \u00B7 packages/bridge/src/websocket.ts:8962 \u00B7 packages/bridge/src/websocket.ts:9000 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":8929}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a74c284779e57920ed41873f3d0d6bf8a578b4ecf89b987d9ca48dfa931386"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:7227 \u00B7 packages/bridge/src/websocket.ts:7257 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":7227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf53b35ff08ffd45d355120ddb58b9d3cd89f2f0c2a582a3f505ea58df9751"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:8111 \u00B7 packages/bridge/src/websocket.ts:8287 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":8111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1f4377d093cfb020a06f054d3a4b1b1009bcdd77a0468d458a440e5efd438b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:10877 \u00B7 packages/bridge/src/websocket.ts:11012 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":10877}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23f6655c3ae7449f3c8181f798f7b9815b3e3a171bf5fb9b4f58fe42b3f2313"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1684 \u00B7 packages/bridge/src/parser.ts:1725 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"a864d3a9032c496681ac0fe1c6316aba765cf6f2c77231f2c8b132e0f4f98572"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:2215 \u00B7 packages/bridge/src/sessions-index.ts:2266 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d7f9cd745cc5c007b74f66c66abd9173431c61c9bba8b6b0aa0d397e3779fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:3996 \u00B7 packages/bridge/src/sessions-index.ts:4117 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3996}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb206b4f4aeb123e709a58ba978e7af07d873dd6a86a211392425fc394a7fa41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:3254 \u00B7 packages/bridge/src/websocket.ts:3343 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fb4a528695e489d5bf65630f58f44bd9831887030f4e08cd9ec1f0d8487372"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): packages/bridge/src/websocket.ts:8018 \u00B7 packages/bridge/src/websocket.ts:8203 \u00B7 packages/bridge/src/websocket.ts:8231 \u00B7 packages/bridge/src/websocket.ts:8259 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":8018}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6060443e087e7930fe2b879eedded89efe220d122eb42c1970d2eb5ba3b2c28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:11314 \u00B7 packages/bridge/src/websocket.ts:11361 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":11314}}}],"partialFingerprints":{"codehealthFindingId/v1":"50997d15762c8e1af11e02d00984d04b715fdfcdb6482e8834852b93121f2919"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:1483 \u00B7 packages/bridge/src/codex-process.ts:1570 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"3762617983f42a0749a1d977e610221508ab2d3c3edad06121b37cc2cc5f8de2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1934 \u00B7 packages/bridge/src/parser.ts:1971 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3ebab9c344a17d2099f8f3814372213a76851becc959fd0bd482dc87ccdaaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2472 \u00B7 packages/bridge/src/parser.ts:2529 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c069b28decb04fd8ba3d3771f922272f909412d334962276a2c8696cc162d927"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/setup-launchd.ts:209 \u00B7 packages/bridge/src/setup-systemd.ts:212 \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":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5ba222be9b43f9873852a5a0f26298ff368303b1af46ccc443f357ac44dc53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4988 \u00B7 packages/bridge/src/websocket.ts:7077 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4988}}}],"partialFingerprints":{"codehealthFindingId/v1":"1853d45f9173435a715019f371ff1dd53f7d97802ef2e9ed3f44891ce1b8f9f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:5203 \u00B7 packages/bridge/src/websocket.ts:5237 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7410bd450e9ef3c6f7cce2f84f8b1abba3660217134b07910f4cebcf5694b7e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2048 \u00B7 packages/bridge/src/parser.ts:2068 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/parser.ts"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4119bf67e44536f7d2d56f0b89829e32fef6ba1935616c4fd66198514958a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2277 \u00B7 packages/bridge/src/parser.ts:2295 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a74690237572f5eceae66f61c3e909941a176f94e68999d059e4e0a8df7c4b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/bridge/src/path-utils.ts:61 \u00B7 packages/bridge/src/path-utils.ts:108 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/path-utils.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bf92ace88134302592ea72e6aba403612a61459f84d95af206b8a016205704"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 11 locations): packages/bridge/src/websocket.ts:7951 \u00B7 packages/bridge/src/websocket.ts:7982 \u00B7 packages/bridge/src/websocket.ts:8010 \u00B7 packages/bridge/src/websocket.ts:8038 \u00B7 \u002B7 more site(s) not listed \u2014 all 11 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":7951}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e3205e29e7ed2408d2d1325a57f41d546d6c62fd53d48e36263f2aeddaa034"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:3646 \u00B7 packages/bridge/src/codex-process.ts:3917 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3646}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb2f5ef86ac52d5e618b6ccb41592f42711967117a469e825de60ec8de37b99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:3796 \u00B7 packages/bridge/src/codex-process.ts:3981 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3796}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69e88c5ff515f8463d67e60468179cdc2551a7ccd3439eea975ab16d67c9191"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1788 \u00B7 packages/bridge/src/parser.ts:2187 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"8443022ea23a677f130b91b0688a7567691c3558dd7c1af4431c936e0efc1d08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/recent-session-search.ts:94 \u00B7 packages/bridge/src/sessions-index.ts:3453 \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":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71338b60c83eb5b136d7f79034e6b383c7a47646e75ea2ae8b1b257ebd138d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/bridge/src/session.ts:1440 \u00B7 packages/bridge/src/websocket.ts:357 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 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":"packages/bridge/src/session.ts"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe4463f4193b293a6785b94b6e91227b08ab069cdd2990356a9ff6cd912d3a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:3962 \u00B7 packages/bridge/src/sessions-index.ts:4098 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3962}}}],"partialFingerprints":{"codehealthFindingId/v1":"316f7b70b6d1f03d439d27ff3c30dd1e5c4e7ee51dc9c6d10e67f914b89312ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:4568 \u00B7 packages/bridge/src/sessions-index.ts:4609 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4568}}}],"partialFingerprints":{"codehealthFindingId/v1":"85672aca4fbce0fd51b41145f5e40a88589c595e448d83c81eda65326f4982e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:2234 \u00B7 packages/bridge/src/websocket.ts:2461 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"273107296f0f53e82a83ddde96d228e44c5e8f752c1fc4ae67654316da9b9089"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:5365 \u00B7 packages/bridge/src/websocket.ts:5591 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39303f4ebf25d0478a26c46f702a595ea9767541818a2bc32cefa847f2ce0c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:6056 \u00B7 packages/bridge/src/websocket.ts:6102 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":6056}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b7484fd2db0011d0fd6f02eaf43c4029124d62cb5fad42cd0aad8df16053f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:8792 \u00B7 packages/bridge/src/websocket.ts:8821 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":8792}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8efa5ba3ea0eb22fe913a0c32e0760462139a62282c4d18e4e26aaf86ba7ee7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:3024 \u00B7 packages/bridge/src/codex-process.ts:3093 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3024}}}],"partialFingerprints":{"codehealthFindingId/v1":"61435884fa9bced8063e2361352ba5a5ab4ef4b4236c272c83c7578b19f31362"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2245 \u00B7 packages/bridge/src/parser.ts:2259 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63b21ffb5032e44f440f6ce7d185caba97a53889c48cffaa582d3e4547f9c24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2319 \u00B7 packages/bridge/src/parser.ts:2547 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe261bf0ef450f64bdda889442f505d7ac5fc04139667d06fd0a6709ab7d0c1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:3247 \u00B7 packages/bridge/src/sessions-index.ts:4197 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05da186585a9fee994044b9f7ab3bd3f8882b764f0e66de99fead0f9e40c05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:4161 \u00B7 packages/bridge/src/websocket.ts:4218 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4161}}}],"partialFingerprints":{"codehealthFindingId/v1":"51867af306416e27a7b71db27c314f0888c2c08a6226ea982645b557e6b3dd47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/bridge/src/websocket.ts:5862 \u00B7 packages/bridge/src/websocket.ts:6144 \u00B7 packages/bridge/src/websocket.ts:6166 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5862}}}],"partialFingerprints":{"codehealthFindingId/v1":"528d439f2102deb5a2e5391eea48e2d6611f84642ccfcd49dacc1b313c19f6e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:8816 \u00B7 packages/bridge/src/websocket.ts:8855 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":8816}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c0757fe723d5524830baa7519964d684350a62e0795ff1f735bf555c2114cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4819 \u00B7 packages/bridge/src/codex-process.ts:5066 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29d5347811718c6c37a662155fc7cc2db35f1e827ce57e4910c118d556e0073"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:5182 \u00B7 packages/bridge/src/websocket.ts:5214 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5182}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af31cab820e959b06061415773bb55f792dd620206fe5e9ac328b86f5cc597"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/bridge/src/websocket.ts:5710 \u00B7 packages/bridge/src/websocket.ts:5740 \u00B7 packages/bridge/src/websocket.ts:5774 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5710}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd0bf74220e626984439d5d2e337712bc52aead2bf13d9a6e4b38d64d8dbc64"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:7618 \u00B7 packages/bridge/src/websocket.ts:7895 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":7618}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94466ca2a15c29c0cf8144ee945b5329fefb4c8d1e02a053fdb4d6954ff1fde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4229 \u00B7 packages/bridge/src/codex-process.ts:4241 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bee189244d19470a68a4f0f325fe36dcc10c90c66d637cdd7cc4af8f1b463d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4546 \u00B7 packages/bridge/src/websocket.ts:1776 \u2014 the two spans are one implementation copied and then locally edited \u2014 83 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4546}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d8e165baa2000c63896bd5b34dca10cfdca9eaff167b6ab2c2e2c50d9dfac7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/doctor.ts:118 \u00B7 packages/bridge/src/doctor.ts:185 \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":"packages/bridge/src/doctor.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"58789f6a7180876fbf63e095236ccfd3bc6cab8a9c22302b1563ea861190b7d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1627 \u00B7 packages/bridge/src/parser.ts:2401 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8c49dea087155ce063618f6e5a662b6e7814ed2da3001d707e35d2fee85689"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1864 \u00B7 packages/bridge/src/parser.ts:1885 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"644376b66ab9cc8acc15427ca5c1eee4d2327f23e162fd816fc6eaa8c0d92bac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2395 \u00B7 packages/bridge/src/parser.ts:2434 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d900b9107a12b4a829d2e688e7a2a3418ebfd08852001007ff05ef796403de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:4527 \u00B7 packages/bridge/src/sessions-index.ts:4539 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce4409efbb7ba4b2ea94c4e3dbd2f8c4d2b51ed99c9306aee71971f5ba31957"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/bridge/src/websocket.ts:4942 \u00B7 packages/bridge/src/websocket.ts:5364 \u00B7 packages/bridge/src/websocket.ts:5590 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":4942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a798f2e339a9dd6e1f03bf665de1090d9feb1089541e5b4d03044cca8a364d05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): packages/bridge/src/websocket.ts:5076 \u00B7 packages/bridge/src/websocket.ts:5119 \u00B7 packages/bridge/src/websocket.ts:5178 \u00B7 packages/bridge/src/websocket.ts:5210 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"packages/bridge/src/websocket.ts"},"region":{"startLine":5076}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8e5bfab0066e83d03fbb5282291a55f4c55678b68a2f68658471846ba38d12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:6759 \u00B7 packages/bridge/src/websocket.ts:6989 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":6759}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c6f4b8c1563bbe15bec6394876148032f8dba75b9d3d1fe5092793e7b325f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/cli.ts:113 \u00B7 packages/bridge/src/cli.ts:124 \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":"packages/bridge/src/cli.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca18a8ca60231d3284efdb2f91b9e8dea9c3f395cb6bbf7914a33514fc468cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:1829 \u00B7 packages/bridge/src/codex-process.ts:1846 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a57dc76a500752012725ccf015c96e2f6ebdbabd4f510dbc0cd88c6dc44fdb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4284 \u00B7 packages/bridge/src/codex-process.ts:4367 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4284}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfacb73dfcf45428bf57562ddbb3f79626fae381d452139da2f2c7ac335096a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4665 \u00B7 packages/bridge/src/websocket.ts:529 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4665}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f760030a86c0f9634195bf486e16db37f880ae026b8322a572b7f886c14312"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4976 \u00B7 packages/bridge/src/sessions-index.ts:3382 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4976}}}],"partialFingerprints":{"codehealthFindingId/v1":"365857fd991c5a6c97ad9b39ef32f033d4f9be1f75a76e8f646b7e8e93391391"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/session.ts:1392 \u00B7 packages/bridge/src/session.ts:1403 \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":"packages/bridge/src/session.ts"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe84ed222e5c2142d017b1a55b47abf1dd34acd7bc19ba8773652c832f8e830"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:3736 \u00B7 packages/bridge/src/sessions-index.ts:4351 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3736}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd446b70d4d62801e2649f2016ee469578efb838040c060d8e16d27c155d6783"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:4150 \u00B7 packages/bridge/src/sessions-index.ts:4371 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b40175ce0d39ed2f9992e4fa694f4aa6276b74ab0516305bc1381b6e0a4e403"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/bridge/src/websocket.ts:3679 \u00B7 packages/bridge/src/websocket.ts:7178 \u00B7 packages/bridge/src/websocket.ts:7207 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":3679}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b1149943d2f5a6a1384f3b6a0cd2a31556466c4caddf87701032d619efd18c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/bridge/src/websocket.ts:5615 \u00B7 packages/bridge/src/websocket.ts:5711 \u00B7 packages/bridge/src/websocket.ts:5741 \u00B7 packages/bridge/src/websocket.ts:5775 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":5615}}}],"partialFingerprints":{"codehealthFindingId/v1":"edec0f7709dc9f8d7a1d52700b175a1b60c3a4727fbf5a7b49f506c2ef189cb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/bridge/src/archive-store.ts:68 \u00B7 packages/bridge/src/prompt-history-store.ts:468 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/archive-store.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4466de0251a2e192bc8d7f9c29fa590d9fbf96d9821dbda342e4f5f7dcc71bc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4200 \u00B7 packages/bridge/src/sdk-process.ts:2243 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6e316b03cb65245b56f8a121daf5eac5ca15cadd5fdb53875c0ac8b1dca688"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:5154 \u00B7 packages/bridge/src/codex-process.ts:5889 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5154}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e944c152cc5d4aa0fedfb4315c5957918475ca2e57584007c843acc5b88d9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/doctor.ts:942 \u00B7 packages/bridge/src/doctor.ts:968 \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":"packages/bridge/src/doctor.ts"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a9f6019b2e5cc7451ba2e6d93e08afa7d7a9869d77ec676a5759cd67a46454"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/index.ts:307 \u00B7 packages/bridge/src/index.ts:321 \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":"packages/bridge/src/index.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3863a737e993d807fdb1827dcac8d10dcd4bd6428fff8b09f8ae3717eaddb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2382 \u00B7 packages/bridge/src/parser.ts:2496 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc44afbd30b40441c6da883199f862664b5469371186f3f6cd5e36ea4c8a601"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/bridge/src/parser.ts:2460 \u00B7 packages/bridge/src/parser.ts:2476 \u00B7 packages/bridge/src/parser.ts:2533 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8075ebdc51b4b9fe71b775d909c462c70f52e5335f4d67287e93c62ca0d6e9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/bridge/src/project-history.ts:30 \u00B7 packages/bridge/src/prompt-history-store.ts:169 \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":"packages/bridge/src/project-history.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2950435283d1a00c4717ef007f9550256ef514aef05e95e39cc3105c2143bf8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): packages/bridge/src/sessions-index.ts:1862 \u00B7 packages/bridge/src/sessions-index.ts:3640 \u00B7 packages/bridge/src/sessions-index.ts:3756 \u00B7 packages/bridge/src/sessions-index.ts:4374 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f05e071f1c5a054996898e550e8360e3a248a60014d8f6ceee6f74f50e49c80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/bridge/src/sessions-index.ts:4018 \u00B7 packages/bridge/src/sessions-index.ts:4153 \u00B7 packages/bridge/src/sessions-index.ts:4233 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4018}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c0e74e27240e842998084e6b5fa83d1757542bae12e8ac4ce4b8ada9320df9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/bridge/src/codex-background-tracker.ts:166 \u00B7 packages/bridge/src/codex-process.ts:5846 \u00B7 packages/bridge/src/recent-session-search.ts:106 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac26acbc520f5e746efed8d86bb020b51aef11482f727d9560305fc9866a7c1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:5095 \u00B7 packages/bridge/src/codex-process.ts:5123 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5095}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca9ce3c0af521aa4d008123f6ff425e7d84a05772a8e625cad79358d7890f0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/bridge/src/git-operations.ts:838 \u00B7 packages/bridge/src/worktree.ts:313 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8b003ba115a3a1fb4c2239f7622d592565969d65f9e47c776eeccf633eb72e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/prompt-history-store.ts:378 \u00B7 packages/bridge/src/prompt-history-store.ts:392 \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":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e5fede901ff727c85bda30ffb92a7f499960d8f75fffe2a2f64bed6a5ecb35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/sdk-process.ts:1185 \u00B7 packages/bridge/src/sdk-process.ts:1193 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca20962bd8a456fa206089f4758c4e8c99f24d1897404665c337f562b439f81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:830 \u00B7 packages/bridge/src/sessions-index.ts:1984 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32770ee513f03bf3a125aee0d13bfd83abdc2cfe08d0ec6ac82216f7edd939f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:1643 \u00B7 packages/bridge/src/sessions-index.ts:3638 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"31faaa584ad2bc36ccf517f7ae733af9f46eb32ae4e8023dadbdf0c6bfa8e538"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:1495 \u00B7 packages/bridge/src/websocket.ts:1641 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"71eea852ef8dc854f863aaec35038bd14c07f9e005e7f68f3c71f61833c45955"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:10206 \u00B7 packages/bridge/src/workspace-store.ts:259 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec253787637676f94dc64dd5aca4326b4f6ac9b9a79a06d0bd77be7a723a53f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/bridge/src/worktree.ts:248 \u00B7 packages/bridge/src/worktree.ts:276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ea701fd5ee95a1c96a1f244bf6a5a6f7af939db78f5e57970b8be09fbfaa54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:3008 \u00B7 packages/bridge/src/codex-process.ts:3701 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"7866115ba16f0d2f327413cca796895c6079a9c88922657a14b7a778a7358084"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:3598 \u00B7 packages/bridge/src/codex-process.ts:3736 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"10551f8f8671cb1987f20267deb8e72a6320261c281f13dd4eb6fac9f54e32c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/bridge/src/gallery-store.ts:53 \u00B7 packages/bridge/src/image-store.ts:132 \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":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fbda3332d65d1ed7315ee40708cf355fec6bf51ff27608baf5485a79f20b41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/bridge/src/image-store.ts:233 \u00B7 packages/bridge/src/upload-store.ts:238 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/image-store.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"503d3e868d25598a899848aefae591e99ea6d37a0b846b06e3c2ddfbc04d37d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:3754 \u00B7 packages/bridge/src/sessions-index.ts:4017 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"276f3fb0c963b5eb25072e6c71dc8117e0b0b19fa99f2900039ba1dc21d4f902"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:2089 \u00B7 packages/bridge/src/websocket.ts:2116 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde0d16758e1cc0fa88cbf1bac81c8c3985a8156c62701389c0100b8c486c8b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/bridge/src/archive-store.ts:36 \u00B7 packages/bridge/src/prompt-history-store.ts:176 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/archive-store.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"689b7781bee803a7275f3f7c72afb284a82b69c1f252c1cb5979bee31b2ba2bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/bridge/src/codex-process.ts:4892 \u00B7 packages/bridge/src/codex-process.ts:4988 \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":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4892}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8a6919cfec6b7e8b3dcd8abe06b007dea06f35fffb1121a699a3d747bfc668"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/bridge/src/sdk-process.ts:1304 \u00B7 packages/bridge/src/sdk-process.ts:1334 \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":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd57557b00de43a1e0f9ebf138b95818454572afc9db5db6c48f6f791fb33ee9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:845 \u00B7 packages/bridge/src/sessions-index.ts:2064 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa92e063607809924d5e47b25ee70ed178ac970f2c381b7e6496b499e2fa018"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/bridge/src/sessions-index.ts:1789 \u00B7 packages/bridge/src/sessions-index.ts:1802 \u00B7 packages/bridge/src/sessions-index.ts:1885 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"105ef3346d26ed5de53d7951b43c3c26402bdfcc5176358a7ff842e9d4a8325c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/bridge/src/sessions-index.ts:4345 \u00B7 packages/bridge/src/sessions-index.ts:4398 \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":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c683f73b9dd4ab1945ce1d44b4c6faf26ead4cf86c789629bc9581d35f51a32b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/bridge/src/parser.ts:1512 \u00B7 packages/bridge/src/parser.ts:1543 \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":"packages/bridge/src/parser.ts"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ec3fe7527575cce4321063e43cb508e1b41d57de56a18fe769254e7e99b8e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/bridge/src/parser.ts:2087 \u00B7 packages/bridge/src/parser.ts:2098 \u2014 both copies are in the same file, so extract the block 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":"packages/bridge/src/parser.ts"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f254d55acba0bfe9a45351b8c525799c81297a8c4f7b832927e842d4ec44ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/bridge/src/websocket.ts:678 \u00B7 packages/bridge/src/websocket.ts:685 \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":"packages/bridge/src/websocket.ts"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"131ad2aedca3d83868e32378af014c74b6a9aed2ce11fefa6e296e81772613e9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/benchmark-desktop.mts:15 reaches into another package with a relative path (../packages/bridge/src/media-store.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-desktop.mts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac80e10e51e4058c08d57ae0905693aa5ab38539b52f808ff12051c559de0026"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/benchmark-desktop.mts:16 reaches into another package with a relative path (../packages/bridge/src/text-preview.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-desktop.mts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1592d915aed6acf3c7c85fb73ca7b931704d49207c1c4891602d668a34176169"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/verify-finder-sandbox.mts:12 reaches into another package with a relative path (../packages/bridge/src/finder-reveal.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-finder-sandbox.mts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c799ccbc8c603fba8042e9ba6ee77bc3e57489ba5da69c31f8a282fef1fc9238"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClientMessage (cyclomatic 661, cognitive 1151): handleClientMessage has cyclomatic complexity 661 and cognitive complexity 1151; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3614}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1570bb1f9b433a62138a17dab59bd8118d5f63bc4be79ed7dc4b41a24fca9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClientMessage (cyclomatic 576, cognitive 694): parseClientMessage has cyclomatic complexity 576 and cognitive complexity 694; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edd077e359eb52b34d28c4e7472dd06e590ea57cb8b76b87cd07ccd7795500e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 97, cognitive 159): (anonymous) has cyclomatic complexity 97 and cognitive complexity 159; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b367da96924690c5bca0a8914fb0bfed6cd8f5bc59afdee6d1f9338f8303498"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCodexSessionJsonl (cyclomatic 79, cognitive 167): parseCodexSessionJsonl has cyclomatic complexity 79 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd649e78b032747dbbe4c3c12d3b5ac06c55ba012413480b12fe38d0312d0dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseFromChunks (cyclomatic 69, cognitive 160): parseFromChunks has cyclomatic complexity 69 and cognitive complexity 160; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6673acd791cbfc64f2256acbfb498524527f1d362419db7db08a838a23adea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCodexSessionHistory (cyclomatic 68, cognitive 234): getCodexSessionHistory has cyclomatic complexity 68 and cognitive complexity 234; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcb0011b7e107670d3ea105d7a31c47a2d18307346fce6ca63016dae8452615"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexThreadToSessionHistory (cyclomatic 61, cognitive 133): codexThreadToSessionHistory has cyclomatic complexity 61 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"b201bc79e2f0ffbb1ec1bea57d003d3105bdd14052ea4b7a1db46c860c146be9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSessionCreatedMessage (cyclomatic 54, cognitive 61): buildSessionCreatedMessage has cyclomatic complexity 54 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 is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b33073902a16767b44eaf532c313b2edf3ffadd43449442deb39f0dc835e545"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getSessionHistory (cyclomatic 46, cognitive 90): getSessionHistory has cyclomatic complexity 46 and cognitive complexity 90; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9349892cb251f45ce419212795140bbcc551f4107c177bebb871d30a3d368e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeSendPushNotification (cyclomatic 43, cognitive 79): maybeSendPushNotification has cyclomatic complexity 43 and cognitive complexity 79; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10809}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e04b21fe7faf6818fc0c7d45fc0b5bc18c6fe52748b8eac0f4b11bd54622c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupSystemd (cyclomatic 43, cognitive 38): setupSystemd has cyclomatic complexity 43 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"59053ac7f44ef8f242d0f97c2815e9654a8119067075b6623bf824e53c82dfaa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupLaunchd (cyclomatic 42, cognitive 37): setupLaunchd has cyclomatic complexity 42 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c7c69121536bbaa8291e3058e5b36253704e7132a7351a95ff387ef2114a24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function convertSdkMessage (cyclomatic 41, cognitive 75): convertSdkMessage has cyclomatic complexity 41 and cognitive complexity 75; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"d962be5570ebb41a66c975f9b6f1291d68ca57c7cfe3365bf7505de3180e62a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getAllRecentSessions (cyclomatic 36, cognitive 49): getAllRecentSessions has cyclomatic complexity 36 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a373012b000ee40244435a174e0caff2180da70da1f2022548d89728b7e9321"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hydrateClaudeIndexedEntry (cyclomatic 35, cognitive 31): hydrateClaudeIndexedEntry has cyclomatic complexity 35 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0aa2762510f2ccbe81ae21a176bf3dd5c66e4eb692b38132b092ef37cbf81"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasValidSessionOptions (cyclomatic 31, cognitive 12): hasValidSessionOptions has cyclomatic complexity 31 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5448dd047086c6ca5788c505ed4ff918fd9bb0e43b4e171d12caf14fcaee7ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewindInPlace (cyclomatic 30, cognitive 43): rewindInPlace has cyclomatic complexity 30 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b3b78e5d0a4e69cb48cb578bc1ecd4377656a7c4608c12acc13fb9b5475b97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 34): (anonymous) has cyclomatic complexity 29 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47066a3f904a5c7ee555e2b422f85e4763641e8733076ce03269625f760ebda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexHistoryMessageToServerMessage (cyclomatic 28, cognitive 37): codexHistoryMessageToServerMessage has cyclomatic complexity 28 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4f3fdcfaab8ead23df04a9c19439716a9ed9828260a69a86898c9068acab0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCodexMcpResult (cyclomatic 27, cognitive 50): normalizeCodexMcpResult has cyclomatic complexity 27 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3366}}}],"partialFingerprints":{"codehealthFindingId/v1":"754b8deea3d070caf7e7d463bf2ab5c94265ae8cd3d3db7a6691545c3181fcc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 39): (anonymous) has cyclomatic complexity 27 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7386}}}],"partialFingerprints":{"codehealthFindingId/v1":"d927dab7ba9bb2fec1e99df32245a3248355944094915612b2b6641907e29cd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listAllowedDirectories (cyclomatic 27, cognitive 31): listAllowedDirectories has cyclomatic complexity 27 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35903d569d01757f29646041142cba264c7ff3ebb0a12a0e65c84c398f8d601"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 27): (anonymous) has cyclomatic complexity 27 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"58768654e839722386ac2775840db18d39b4f6ded66c4082202789d5ff350d39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listRecentSessions (cyclomatic 27, cognitive 23): listRecentSessions has cyclomatic complexity 27 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":9810}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec9f79a31778b9d92216a7f77623a7d606acd4e31df3e6583443464ad69fef8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRelayBody (cyclomatic 26, cognitive 39): parseRelayBody has cyclomatic complexity 26 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b696858e80d0d3735edec28fe7cdcebdf41fc11a1c5f520adf3c40cc3c659d6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeAbandonedBranchUuids (cyclomatic 26, cognitive 36): claudeAbandonedBranchUuids has cyclomatic complexity 26 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfc877d7cf010ffd77398d8040de5c98cf3e489138a1647dba9b1889a6786c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function create (cyclomatic 26, cognitive 30): create has cyclomatic complexity 26 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd498d13ecff2a140d5cdd96dfa6a752bb3a7218dca26a76aa3dc4cff5afc751"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendCompletionPush (cyclomatic 25, cognitive 47): sendCompletionPush has cyclomatic complexity 25 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10960}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa663b0251e533680a275033815c1bcb106da6298c59a7b15b4bab013bacd15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performanceMessage (cyclomatic 25, cognitive 33): performanceMessage has cyclomatic complexity 25 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/performance-mode.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"68059e931fd54c6732815aba98a4861cf7c564148df8fcc10ad365953d917998"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startServer (cyclomatic 25, cognitive 24): startServer has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"09799135822887e871b217b2604f4919ea26dea94dcd540e509e4c24c55dddd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isSameUserInput (cyclomatic 25, cognitive 23): isSameUserInput has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"396f5a3099d98ff06df24e10fcad56e662093dd4760af2dd890e7fc4553a98f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSessionSummary (cyclomatic 24, cognitive 23): buildSessionSummary has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6daba002df3ebde72df5449532add714faefbed894c9511a0266433968f01d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCodexCanonicalHistoryBaseline (cyclomatic 23, cognitive 38): applyCodexCanonicalHistoryBaseline has cyclomatic complexity 23 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"e160b60b4d65f69e40ef02f02c32de4a6d732c14a5b4ca39d2ed6cd1480b305a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanDestination (cyclomatic 23, cognitive 36): scanDestination has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4663e61a0d525883bbb55c2c402f6850a0be258c4ed4f916a292b5b63831cbe9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeMcpToolResult (cyclomatic 23, cognitive 34): normalizeMcpToolResult has cyclomatic complexity 23 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdc942568ade47bed8a740a3a47da063f76ef69effa3c6e4994998af27d702e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAskUserAnswers (cyclomatic 23, cognitive 31): buildAskUserAnswers has cyclomatic complexity 23 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"991dfa64d01e795794faa504d65293e3c3b5fdbffb5095b795b464e03340be52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectImageChanges (cyclomatic 22, cognitive 41): collectImageChanges has cyclomatic complexity 22 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11491}}}],"partialFingerprints":{"codehealthFindingId/v1":"a673713a96d12e4136061e92eb8d8d6b441df055822b0fbb30bbb7cc6ec23914"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function backfillUserUuidsFromDisk (cyclomatic 22, cognitive 32): backfillUserUuidsFromDisk has cyclomatic complexity 22 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58df85592a0d4f83dd9f3cc69b9dae5c4f43878501688b5acf9aa2db43fec47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function convertSkillTriggers (cyclomatic 22, cognitive 29): convertSkillTriggers has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/skill-triggers.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4420e7b14267008675b5f15e0b8bc3b611660293afcecde063c62b6e64ce7115"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transcriptLineMessageTexts (cyclomatic 22, cognitive 28): transcriptLineMessageTexts has cyclomatic complexity 22 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5405c691c0f6a14210e688c76543147eefe911a963d85509ebc2063dc19c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function observe (cyclomatic 22, cognitive 27): observe has cyclomatic complexity 22 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8fe29c955affce49bf646d8403617bf96653237d97ebc070fc9bf87f1c3d2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function constructor (cyclomatic 22, cognitive 23): constructor has cyclomatic complexity 22 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"21aa16cb8dc29f679e069dcefc4e1448dba4c4992c0f25e68c6f760570e6fc75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serveEntry (cyclomatic 22, cognitive 18): serveEntry has cyclomatic complexity 22 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1cecc34229c7594daf76c930f2f9dd7579d4163bb153b8f4526802ceaa9218"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function printReport (cyclomatic 21, cognitive 35): printReport has cyclomatic complexity 21 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98d98db8ed31d7115c2f062eaa7e0a0899cfa1c6560cc2b4b273e41d26a9945"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildClaudeMessageImageIndex (cyclomatic 21, cognitive 34): buildClaudeMessageImageIndex has cyclomatic complexity 21 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4000}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cafeffb1d33d3883368314a42073b25f1df2a5524efab96552a2765541619d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coerceElicitationValue (cyclomatic 21, cognitive 30): coerceElicitationValue has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5649baaa4aee6673a8da7167e8db376f0f65852a81d296d761f0af8a32ec7370"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeClientMessage (cyclomatic 21, cognitive 9): summarizeClientMessage has cyclomatic complexity 21 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11717}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9204afceb640d324bdbca79edb9ae59e55af04f8a62d88d76b6a7f16a9893a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function searchRecentSessionContent (cyclomatic 20, cognitive 41): searchRecentSessionContent has cyclomatic complexity 20 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4016b08daf9126bf0159a5a21cfdf089d1ea794457b17b834f60d4fdbd9d3ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 24): (anonymous) has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/voice-lab/server.mjs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"897033c87f455e992ac16987cfe4d0d713be2199b8551077707e4aa1ff39b84d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeEntry (cyclomatic 20, cognitive 21): mergeEntry has cyclomatic complexity 20 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d9f8ed4665c30cf6a772e21d13e4fdf8029d4ec353f3dce70a3b1361b73b19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 19): (anonymous) has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7531387bfc827cf9f83c0834893e60d628e1b27329fcad47365690a2831c220"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importEntries (cyclomatic 20, cognitive 19): importEntries has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaa9b35c7d9f215201b9c1383bda82001ee7e9322a61788d86af804f28e01cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewindCodexConversation (cyclomatic 20, cognitive 19): rewindCodexConversation has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db4753de65369ec03b543ab6ede1742f8350f39e70435d10854b13d86a2b214"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function register (cyclomatic 20, cognitive 12): register has cyclomatic complexity 20 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c816cfd6161fca2a32fe9d1939684a0e1f51826614b3d34cb2d9a74e0b9c5f7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 23): (anonymous) has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2848145ff6c29732ad502ba5bb38717f5300bc5f170a825bb445d1abda0ba49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeClientEntries (cyclomatic 19, cognitive 16): mergeClientEntries has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"484669c8b9fa7940bd4e84f65fe895426555fcdf6563097955aa153294ebb678"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractCodexUserMessagePayloadImages (cyclomatic 18, cognitive 42): extractCodexUserMessagePayloadImages has cyclomatic complexity 18 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2241c49b3487367d77beccee237ceb05a6249a32150f9eadc73af4b37f2a16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function monitorRuns (cyclomatic 18, cognitive 36): monitorRuns has cyclomatic complexity 18 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release/monitor.mjs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d720749e40bfcdb5ea7dea35b2130af11ce789695d303f169f9a39678469bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerPastUserMessageImages (cyclomatic 18, cognitive 28): registerPastUserMessageImages has cyclomatic complexity 18 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2278aab6e1aa3f86cc1892f12a301f9be28fdd8c3cbdba409d34b63b8a2a637"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareFileUpload (cyclomatic 18, cognitive 19): prepareFileUpload has cyclomatic complexity 18 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"abffc5a59a438ffb5a18250ec4e0c521f41d7da67fcab102812da2d976b8bdb7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendImageGenerationResult (cyclomatic 18, cognitive 17): appendImageGenerationResult has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b291f36cb2d36555a4d874beab22aae7ed9f523c2a4740354f4d5e1e504dd84f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recentSessionsCoalescingKey (cyclomatic 18, cognitive 17): recentSessionsCoalescingKey has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac56870a87c20de47c745f85bcce9f3594c1aed71bcc0414ae4c9703450974f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareFileDownload (cyclomatic 18, cognitive 16): prepareFileDownload has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe50ad66ac875c5fb247780bdeb0a0e95cf3e67b5f40098053fc9ee58a8644e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listSnapshotOnlyCodexSessions (cyclomatic 17, cognitive 25): listSnapshotOnlyCodexSessions has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":9970}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c64211c6e7720d1ed19069b05d9fd21659f925da1f7eb761a2f15e5cd25252"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createElicitationInput (cyclomatic 17, cognitive 19): createElicitationInput has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5485}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e44ec088aefba47214022956b189d04891e08af5fb62f8543fc0ba9d8efb11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 19): (anonymous) has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94bb384eb0ae6096e625d2d9a14915408b385331d55ce6b5207b44ba10e6d94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGtrConfig (cyclomatic 17, cognitive 19): parseGtrConfig has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed66a833baab12c95508b7a436de98b57af718c8ee4696f876f58642b0fa72d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forkClaudeSession (cyclomatic 17, cognitive 16): forkClaudeSession has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70d135ead2ed6c5d5d2f036874fe43fe5c32217263b17045a94066556eb7282"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCodexSettings (cyclomatic 17, cognitive 15): mergeCodexSettings has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"233a6b2b18491383421459d5d33b269c647522e3f38b8c5437e73d1a745e00da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 37): (anonymous) has cyclomatic complexity 16 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baadb8263cbaeafb4bb005d965002d76955036a589b4acfbade476371a03ee2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCliArgs (cyclomatic 16, cognitive 29): parseCliArgs has cyclomatic complexity 16 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/cli-args.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"355defe87979ce741ca466905fdd080f1e051c55f9d0af29433b87ee112b8869"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCodexSessionIndexMetadata (cyclomatic 16, cognitive 27): getCodexSessionIndexMetadata has cyclomatic complexity 16 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"a964c4f1971bc54a50b238ce05e22b02bdf439c6ad8f5d8967fbf78e75e158f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkCliProviders (cyclomatic 16, cognitive 24): checkCliProviders has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b145b596075c9f487cd82cf03ac6825ddf3eb2a411cbec5da5c30dbf27be55"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerPastToolResultImages (cyclomatic 16, cognitive 24): registerPastToolResultImages has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26d420868c4313285af1e9caef525a7a8c654303fef23fb480cb7b909ba151f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function searchTranscriptFile (cyclomatic 16, cognitive 23): searchTranscriptFile has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e67ed68f8fb93fe1ace6b5cb7b39fab2eae34b991eb07549c4b1c72d77170ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getPinnedCodexSessions (cyclomatic 16, cognitive 22): getPinnedCodexSessions has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a73f392622f414eff6acbd4deefd837e5960a5b090a82aef52c2f216390746"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClaudeJsonlChunksFast (cyclomatic 16, cognitive 21): parseClaudeJsonlChunksFast has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ebb1448ee8577cea739b83bbf890f657df52d728319372c83baeea23f7ea3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractInfoFromJsonl (cyclomatic 16, cognitive 20): extractInfoFromJsonl has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5b5c8aea4fe8ee0f60fd37d26dead6e869d8cd32aa9a10eb746a7b84812d1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 17): (anonymous) has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e848a5651f02334267db17739b2bde1a1f0e771107567e3fa5385beb98050b7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 17): (anonymous) has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3907}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d533cb11c00fbd61f4b9770e5824c92d0d36d0a6fdc7c5c934162ae2dc3402"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseByteRange (cyclomatic 16, cognitive 13): parseByteRange has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/media-store.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5414a97bd8c820d41ea577dc7dfebb8e7ea8a5dbd60e3eccf3285ff685042c3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 29): (anonymous) has cyclomatic complexity 15 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7671}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb21cf0a3764824cbce879b4f816db8de0584dfa6546a148178f429b03d6058"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receive (cyclomatic 15, cognitive 26): receive has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/upload-store.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a199be69a13e4a532f2fdeff481a75319931186b12ad222028cffe2e284171"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeHistoryContent (cyclomatic 15, cognitive 25): normalizeHistoryContent has cyclomatic complexity 15 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf0deefa00b3513c8a69abfd1dcf77f0f037ee00593b9be2704921acf114a8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatDynamicToolResult (cyclomatic 15, cognitive 23): formatDynamicToolResult has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4880}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e4ab96a468401c2618ebe37cd3945ca31b4b0aa48f7a0553f8215465749f25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visit (cyclomatic 15, cognitive 23): visit has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49b4dff87bffd77e754a54854350ca85dcb720c51e69143071109e0cd0de2e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanTitleAndClose (cyclomatic 15, cognitive 23): scanTitleAndClose has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8d15dfb727414688b4badced8446cc05cfcd0c8ae5e5e0a40de90932fb9c42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 23): (anonymous) has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/landing-preview/serve.mjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69b5fa36f2002bfd2919f919214b469058708c2f48e38799f70cd9111b51664"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractCodexServiceTierMetadata (cyclomatic 15, cognitive 22): extractCodexServiceTierMetadata has cyclomatic complexity 15 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-service-tier.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6553a3f7b745386968c0f0030c5b73185e056087a338a4bf3825203e0403103f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findAssistantUuidBeforeUser (cyclomatic 15, cognitive 21): findAssistantUuidBeforeUser has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eb8668d343d72ac5f467b3b11a1e19d0f5d35011a07e5bce8e5c4594823aab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareServerMessageForClient (cyclomatic 15, cognitive 21): prepareServerMessageForClient has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11043}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50667444f2b0d6e4d731d2490e668821c0345dc8d8b1a31c3575f01789ed8b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function retractableUserInput (cyclomatic 15, cognitive 19): retractableUserInput has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3852020491588fa8ffe12cc19cb04b9eebd42693def3445110d9acebb2d6ee59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-bootstrap.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ec14a09fc4e74faf538b661e7dc0fcb61a43ba1a940f9efda56737317410a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forkCodexSession (cyclomatic 15, cognitive 14): forkCodexSession has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"646fc195a4804720f2994a4ac895b4432a5f4ad97552cc063a8a9f3a17613747"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 34): (anonymous) has cyclomatic complexity 14 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"093f05fcb7742f490c89b8f7ffcb59e0f1774c6d49ec895b653d25a925dcac77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function catalogFromCachedCommands (cyclomatic 14, cognitive 28): catalogFromCachedCommands has cyclomatic complexity 14 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/skill-triggers.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"daacde73697381a5299f5451b01c7df5fd81bb8442626bbf5518fdba0b49e64d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findSessionsByClaudeIds (cyclomatic 14, cognitive 21): findSessionsByClaudeIds has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4636}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc103d631042af083a5342ac081644e94834debb4613378a94a9aa593a791b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function backgroundTasksFromSdk (cyclomatic 14, cognitive 19): backgroundTasksFromSdk has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0af5b1a076c8085f8134a2666d591b769b2d530c06a68a81b14bddf4fab808f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasCodexUserMessage (cyclomatic 14, cognitive 16): hasCodexUserMessage has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f6d129bd4422516a973a3e559939fa16b215c4d47e6fe7fe12abc2ed2f6552"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compactValue (cyclomatic 14, cognitive 15): compactValue has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-history.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29d02e9587997fffe7c8c94595676e9b157a14028dcc311e5a034791bd655e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveCodexPermissionsMode (cyclomatic 14, cognitive 15): deriveCodexPermissionsMode has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-permissions.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"864692c16b00eab82f50401911430cac408e197a6dcbc74c9ebd5916aa191db7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 15): (anonymous) has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8159a458695007db01e3f9873b897d745798b04a417e5e9571ab265a806b15cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRenameSession (cyclomatic 14, cognitive 15): handleRenameSession has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":9432}}}],"partialFingerprints":{"codehealthFindingId/v1":"db122b0b084d691cf9653b6e6138e6e75771020cfc94ff4c1db23f17b92c7728"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bootstrapProject (cyclomatic 14, cognitive 14): bootstrapProject has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-bootstrap.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9d6fc16f855b929baf4b57a72d54bf055aadd514ac3a298608a05c9b3f29b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function beginResumeOperation (cyclomatic 14, cognitive 13): beginResumeOperation has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":9121}}}],"partialFingerprints":{"codehealthFindingId/v1":"811fd2cabc17c2a13c84d3b881a8da634c50084873da95f936170862ef829857"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeServerMessage (cyclomatic 14, cognitive 11): summarizeServerMessage has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11749}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc4d5056986ecc5117d6919e2a8fb5dc8e176bd7a32e3f20b1223c12778ceff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractLastPromptFromTail (cyclomatic 13, cognitive 25): extractLastPromptFromTail has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"8935df06742f02e0c95b49a72bb1485f67ef4c1fe8b33d3efdeda542f38acec1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildResumeSessionMessage (cyclomatic 13, cognitive 21): buildResumeSessionMessage has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11848}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0852442317b31927aaf01cabbd1e4b661d7407ce93560e837ddd33481f02c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listRecentCodexThreads (cyclomatic 13, cognitive 20): listRecentCodexThreads has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10657}}}],"partialFingerprints":{"codehealthFindingId/v1":"19402364ac8577c9f0431c607f55b877019d88e39a4f3125bbaf4bfae4866abc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionHistoryAssistantContent (cyclomatic 13, cognitive 14): sessionHistoryAssistantContent has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3190}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb77a3192b6643a1110eae780a9ad9ff2b5cfb4f17b2a59522c72544be9ef88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onmessage (cyclomatic 13, cognitive 14): onmessage has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/voice-lab/app.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"354c5053ec8bd36a4b5ff50f9ee8cf53420259278fdccd2ab75fbb847a48a5ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCodexRolloutChain (cyclomatic 13, cognitive 12): readCodexRolloutChain has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2589}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b42b34f6356d5210e2af1517635149ec97563999caf6c599f94ec3afca69e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 10): (anonymous) has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"332885d958654494cfa140a2cbceadef47d430c51443bde7d5adf49377b4a6f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fileInput (cyclomatic 13, cognitive 10): fileInput has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/voice-lab/app.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ecb29f99846bd9c9a2a2c20f689616b5e0bebb0c6b7690cea14be0920bc1c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function preparePastHistoryMessages (cyclomatic 12, cognitive 24): preparePastHistoryMessages has cyclomatic complexity 12 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"38817e2c2749b9904c2ed213ee84767727555ecc9a3264fe4f4526a06e2bb569"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function publish (cyclomatic 12, cognitive 23): publish has cyclomatic complexity 12 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/upload-store.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6605046056791740ae091b9585b10af53165af9f48b274387f0bce8506d1b162"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findSessionJsonlPath (cyclomatic 12, cognitive 20): findSessionJsonlPath has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3488}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5112c6bf06dc33a358a9fed2b19b56edd73a0db3acaa24dd12607580b264f40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectGitDiff (cyclomatic 12, cognitive 17): collectGitDiff has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3492bbb8cf3ca6d80a158db48f9250307d50454de51caf653cdd33b2168994"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nextCodexUserTurnUuid (cyclomatic 12, cognitive 16): nextCodexUserTurnUuid has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"db32adf245d287e14d748d3a618ada31202a87d08556d5d481dbfb0146533878"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexHistoryMessageIdentityKeys (cyclomatic 12, cognitive 15): codexHistoryMessageIdentityKeys has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":2910}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2813d46cc285f3a97a795bbd2472a62bc6563d618f1256c3dc2b2d8ec740a27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function questionAnswerResultForHistory (cyclomatic 12, cognitive 14): questionAnswerResultForHistory has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54602b8f5066d8b6c56d06068e963f14f2c2a3ba7225b3aa7ec2c59ffb07117"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildElicitationResponse (cyclomatic 12, cognitive 13): buildElicitationResponse has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0af2c0f18aa9585fd663e5ffcd048cd05b77c5036223dd6bf9d3ed50df41935"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 12, cognitive 12): handleRequest has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"930e5f707702beada0e6c10925ac8ed90bded2b54b6276f06b9c4a16100bfd6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listProjectFilesAndDirectoriesForClient (cyclomatic 12, cognitive 12): listProjectFilesAndDirectoriesForClient has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a810d4dabdd1161fd981a838cdf68fb2c201828864a8ba917c4f784728aa209e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2eef7de35d2856253aefe7f6653353eb8e59440cb4054c4c8f12bfffb02fb5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractPermissionsFromConfigRead (cyclomatic 12, cognitive 11): extractPermissionsFromConfigRead has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4394}}}],"partialFingerprints":{"codehealthFindingId/v1":"825088d06905c72195aec467ccad121d7a5a1c9edb415c6ef9499ad85c85d309"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d46950400cdc82e82a6280b5ea1ac866bb3856c7e58fda583db0f052327123b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractTokenUsage (cyclomatic 12, cognitive 9): extractTokenUsage has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bce48bb8381cdf3b375da2a9c124254787fd2eb220e64da7e3bf9f5e4a9b7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexThreadToRecentSession (cyclomatic 12, cognitive 9): codexThreadToRecentSession has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde415a36db09afd4284315482c92e98a1829769eed6fd892eb7f6bccec60bcb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractLastMessage (cyclomatic 11, cognitive 22): extractLastMessage has cyclomatic complexity 11 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"413f5a643653cb4c58d1941685a3ef66f0c805722a873f1a5823b0edee29aebf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copyConfiguredFiles (cyclomatic 11, cognitive 19): copyConfiguredFiles has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5733f2ebd7d58f61a29130dd7dd0dcc1c91e10a1fed4f9d588c772e034ccd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildCodexHistoryPrefix (cyclomatic 11, cognitive 15): buildCodexHistoryPrefix has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce01d0d408e163ea6ceb97100c18aea2816feee19d06a61e80858855cb50cb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractReasoningEfforts (cyclomatic 11, cognitive 14): extractReasoningEfforts has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4642}}}],"partialFingerprints":{"codehealthFindingId/v1":"4452f0e4cb24aea0bb7f3fd50eb2d4510165e39946770650398373ddb1115bd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGitHubRepository (cyclomatic 11, cognitive 14): resolveGitHubRepository has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/github-cli.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"061b4b477e07d4369223fd6f7ffd59a33f82850677b0b9cd90bb689525d73633"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drainQueuedInput (cyclomatic 11, cognitive 14): drainQueuedInput has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a2bbe8d37e09ea2921d002efc0023a2453ec698eb32b4ba26d2f666bff8846"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4e3db1b2d57e0077698182ec96457bb7f66c22aa2aad994963190f11a49543"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/voice-lab/server.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2222eb89b6a56c9009531f3ac6d3ca67e95893980122610852fd5e3ba37a5e1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseElicitationAction (cyclomatic 11, cognitive 12): parseElicitationAction has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec44a78aaf4278434e1b31886d64c102be02d719554b530164aee6a99c9d0cf9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 11, cognitive 12): main has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release/monitor.mjs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f8b82f10c275e49a9d38bcfce83abfc998ee4fe594351d9a72e5df426f32b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function autoRenameSession (cyclomatic 11, cognitive 10): autoRenameSession has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85d76103b5fe333c6925b60653f66e648289a4315586c5abd4874df39a149ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function logRecentSessionsPerf (cyclomatic 11, cognitive 10): logRecentSessionsPerf has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e644e897c88759c59a0aea8c12b6182a20a28a7b9ffed504adfb1124c8924cb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildPairingInfo (cyclomatic 11, cognitive 10): buildPairingInfo has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/startup-info.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a54ba2026a241537a3a9d408f6b6be01b622aec9780d727aee302cfdf65e19"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/websocket.ts: 11318 lines of code: packages/bridge/src/websocket.ts has 11318 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abfac21635614ac9e6b101cd14d824293f385dccfd8aae2234928e6ed8d3323"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/codex-process.ts: 5475 lines of code: packages/bridge/src/codex-process.ts has 5475 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15097485b7f84dc970cd67db653d243b286f8f9dead2e9e5970c0d02320351e8"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/sessions-index.ts: 4271 lines of code: packages/bridge/src/sessions-index.ts has 4271 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6216d29e282867d70b3eba28ff090f0c5387fa5d0e85c1f9dee2171642f947f9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/parser.ts: 2542 lines of code: packages/bridge/src/parser.ts has 2542 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/parser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"019a12195db6e44ac4c5978b66797d51497cf9a05851895ea7f07b6839b5fc6a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/session.ts: 2292 lines of code: packages/bridge/src/session.ts has 2292 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3077ca431ae3312548837da87dcf7fe1aa03f3df40eeeb42579445f705cd202"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/sdk-process.ts: 2098 lines of code: packages/bridge/src/sdk-process.ts has 2098 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9f1168f80cd2c34cc43d4613a8706ee44d286734a796b900167abf6c9dc035"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/git-operations.ts: 989 lines of code: packages/bridge/src/git-operations.ts has 989 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef1d7b74ffb38763cbf9f50fcdaa4fee4eb54cbb0437e184211886ad588643"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/doctor.ts: 922 lines of code: packages/bridge/src/doctor.ts has 922 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec5ae1c3dd1635b024f17d1a2c00a251c2426927017001f613129c9f6928d1c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/upload-store.ts: 750 lines of code: packages/bridge/src/upload-store.ts has 750 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/upload-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2272b0c1f9d6bdea4fb8eb45249ed8b12419c38c2e0dae07733658550ac3940"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/github-cli.ts: 451 lines of code: packages/bridge/src/github-cli.ts has 451 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/github-cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec806c602030524e3e2a6c6295e7d4a5c05240ac9560ee12cdeabb60bc342cd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/prompt-history-store.ts: 431 lines of code: packages/bridge/src/prompt-history-store.ts has 431 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/prompt-history-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5230616883909f0e267728a34ab84a7648ae793c1559de31c73d2fcc4571255a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/bridge/src/recent-session-search.ts: 414 lines of code: packages/bridge/src/recent-session-search.ts has 414 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9eb2341b8f4b41b570bf3c7b737ea2ca25e68bfa3a114b294c7b998dff8282"}},{"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":"tmp/verification/codex-app-server-effort-probe.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec32a2190193c63d25345f47087471568efa29fd316fc934ec63bf31a5656cd"}},{"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":"packages/bridge/test-client.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1535ba8aac43dbfd1d358cb5771576b5d47ddc4e40213879f77991ebf8f3f8d7"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~233 LoC): no import path from any entry point (22 application, 5 tooling, 76 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-desktop.mts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fad4aa4339ab32f518c53a8c151403e6cb9df86d54d7b0cb8fd9063ee3963e1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~114 LoC): no import path from any entry point (22 application, 5 tooling, 76 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify-finder-sandbox.mts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ada2b2e81b3efebed70cf1a188d47763190db63e61173ce58078ed2bd9e4436"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~105 LoC): no import path from any entry point (22 application, 5 tooling, 76 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/test-client.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3e0861d55d78d6878e2be91d0c45c5d628532318249ac81b39776a30f466f9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027clearCodexParseCache\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5e270f4eb597654350d8656f905065a7c23fcca39f34a2d90cadac9a377b1b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027summarizeFileChanges\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4822}}}],"partialFingerprints":{"codehealthFindingId/v1":"af38b934e237b28157ee04433ad0a37cb5c0521ad01bffd24473ba3ba4c375d7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027permissionModeToApprovalPolicy\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdd704e98e696c19c861c25614e3ca23c8dd260299779bafc8d02a0f84722f7"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027ws\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/voice-lab/server.mjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cad5210484707fa1ec9609d8ab0f47294c84e2593bc45648617a3cf1692c61"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: Content-Security-Policy. Missing: Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each. (\u22121.5 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"firebase.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccf0287df7f2d65b30963aef3aadf18eddd5b5c313b70f647fbf9381e50ca08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hideSessionBackButton \u0026\u0026 onBackToSessions != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f88ce67125c154101703b39086041ace51556c7e4e6166ff52b897b8575238"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isBackground \u0026\u0026 effectiveProjectPath != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04bc3759729ec255bd67754b32d4c0a2efc7f9d1ebf6586578b0f60863af78f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isBackground \u0026\u0026 path != null \u0026\u0026 path.isNotEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ca29c95cbc87a39e518e088cc8233fc803b2301b13b9fc0339adbb50cf0ac7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 defaultTargetPlatform == TargetPlatform.iOS\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/floating_keyboard_service.dart, apps/mobile/lib/services/photo_library_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/floating_keyboard_service.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87d864317a3bc7844dd539911077ee6fd8990e1c1b44bcf294a774c65d78205"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 defaultTargetPlatform == TargetPlatform.macOS\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/native_paste_bridge.dart, apps/mobile/lib/widgets/google_search_text_selection.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/native_paste_bridge.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ec129f05ad4c1200dca55327b093908dc1a983ea906d54a85a53827ea592f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mounted || !_scrollController.hasClients\u0060 appears character-identically in 3 files \u2014 apps/mobile/lib/widgets/bubbles/plan_card.dart, apps/mobile/lib/widgets/file_mention_overlay.dart, apps/mobile/lib/widgets/slash_command_overlay.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/plan_card.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26daf8f72972de7a02775c602372758aa6cc13f92969e797bd36e8dcd6c0c73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mounted || !widget.scrollController.hasClients\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart, apps/mobile/lib/features/file_peek/file_peek_sheet.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77e4abf21555b6917aea68a1c1fde14cda03ffcfbbcc4bf76c89f78c6ee064c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mounted || stoppedSessionId != _sessionId\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cc5192054a477ebdf1bf5cb16676850a101cff4dac7c083709a08688637939"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!state.isAvailable \u0026\u0026 state.errorMessage == null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/settings/supporter_screen.dart, apps/mobile/lib/features/settings/widgets/support_section.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/supporter_screen.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0412f819f5a6344156d45d9689848d219ccf44540cb373cee009c1416825ce48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FeatureFlags.current.isEnabled( AppFeature.terminalAppIntegration, ) \u0026\u0026 terminalConfig.isConfigured \u0026\u0026 effectiveProjectPath != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90033f5fa4448fd97012a685db746a2e0854e8a2c7069829be37b14554146a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Platform.isMacOS || Platform.isWindows || Platform.isLinux\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/file_peek/playback/local_media_snapshot_io.dart, apps/mobile/lib/utils/platform_helper_io.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/playback/local_media_snapshot_io.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"32714f182cd7c408df4406bf0aadeebc8f631b0b44e3b113a4edc696f39e5fb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060askToolUseId == null \u0026\u0026 askInput == null \u0026\u0026 pendingToolUseId == null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"758196f038911f3b7ffdbe6327596e0edd963bfc1a48737af9ffc5bc99cc406c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060base == null || uri == null || (base.scheme != \u0027http\u0027 \u0026\u0026 base.scheme != \u0027https\u0027)\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart, apps/mobile/lib/features/file_upload/file_upload_transport.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0005a1ee9b3069a7ba1f9e75c3a6f8392bc2264e751da87b4a1a6865d9f22fbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bridgeState == BridgeConnectionState.reconnecting || bridgeState == BridgeConnectionState.disconnected\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1037b74772c03e61c3df5d04b9a70f05e0c9694c12053c40cdbff71876f638"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060buffered != null \u0026\u0026 buffered.sessionId != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99711cad73450851f3c5f565c51b31f2f375f0aaaa4833da3d96dc560aecf11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c is ToolUseContent \u0026\u0026 c.name == \u0027ExitPlanMode\u0027\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/widgets/bubbles/assistant_bubble.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"18561316037281d365be6bcc18ebb0684575546b8c67958710e9b7555169b968"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060clientMessageId != null \u0026\u0026 clientMessageId.isNotEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart, apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e179d92ad695528db0b69d065a55f6009919640db479fd559095d101fd61cab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060completer != null \u0026\u0026 !completer.isCompleted\u0060 appears character-identically in 3 files \u2014 apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart, apps/mobile/lib/features/file_upload/state/file_upload_cubit.dart, apps/mobile/lib/services/bridge_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c06b38458d93f79410ba0ddf1b6328c64d02a2190d695d87b8e50b57a06270"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content is! ThinkingContent || content.thinking.trim().isNotEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/chat_message_handler.dart, apps/mobile/lib/widgets/bubbles/assistant_bubble.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9338a29d7cc78bee41de6c436aa2efb13bbf63c1ae1c3ffe96b6fee8700e9c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060count \u003C line.length \u0026\u0026 line.codeUnitAt(count) == 32\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart, apps/mobile/lib/utils/ordered_list_editing.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"171b0a5d32ad6664ad138c8493e34eb5f61f572b3ad967cbce280ce585b92233"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060duoPolicy.useStrip \u0026\u0026 DuoStripScope.hasStrip(context)\u0060 appears character-identically in 3 files \u2014 apps/mobile/lib/features/file_browser/file_browser_view.dart, apps/mobile/lib/features/gallery/gallery_screen.dart, apps/mobile/lib/features/git/git_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_browser/file_browser_view.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3374ec2b65b3379ceaa773b21bf7fe2c9cf5227c23bf629ae8f183eace91ec31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry is UserChatEntry \u0026\u0026 entry.status == MessageStatus.failed\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f4027d4e79aab28c24d788543a0a9ff4ac6fa1b90cb108275759361bfc7d37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry is UserChatEntry || entry is QuestionAnswerChatEntry\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart, apps/mobile/lib/features/github/widgets/empty_chat_github_button.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76b817d7580ef2859e2a8656ebec00a210190bec886346008196554eace080c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is PlatformException \u0026\u0026 error.code == \u0027permission_denied\u0027\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/file_transfer/widgets/file_transfer_dialog.dart, apps/mobile/lib/widgets/media_export_actions.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_transfer/widgets/file_transfer_dialog.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a606b089d4dda92833d712d7625dfce7701fdd2c0923bdf8bbe615726fb5773c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event is! KeyDownEvent \u0026\u0026 event is! KeyRepeatEvent\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart, apps/mobile/lib/widgets/chat_input_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5375891796b7ca3651fd57ffe1d599005eb91d8e8e3f5f5a0b8aeda86de825"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gitProjectPath != null \u0026\u0026 gitProjectPath.isNotEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0f520fc8262b95fe5e489ffa13ca53294dd1a1b1379c263bca2be97143de23"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hardware.isMetaPressed || hardware.isAltPressed || hardware.isShiftPressed\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart, apps/mobile/lib/widgets/chat_input_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"7706a5af4a3bfac3eed5c73f6fa0ec70fc74ff870a01569a6da31f6ea095beda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060json[\u0027type\u0027] == \u0027error\u0027 \u0026\u0026 json[\u0027errorCode\u0027] == \u0027incompatible_protocol\u0027\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/bridge_service.dart, apps/mobile/lib/services/prompt_history_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fb00ca4c9000546cb2de896f41f0d4c84b1b3a5070ca6ea22b7c430e04e34f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lifecycleState != null \u0026\u0026 lifecycleState != AppLifecycleState.resumed\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"4448dbe7942c28318d62846d0eba2adc182857d167638a2e5ec6e3907bd3d7a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060machine != null \u0026\u0026 machineState.updatingMachineId == machine.id\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/settings/sections/connection_settings_section.dart, apps/mobile/lib/features/settings/widgets/settings_status_card.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/settings/sections/connection_settings_section.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db1598c45c6b56e6e3886bd1aeb22518c92d3556146dd2531560f28c6bc661"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060media.path != null \u0026\u0026 media.projectPath != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/media_feedback/state/media_feedback_state.dart, apps/mobile/lib/features/media_feedback/widgets/media_feedback_cards.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/media_feedback/state/media_feedback_state.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb89973de5cc72f713cb8e6bb6fa11f953aa19d2064252772ae88c57a7bc485"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060messageUuid != null \u0026\u0026 messageUuid.isNotEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart, apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"07acecef3ab30fcdd73a375f3b1c0d2203a3eaf1617fced957d5ea87c4fdd30f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model != null \u0026\u0026 modelEfforts.containsKey(model)\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/widgets/claude_settings_panel.dart, apps/mobile/lib/widgets/new_session_sheet.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/claude_settings_panel.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66ee39872d071319037c9ef7301412374910700782e7471a1d3421b5dfd7bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg != null \u0026\u0026 msg.sessionId != null \u0026\u0026 (msg.requestId == null || msg.requestId == _sessionId) \u0026\u0026 mounted \u0026\u0026 _isPending\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe06df92a7c3eac1598d776aa8cd97acf345fbca23422e2d846ed00317f9308"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg is BranchUpdateMessage \u0026\u0026 msg.sessionId == sessionId\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"643e57cedb83fae6a5377f157c43fb94d65434be6b17f5606fe7533b5f307d59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg is ErrorMessage \u0026\u0026 msg.requestId == _sessionId \u0026\u0026 _isPending \u0026\u0026 mounted\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6e70f6008cce5d7b3ccca0e5ca5d0270625cf4f10ebfc408619d9ec9298670"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg is SystemMessage \u0026\u0026 msg.subtype == \u0027session_created\u0027\u0060 appears character-identically in 3 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart, apps/mobile/lib/features/session_list/session_list_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccc5d4fc1413dbd5820bc0daf362d963467a4ca951df519f6e2bdc17b9a5401"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg is SystemMessage \u0026\u0026 msg.subtype == \u0027session_created\u0027 \u0026\u0026 msg.sourceSessionId == _sessionId \u0026\u0026 msg.sessionId != null \u0026\u0026 msg.sessionId != _\u2026\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89c93448702b4532c805c6cccb1af5dbe329016c578f7d32a49a87fd3097dbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.requestId != null \u0026\u0026 msg.requestId != _sessionId\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c3fb3c0263218b4342acc71f87709d36ab65915b6ec5a0e6e0efe2887ebf5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizedPath.isEmpty \u0026\u0026 normalizedFiles.isEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/bridge_service.dart, apps/mobile/lib/services/session_runtime_store.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a80d075861ce6a53cde238c8007a843aa97ac0cb065df6ba7795755a6539559"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060onSwipeRevert != null || onSwipeUnstage != null\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/git/widgets/diff_content_list.dart, apps/mobile/lib/features/git/widgets/diff_hunk_widget.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/widgets/diff_content_list.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1f3c3222086d28c6a07037c37c93325708dfd2929bce3932b790e7ce6171f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pendingRequestId != null \u0026\u0026 _bridge.canAcceptLegacyProjectResponse(responseFamily, _consumerId)\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/git/state/branch_cubit.dart, apps/mobile/lib/features/git/state/commit_cubit.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/branch_cubit.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c3c963c3767f57034a71cf6125e09d62438c2913ccfc2fd4a6cc68f8526d7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060planMode || permissionMode == PermissionMode.plan.value\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/models/messages.dart, apps/mobile/lib/widgets/session_visual_status.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":5058}}}],"partialFingerprints":{"codehealthFindingId/v1":"3591bb82eefcb13921a1aa4f748722960b09c2a56cb38f4822f048191f494f77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060platform == TargetPlatform.iOS || platform == TargetPlatform.android\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/app_icon_service.dart, apps/mobile/lib/services/revenuecat_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/app_icon_service.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d07545a91b1fef5a2243cbd307f136333bfe96cd2953d40db2e974cf958d97d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060privateKey == null || privateKey.isEmpty\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/ssh_bridge_tunnel_service.dart, apps/mobile/lib/services/ssh_startup_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/ssh_bridge_tunnel_service.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8941be9e1d8aad78aaa07a2c5020a28c2f4be768e25eee3a45f8cc714b4f6059"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060projectPath == null || projectPath.isEmpty\u0060 appears character-identically in 7 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart, apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart, apps/mobile/lib/features/git/git_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_message_list.dart"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b2e22bdf6f0854b3efcb1cec82bc32d8d1e0fade2846feefdf6fb2f2ef0251"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved.scheme == base.scheme \u0026\u0026 resolved.host == base.host \u0026\u0026 _effectivePort(resolved) == _effectivePort(base)\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart, apps/mobile/lib/features/file_upload/file_upload_transport.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_transfer/state/file_transfer_cubit.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e4c91e76aedd2474805598db820a3c70075d2c9074b93f8dffa3bba50c926b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result is! ExploreScreenResult || !context.mounted\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e385392ea36b83f84edaf09b00ecce1b39dc6ab54fd97e599c9335da0dee2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.projectPath != null \u0026\u0026 result.projectPath != _projectPath\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/git/state/branch_cubit.dart, apps/mobile/lib/features/git/state/commit_cubit.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/state/branch_cubit.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabead751c8e1f3f44f80c4bd6aa6e7b9ae07f83b8c62aa348c6475a62d51074"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060runes.length == 1 \u0026\u0026 runes.single == controlCharacter\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart, apps/mobile/lib/widgets/chat_input_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"0112c7bb14a1d854db5c97f3d53b4fcb197bdd95f2b95e78a55792c638696507"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.staging || state.pulling || state.pushing\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/git/git_screen.dart, apps/mobile/lib/features/git/widgets/git_project_header.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1227dc809abe48569d23c7a45d4e27c63a755af097c62f7759543f73d21d6dbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == ProcessStatus.idle || status == ProcessStatus.starting\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/services/chat_message_handler.dart, apps/mobile/lib/services/session_pending_input_state.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/chat_message_handler.dart"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9f0019e408b76909fdaaa4163072fd18dfcfb8f9a04fb70a28e206ad10e284"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060supportsMessageEdit \u0026\u0026 status == ProcessStatus.idle\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1311a0caa12c762bf34de6e453222b4702e5da76501451023966917e063fba65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060widget.projectPath != null \u0026\u0026 msg.projectPath != null \u0026\u0026 msg.projectPath != widget.projectPath\u0060 appears character-identically in 2 files \u2014 apps/mobile/lib/features/claude_session/claude_session_screen.dart, apps/mobile/lib/features/codex_session/codex_session_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b47049417bfcddfc22b2afb7bc6607c610d2e9c40fe702d2726eacbb2589b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(timestamp) \u0026\u0026 timestamp \u003E Date.now()\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/codex-recovery.ts, packages/bridge/src/usage-limit.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"afae002c51d303dc9d4cccf684a554f149e42538615775ef31e2d52fcfa2b9d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isSafeInteger(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/index.ts, packages/bridge/src/websocket.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/index.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b50253cc8d1c3377c9d195baa30ccb6ff50f803887dc13159fc712cef2abf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060codexAppServerMode === \u0022external\u0022 \u0026\u0026 !codexAppServerUrl\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/setup-launchd.ts, packages/bridge/src/setup-systemd.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c604b9d03dfa4e6d5aa59cec3854d8da1946debaa78cbf5620027bfdb0a0d3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.isMeta === true || entry.isCompactSummary === true\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/recent-session-search.ts, packages/bridge/src/sessions-index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f89dfcdb050a5e34e36933c75943bc40864bfacf7a551ba880c7f70ab2c0111"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err instanceof CodexRpcError \u0026\u0026 err.code === -32601\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/codex-process.ts, packages/bridge/src/websocket.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c936a03e1caacde78f063ee9ffbfd8fe8f961c6618ee20c85172afa66f8b53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060initialization.account.apiKeySource === \u0022oauth\u0022 \u0026\u0026 !isClaudeOAuthOptInEnabled()\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/claude-usage.ts, packages/bridge/src/sdk-process.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/claude-usage.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5308733fab8ffd32ba5700f05a15fa9b7ae048beea9e3119f29b28287e2c9e95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type === \u0022text\u0022 \u0026\u0026 typeof item.text === \u0022string\u0022\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/sessions-index.ts, packages/bridge/src/websocket.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2831}}}],"partialFingerprints":{"codehealthFindingId/v1":"765bc21a92feae3cf31dbfb1158832bb713281626df616e2a85f72d4a1ba4676"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.role === \u0022user\u0022 \u0026\u0026 !message.isMeta\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/sessions-index.ts, packages/bridge/src/websocket.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a166c77376b1cdffb9fd6654375c4a60350258d3cd3fca42155f9834d418d5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts.insecureNoAuth || process.env.BRIDGE_INSECURE_NO_AUTH === \u00221\u0022\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/setup-launchd.ts, packages/bridge/src/setup-systemd.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d671b1c6774c7e30a7bccc2219fd5f58de38b439ddc5b6d45c8c17fc60615dd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 3 files \u2014 packages/bridge/src/codex-process.ts, packages/bridge/src/context-compaction.ts, packages/bridge/src/sessions-index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":4813}}}],"partialFingerprints":{"codehealthFindingId/v1":"6587d6cc3250347ddb094f390c752ff68b8e83b4bc69b861773421deafd1b4f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.length \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/bridge/src/codex-background-tracker.ts, packages/bridge/src/codex-process.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea7c88f40b1f908cf4f14bbb869a23155cfdbca54ad6bccd3b283337b827535"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim().length \u003E 0\u0060 appears character-identically in 4 files \u2014 packages/bridge/src/claude-provider.ts, packages/bridge/src/codex-process.ts, packages/bridge/src/parser.ts, packages/bridge/src/workspace-store.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/claude-provider.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d89856aad3e4592cd450d3b25377bd133e95b8a2d88189a1b70a2700127e09"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 4 files \u2014 packages/bridge/src/codex-background-tracker.ts, packages/bridge/src/codex-process.ts, packages/bridge/src/github-cli.ts, packages/bridge/src/recent-session-search.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-background-tracker.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee11e330c9b1d7eac138fed94c0d35deb3e9dc7a460a825703928714dbf00b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.installed \u0026\u0026 !provider.authenticated\u0060 appears character-identically in 2 files \u2014 apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift, apps/menubar/CCPocketMenubar/Views/DoctorPage/CheckResultRow.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/ViewModels/DoctorViewModel.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b561238e6285f43788fc38ce4d563015e049cc9a160263f9277ab2988cc387c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060ServerMessage.fromJson\u0060 is public and takes \u0060Map\u003CString, dynamic\u003E json\u0060 from its caller, and it calls itself at line 1057 (\u0060ServerMessage.fromJson\u0060) with a piece of \u0060json\u0060 \u2014 and nowhere in \u0060ServerMessage.fromJson\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. \u0060jsonDecode\u0060 sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws \u0060StackOverflowError\u0060 from about 20,000 levels \u2014 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser\u0027s stack). That is an \u0060Error\u0060, not an \u0060Exception\u0060: an \u0060on Exception catch\u0060 around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through \u0060ServerMessage.fromJson\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/messages.dart"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"599bdd868d901aea3989f85fe6bc0a89ef57a98fadcf1b947e05271124422617"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060BridgeService\u0060 carries a disposal duty \u2014 it declares its own release \u2014 and it creates \u0060_recordingListController\u0060 itself (line 93, \u0060StreamController.broadcast\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_recordingListController.close()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060StreamController.broadcast\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_recordingListController.close();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"835d437270632ec370c0b12271757d7df29245d75eaca3017bd6b93fbbbe8d11"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060BridgeService\u0060 carries a disposal duty \u2014 it declares its own release \u2014 and it creates \u0060_recordingContentController\u0060 itself (line 95, \u0060StreamController.broadcast\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_recordingContentController.close()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060StreamController.broadcast\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_recordingContentController.close();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82e62e1f4d6e03f4f3511435b8dd384ca0233cc0ac0b7c11a4e85b74a320e62"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060BridgeService\u0060 carries a disposal duty \u2014 it declares its own release \u2014 and it creates \u0060_fileContentController\u0060 itself (line 109, \u0060StreamController.broadcast\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_fileContentController.close()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060StreamController.broadcast\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_fileContentController.close();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa46e0c3bd0171743ead8433ff57081deb7aec784d1f7e03382e6b85832781c"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: This condition tests \u0060bytes\u0060 for emptiness and then indexes it on a branch that test does not reach. \u0060bytes[0]\u0060 is evaluated whenever the guarded half is false \u2014 which includes the case the guard exists to anticipate, \u0060bytes\u0060 being empty \u2014 so an empty \u0060bytes\u0060 indexes position 0 of nothing and throws. This same condition already shows the intended bracketing at line 1520: \u0060bytes[8]\u0060 sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or \u0060bytes\u0060 cannot be empty here, in which case the guard beside it is dead code \u2014 the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to \u0060bytes\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f2e92f34c067c62200440e8297494125e733e197f44ac068b95a69a257d004"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: This condition tests \u0060bytes\u0060 for emptiness and then indexes it on a branch that test does not reach. \u0060bytes[1]\u0060 is evaluated whenever the guarded half is false \u2014 which includes the case the guard exists to anticipate, \u0060bytes\u0060 being empty \u2014 so an empty \u0060bytes\u0060 indexes position 1 of nothing and throws. This same condition already shows the intended bracketing at line 1520: \u0060bytes[8]\u0060 sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or \u0060bytes\u0060 cannot be empty here, in which case the guard beside it is dead code \u2014 the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to \u0060bytes\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"348044aa792a3c32bde6da153e88237bc892e7172ba4b685eb704809b6c1885f"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: This condition tests \u0060bytes\u0060 for emptiness and then indexes it on a branch that test does not reach. \u0060bytes[2]\u0060 is evaluated whenever the guarded half is false \u2014 which includes the case the guard exists to anticipate, \u0060bytes\u0060 being empty \u2014 so an empty \u0060bytes\u0060 indexes position 2 of nothing and throws. This same condition already shows the intended bracketing at line 1520: \u0060bytes[8]\u0060 sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or \u0060bytes\u0060 cannot be empty here, in which case the guard beside it is dead code \u2014 the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to \u0060bytes\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3539969253e6f324cbdabe6d79bc91699dda32b6a5b307d32743316ae330d300"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: This condition tests \u0060bytes\u0060 for emptiness and then indexes it on a branch that test does not reach. \u0060bytes[3]\u0060 is evaluated whenever the guarded half is false \u2014 which includes the case the guard exists to anticipate, \u0060bytes\u0060 being empty \u2014 so an empty \u0060bytes\u0060 indexes position 3 of nothing and throws. This same condition already shows the intended bracketing at line 1520: \u0060bytes[8]\u0060 sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or \u0060bytes\u0060 cannot be empty here, in which case the guard beside it is dead code \u2014 the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to \u0060bytes\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f569c9038e8932ccfdc848867dd1590380baa72e034c9bbe69cf6658a8ec29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/claude-usage.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"610b6a30bdcd91b358d2bbfb5d41d06b7dc77ac5a63befa0628eacecae88cacd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8157937cf70b2ac0a35369c4034c93c393973034465ed68e620c037dce790f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"009aeb183fd74a02ea4434fdf2a673f6cb64d9bb83b311595ed3f7c9b55e7f9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2728}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ca2cecbf394b394dd905f89aaaeeda07b371d8f886afe4f989025dcc7636b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":2829}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3d8249e3fb83357c2906e28e39d7ae5456562420acb91d475ab7ed43e5f4b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":3594}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd74b8820502eb975c98819885b3508956a4e05681dfc141b85560c79c6095ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-process.ts"},"region":{"startLine":5478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf3e45a95ceb3f5913f8fb6f7dde0950cde3ec4a7bc4b5acd6b04b6b41e0780"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91d8de65efd25d8c6c90b5ff6e3e61c2b82c75b8db8bd4016d3e746a6fd983a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-recovery.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d96c985b255fc465da4cbda3f75ab4709f412ab7e70c8ca63d8dec50ca98b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/debug-trace-store.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7029df213e5d4016dd6407e63ad31a78004618c2228d6cdf098e73454a53fcf8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/debug-trace-store.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68aaac405f3b32ed630ab26c4fd2f9e85c932ba680a43297ffbfd9c5014d7a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"849d965181d31a1e62e58f7b3f8a66f51e785e5fbb174e7f224ba34a617da1ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/directory-listing.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f538cc94db53b4fd9b33d309a5baaf1791d2396ac3e831318c6553fff2c4d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"435584a40fd9446e6b9c1ba27fc5dac483d714368f29189daef4629e25775841"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5a22e0a02b72fb3160acb156af01beedc68a11c6eb8151937bb3bd077b5765"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f86f3a59314de355d63688efb172fe131f5f0864a444ba6b32959430b14f42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/doctor.ts"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb572b8aaf07008bde38325f0e4382d6f574d0bb969e2457bdbfdd7575af9af8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"79681b640635640c0d9c5adccdaecfc25df97c08250e741e23129c144d09e3e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ac1df8f69256ecce023ecf7dfcaf269d838df7477da4cffbf18a11054656ba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"25260d34a40e25ce1f35db14169aca3bf934d3b682d6dd48bd0b27fc075e1317"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/gallery-store.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"741d2dfe1dcf77b797a75b2f1ea0e302cfa52b12ccd7cb8dcb8c5eb211270e87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9868e082a9c4d8579a97c421e62e454d2cbf0175952bac0a246c779cfdd45d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"8069e6283d95b4ff213eff83a53f3369665e7213122981e25e1582858cff3edd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb9e31f399ee663a6b85cd35367c74bf4f569e6b0f1c24e27153a949593eb06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-operations.ts"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"1772f889b44e6ba306b3f721f05de4171f0f87b69e9f4a21553ef747dc6c0139"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/image-store.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ecaaa30275a257cec63877288d7ae60c04f5f3357e51e89cdb6ae4cc2e10a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/markdown-images.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e737d286b6dbaa1832639f6838b0d0ae0613991aa6f1fca81279e0460a9b4d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-history.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c618b4f51618ecf97e5e8fe62a27dbec6d2cc54e94c3d570d541b5329178e8b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/project-history.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2064d683ed68d230982e0d2be53c4ab7686ecb049851f03ffa9bccc080ca8e34"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa56a38db2dd06afbf9c9b1d1e17b673f96e7530e770f325dd3a5ad5b7301fa3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7edd1d21520c8bb4721db8d98047e9a0a6c95eabc8910525cae183ceb9c898"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb2db0ca473bd4d505938d2639efffd4469389141c22650c4c902d65c9ca248"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"99966a8df61f28f9c372956af393a3ab56f425bce98a24eb8e181574ef54bed4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8658c59ca932705279ed950186fd06078b3e6aed107c6cca0f6942948c3642e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"851317811db136f0aa31a53d876ff6a2b208bffcc8600b10735ca9ff069b3a0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"403f561eb34e82e76338e48608f732222af4f1857c6403bf1f7c022318136527"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sdk-process.ts"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"3956367dcbf10eeb4b2cc5e44c958d83d741d9e3fd365ae71f747d108f102064"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"30de215a12985ad26f88c66ef158cfe89df04338b07936db357a3a793869b13e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f67d1ebfaa6c0fca1afb347248d01740cce1fd5b99357e99e3232a7622799f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/session.ts"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148ea0187f004bfa8bbdc4ed8a884db314808b0f56f1877719325eaf6b4e6c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03934728ea5499f3ebe67aa782aa14973d2beba460ffab0274eb297b536220c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa167648e53ac1bcf8ab951d05104f121adc25a406f7939a3690b599b6f58d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"c251ff25deb0b65bb71ba349ced8d02dde13ff09540dc84d6c4fea5cb47910c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a03e451517295eafd7370e18fa600277d1b422cb09c643a684a346b3d61b3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0439cf17d41b5c8c13192bf147127fcd58d476d4ec0ee0de5c54a04063e2c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"413ff055c1f44ca7c8bb89970f41f29d71df5b6e6db85688ba18c959a287b94a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e619e0ece83985788d801d864680b5a331aae1461ad085783cc72e43ff08bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"570e4154c4fb305ddd0e46019c6d9490e1a57f0800ee66f649b47f311adbcc9f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0cf23883e9ac76966f09e304f2ef0a0e90ff8a5cc6a23a7035dddc3c193ba7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa71f5eb9212dccf56e4d164412f503f460b4076375bbaa5ba8d4fc9d8bc7e7d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3513}}}],"partialFingerprints":{"codehealthFindingId/v1":"895735eab2bd07c1c2bfca787e0106513cb33f873c3a097037f4964df829a7cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3524}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5d1deec1622aea90249a2bb9c76cdff82b512c05c7cad4b97da87bd0e567ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3541}}}],"partialFingerprints":{"codehealthFindingId/v1":"a533f934714d04fe2238ca788123b00ba3b13fed060e5ecda6ae535ef289d175"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3573}}}],"partialFingerprints":{"codehealthFindingId/v1":"584718887866cb8d0d7f48f582249cadd80a218e1ed8efa684db895677f5caa9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3595}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e78b0d257aa005b965ff0d1718b17dbb8ff6cc314229f74d4c5bbad7b7ba06e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c908c82f9ffdafa257cbbffe14d857b2e998fe0e1c6ca6598c23fb227222d96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e40c51f417ac60e8d87e1948e7cf01b78c0330e747e06fc3dfca297f9ab1268"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":3762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb373732d1826562bd376945e7e96b4a561546129ececc3b28d665f7079ae0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4024}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b4aa85bbf9d864e6321b5c554252625d97803fd4de1886f3ee9c8050d406dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4159}}}],"partialFingerprints":{"codehealthFindingId/v1":"981a39d91d252b1eb96e1df1517670733e75fa427bd21f34838664fa7b5fdfb6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4238}}}],"partialFingerprints":{"codehealthFindingId/v1":"657c7ff6e99b6fa55b65f9499e83d92643f23eb3fc2e77ef071ea3ec193f4653"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e589b9194810eb11cc37d4769706151ac88bcc3b6b373eee6d53bec4c635de30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4660}}}],"partialFingerprints":{"codehealthFindingId/v1":"03eb671a99694f5957e60f26571729b01b92baa7260a755e759e021b549191db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":4667}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51a1eca8a97cac069aa3a7a9d1a81e2d962416da5a6de700ce7c47c7736d5fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"975bcc971a19a73d913a0817a3905b513e04660f86d16122558c8ea947a6300c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59944d61103c129b48b2c2a6fce8fe8c5d19810b28606290b4b81342aa2eebf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-launchd.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a22b791ffabc41bffe5f708c5ab8fdfb31063a903fd20821e43e06e2ee3dfff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afa157a8c32908f609dca459271ae9633541a867958ebb03b5a930003ec3bc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f44e0b906a264182282127a9d71f0c852168c3f069d7441e07baad1fa66de2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/setup-systemd.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b39880e30c55e1e083d516c3ffd11693c96e73d02ed97cb2b88d9ebf6ee15e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87aaed3ac18dd7d1f6d81f95b3c6a858dd3785bfb517129eb3b325d4043736a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1ad93e4c6f4ec02b527bed6bee1db57ebaeb30a6c84f0ff812962d087712c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fcd3177a730b6b69b0bca4c94d1b363043c318fdc99c6bcd0ce5b9767165f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49f793879f847aad8f2da2aa182bc74bebe0943a67c0edf29f3e25fb29c065c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc7edfc4f62cddb506f4f89e42b64b05b00d221c39dff66a0acd58b5972cbda"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7870}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c7df658a608ca81b84b53dfe0055d56a2238b2dff2e19f4d8b5e53907a1207"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":7890}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6c2bce91a85d96bcdc43a9adaac0c1f2738742fee0543e704307b6ee6315e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":8783}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf664a807f54428ada3d965e86ca68ade0ec4d3f7d9ddd03a3b52abef9d817e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":9421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3ffa559993f6271537fb2641097b3a3f5356ae1780a49d29e8ce793aabc2c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":10758}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83c605fa15b08616225b728e935e94b8d263774d217554dccd512acf0678fe0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9063f7fd4a2619e9d6ecfe260fadf3fd831e2e435cfe168e2fccbf87177752"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6c396b30f37b69a821266a97a5825fa04fdee5e3e2996dd9950a0b058bf77"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a98a65a07ae3609a4ee6903ab1bf2f093fb5624a1d9223236de521be7b73bcb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11364}}}],"partialFingerprints":{"codehealthFindingId/v1":"6149d6d3d1e87945acfa1de3872e2d16d00cfe791253e59726388025d37d8d7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acfe20b26a2f8419f1677b338f22dfb5deff6b39c2c8b2dff96bc6b6de966f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11386}}}],"partialFingerprints":{"codehealthFindingId/v1":"2100b8155659bc4c6b666f6adeba307097d71a97efbea53623e741f9da2c3d76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11561}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0da6469725bb1a293e2e860eddd21f78ac2d8960c229d4e27eadec6404ffb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/websocket.ts"},"region":{"startLine":11573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3cf8fd94e84879ff8d502067a9242fd43b63e0cb9997c7ec505af3b5c35ede"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/workspace-store.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e138d2d1477596f68b4ab683d12dcdb2f28cb5e33a42882c7c1260230d1a74"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5f7c9c098cd538cda6fc21db600b20adc9ecab490e41120103d925bdae1e19"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa82f1c1c32dd69ed7ac224fca9ca8ee07ce0bb1f5eb214419467f63367de31"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9648c0d6d4b1120fd67527c660d5cfd0724a74e78d25d71ced2a65177759dae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0274a3b9dcd0d68d023dcd09837fc487542a362eda8edfddcfe74cbab8dd85d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/new_session_sheet.dart"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"092855bf2b08833f1fa157fe9b92f7902a292b7157bf6024d706f23a60d322e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"3397a0d7cc1ec75d37eeba779211b19e79f3b9936d62b8fc2973a3f643b6db51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c3849b542bc11b0d6ae82976827bb6ff86f4fb71f314861bb664a9ac5fb1f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":3221}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f99c9276e056b9a201d99a8914b01979fa5ea6ff539721c221872dbcd8fb82"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/image_preview.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0df6dc41a9a0841cc786ad4c905fd5a96a47d1e638c6cc6dda2373b0653322f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/markdown_image_chip.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5476f62d0f68e51b39c91dbcecbe10593b143dbb272d2bf0008cdbd3a6ad878"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/bubbles/markdown_image_chip.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e05448474a60d962392f70c74f3f018a1dbffe7360086dc8042de975668a18"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/utils/platform_helper_io.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a263dfa821e4e59343fcfe59f3285304a0b56fd5076b90a789e3a02f790c163"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/utils/request_user_input.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae8cf4cc498e855a224c084b19a93620aed5d3f43980abdcb998fc21d121ed4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/utils/request_user_input.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e1ef64327ba66db59d1d504d8844b7440641c686fda26a2d93b82c5151b3a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/utils/terminal_launcher.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"869689b6457ea8cf9adb627cda1dbf95b76c705420c1e206ba7bc44602883bd1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/code_text_style.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f548143287533c899554cb9eb9671da1c57869ff4a32227f0b3fc04bd6390d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/theme/markdown_style.dart"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c44f41933f49a54c93f7c237b0097ac2363162c6028bf7ebc0f8c5dc66d160"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":5025}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a700e179e1fb01937d4549648f25d371bc557b4c0612faa1bc4ab65a01132e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":5061}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd0304886fc5b6dd9902632624ed079dd1f8f09403ced654d7572563c39a743"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/bridge_service.dart"},"region":{"startLine":5096}}}],"partialFingerprints":{"codehealthFindingId/v1":"c472d6ca6ebf9b0c497b821332db44b1be85bd8bfb1298cdb11296ae15da0ccc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/draft_service.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f25db364b3e1606f63be5a722d811a1e1dea32037bee69ffbd2251e6886b243"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/draft_service.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5a3bd56eadcefe6e91a73d803f8b18829505e2871b2388a705240eb29d4290"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f0fa0d5b0a28d270db0e358fa0458b0eb6067d2d7ee58be10d248652820ec6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02bf1cb85ceb2d42796fd3af431c11c893f3f9a8a132ba3ae254f94c6ec99d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/machine_manager_service.dart"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90b12000e854d82bf4ba570a391389716ea7f610c108c81ee73701ba5ad7cf0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2a5a0f6494455c7e98a9299622641310bf5c7f0c025176135dae4301cfc457"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"221a870a721c9dc7d63ad0524c46df7a860c0704566ff4db78ac562924973ce9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/router/session_route_observer.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb93875f6dd7ff3d8bf464b4792b2fb24c3faf784aceebeec1e1c2a786dc004"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/models/new_session_tab.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"57119ddb429c2eda4af40b215569e7ba798e8e99a5162bc9e4cd1652fffc6dd8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/hooks/use_voice_input.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b195b8ab093288a56fc15441f0287d8c53b3c3401c02183f9b0bbe14daa5853"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/session_list_screen.dart"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c5e5e2faf24ef64244361ff1d8e8f9c221f241f5a72cecc10d719c68717745"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/widgets/home_content.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b5ea37921bc3951b34ceef3722fca9e0cd3ae20f25e7c29688ec14540bdfbc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/codex_project_profile_store.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb8c4db0c9d260d8990195abe7ed15a05620275d84a3c21615b584e7254e4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_resume_coordinator.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74e473858b2ab0dfa69169a3d3d63f43c90f6734865b49ae761f35f82129ffe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/session_start_defaults_store.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a83978305b788fdb629465668280d9b011e2faf31104eb4423f250074d4557"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"992f74f3c848207509d8656af5c1169197a0c7ec967b037954ada1cb90c0477b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa4b5fa6de13311f7e8a009a8450ab782705fab5c8f4ae0f1b6589fcebf4d2d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/git/git_screen.dart"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"d913ee0874199d73a914c76e065e32a7a1a2eb88903394869d4a021d3217abfa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/generated_image_preview/generated_image_preview_mapper.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e6e56661108cdbb5d9da2f68d1aff8a51fbee0f8e42697f4894178d13cdf6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/file_peek_sheet.dart"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"d775ff758218248036fbb0e7291e1bd767edc47c52271f8fe439a05dc805330d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/state/finder_reveal_cubit.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b179119362f99c9b7a171e337ec4274c732bd37684c44e8cf7608031145eaf3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/file_peek/state/finder_reveal_cubit.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba276a24f4b95d668ab0c07f4ab8ef748a534c97594955fb9c128e43c8cf173c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c90b27a8141b1f0a63fb753536ccec378fd74609c97b77038388022c16de13"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eb6d8e91ba520c9c4482cda13ea5bf8d965a08bbc9f7c42866e0ededc2e821"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"17855e3c9d4434ac4e08091944c8eb1a2c608d02cc07a9d33cf466129cd7fd13"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/codex_session/codex_session_screen.dart"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"59afb97ffc25ff1b4e61b42e62f3c745b7d519d5d722b3384b1707da39a2b098"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5d69b4ad9cdaa1f32c58e292094c86a9eaa1a5e6cc445f4c9f021c9941de9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"83baddcfea9d265cc1c02e282b18b51999e321f6fce1da1aa5abae9acaa490e0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f10a77cd0b7a71cd6edf84f830eb824e91fe99f8f3e370a55bd4b74799ce33"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/claude_session/claude_session_screen.dart"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbb0a91fc90d3412755b1e5c601a774a1cb7c1d8776b463af8727babcfdb35e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/widgets/chat_input_with_overlays.dart"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54829ab0d6bf0ecb7b563adc54f678349ff13bd64c0e1a3cd6e38e33c50015f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/chat_session/state/chat_session_cubit.dart"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ae3dc15be17750841695d04b4168fa4747708fc492b810c296d36af6d90cb5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeClient.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6102ce18c3b98951f74de04c2fb3e0348128c7b27ddd7d665d5e09a4919625d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeProcessManager.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450898064441c587759b42e71916879d3635ba9bb220a407041e9e10d73870b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/menubar/CCPocketMenubar/Services/BridgeProcessManager.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f514520821236f13af33ddf496afeeda1a53a11f87fc3e8155b3e0eb74f0f1"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recent-session-search.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e9771c9dfa910a17a562c331900d6557c38685ec9d8611b6d7802142b87431"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"2397bd8e2d17079004438bfde3e3e7b23d0ceeaed6c3a8ba19999e3b9ab57d64"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f6aded5bf2ec5fe382008106b27c8461d8b842da9963587fa1eed2812b534a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4c26be138538c6c4cf64e97bc8447935789b844712f5a7b9ef7567e922ce2e"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6ce3579e9ed6b086ea01fb7a39c74439d65b4ab6946e412e441463bf8f6848"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a0765d3420441a4015c58672d0ec5a6616f54427ea94d67a6433b53b815ebb"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4069d78334e13255c3ca133baa7903811bc81947fe76f36c129a43172ec22c"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d26a1a20120cb1f9ef0c8d49977bd40b7173c08ba10749175074646db966a56"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"de353ed1a5ee73879308bb504ec37b21dc96bded760eeef17af3743e1451c48f"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"571ff8b66e0347dcf84e8479300d1f8b20b120f7b64141b964c5bd9eec3976fe"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"575b2e72e7da88983f2effe031910531c3eb33e6cced0212c87ec596219041e2"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"37aeedd49fb3e71077f1f70be317cbdf12c140547b9a04b15d29f500982119ea"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"920d73e35c1700ada25f3eb6bb174b0a91079b4c2b74a05a5421a244054a84dc"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"176c2a2f7bd5537c1eb6568be7911e1e50e9b18bbac6dd8397aeb581af7feb87"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_loadAll\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/features/session_list/services/codex_project_profile_store.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d5c8eeafbb6b85699944b7dcb430cfb76cb3d26f4a7a6e5ea8b116915ec1db"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_decodeClientStats\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59e13f2bda2528cb09c3c7a0720e4fa178cf44d8f8a73fbeb7262dbedf4ae4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_decodeSessionStats\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/services/prompt_history_service.dart"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b4e4c5763375aa5a145e388afa7176eeacb2a1c64f5411591f3231baedad40"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_formatElapsed\u0060 turns every thrown error into \u0060\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"424c10a63c1d3bdd74ab976a3e34bdb8bf5b8dbdfbb4470f84c51e90e3ad0ae5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_formatDate\u0060 turns every thrown error into \u0060\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/mobile/lib/widgets/session_card.dart"},"region":{"startLine":3221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9417a88bc621e4fe9d40efd7801cf7eb2c1805c008436b72ae3d9776fe9e9cd1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listWorktrees\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0d04ce685a493d078cf4c287edd566a725d61316579386e545cde81a352467"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getMainBranch\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da02b359b8822ee8c796fa4c780ec6fb0270001d0fa7be7ba0ed246f638189f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractLastPromptFromTail\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"36748b9e713a9bac182b352ae421fa142e9ea84bb6980ed2f4956b0e26bd4350"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060scanJsonlDir\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/sessions-index.ts"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b960396b06595a467fd1fd192ff738b2b68d1c2c0cf05be8b90ce4c587bc0a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060currentGitBranch\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/git-project-state.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42681c2ae9592f219c59db1460ac60233508f9533fdcbfcbacf7b49dfccb7e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/worktree-store.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7996163773430dc757c7e90d292fd2bbc48d69afbc57210d0c38adb450fe350e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/codex-thread-snapshot.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"813eff0ec603c15ecfbd4187bf619b4e0248538d2d30dd10eab657591ea656fc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listRecordings\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c49902abe49931e986bca6c1619d3771798a12438aa11a849ee00b886c70d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractInfoFromJsonl\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/recording-store.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c15b5c37d905a3b9fcd4da24af41d2625e3374211df731c15617d3cf8239982"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getGitInfo\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/bridge/src/version.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf871b45b9550b350beb419bf7a20ecede12c83f046aa80bbd5e5c63cb424fa"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-321","guid":"0ce564a5-a44c-3358-b3db-317712e6e019","name":"Use of Hard-coded Cryptographic Key","shortDescription":{"text":"Use of Hard-coded Cryptographic Key"},"helpUri":"https://cwe.mitre.org/data/definitions/321.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":55,"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."]}]}