{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED3","name":"Event naming","shortDescription":{"text":"Event naming"},"helpUri":"https://codehealth.canine.dev/dimensions/ED3"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"ClientShellState::handle_mouse (cyclomatic 269): ClientShellState::handle_mouse has cyclomatic complexity 269 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mouse.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4013680df4df773eb10f971cb22a2fae9bbad0792abc21cf42284ebbfe8be0"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::run_client_loop (cyclomatic 262): herdr::client::run_client_loop has cyclomatic complexity 262 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"625c2749fecb18ac7c21f598367853f5089dc145ba96fda3a94b03ab69515cf9"}},{"ruleId":"D1","level":"warning","message":{"text":"KeysConfig::local_profile (cyclomatic 177): KeysConfig::local_profile has cyclomatic complexity 177 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb8a92d88ebdfc09fdd17c0a909da22934d0322ee8e0cea3fe6449c3fa26f7f"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::handle_server_event (cyclomatic 133): HeadlessServer::handle_server_event has cyclomatic complexity 133 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c13c8406ce76dff137873125f67b0f3661e0656ed2244644f971843ab9db7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::route_overlay_key (cyclomatic 127): ClientShellState::route_overlay_key has cyclomatic complexity 127 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlay_input.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a599390810fd47d5a8ebad34d20ab2fea7dcb63c144392489ef964bbf3970a"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_api_request_after_internal_events_drained (cyclomatic 101): App::handle_api_request_after_internal_events_drained 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":"src/app/api.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1238f9ff39f2b5106df1aaa3f4eb5c9d041af890a4572e4dc2b99d17bb6e7b1"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::render_and_stream_with_graphics_limit (cyclomatic 84): HeadlessServer::render_and_stream_with_graphics_limit 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf0dc913d872cdc90ac193b6fb6e3b05e3a341553f42c2c69458e0eac040d72"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::validated_keybinds (cyclomatic 77): Config::validated_keybinds has cyclomatic complexity 77 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c6cd0d595b7b90ffca3cb45b0bdc189e6d5a3e930346001ad8838777b48863"}},{"ruleId":"D1","level":"warning","message":{"text":"KeysConfig::deserialize (cyclomatic 68): KeysConfig::deserialize has cyclomatic complexity 68 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b30d352c4afeb62375510fadcfb4513f7bb2a32ac01a954f557b4d9a11e813e"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::pane::terminal::ghostty_collect_dirty_patch (cyclomatic 65): herdr::pane::terminal::ghostty_collect_dirty_patch has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"923030f181bf3bc3f2c2a778c4b17321dd818ad8d41ebac296808459d2a6abca"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::compose (cyclomatic 64): ClientShellState::compose has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a315b9c04be953306ef1e6d18ec0a8814c06f088c83fe575eb26fd64c685d2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::handle_endpoint_result (cyclomatic 63): ClientShellState::handle_endpoint_result 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":"src/client/shell/actions.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bb56a502eee2de7427826ba69164c6d351f9b4cd752c8ee9a45785f93b0934"}},{"ruleId":"D1","level":"warning","message":{"text":"PaneRuntime::spawn_command_builder (cyclomatic 61): PaneRuntime::spawn_command_builder has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2687}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4914ac958007cbb462332f49dfa9afcce6123ad513b1ce685c65342291c18f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::apply_active_snapshot (cyclomatic 60): ClientShellState::apply_active_snapshot has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"93db4a7fc2f6f8743e1f2c68f42a0174d55ad9b3733b5d9d61098b10122361d9"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::render_retained_pane_surface_and_stream (cyclomatic 59): HeadlessServer::render_retained_pane_surface_and_stream has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/retained_surface.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd11bc8b946bd14d29cc5c8db15099f02d34ba71ea34b1ae0d033622d6e191f"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::run (cyclomatic 57): HeadlessServer::run has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc9c37c794dca28385de100c804f652a3d36616fcb8b4b2b0c45b3da5c1c599"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_pane_move (cyclomatic 55): App::handle_pane_move has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b978d9319daf99a9dfa126f0e7bbacb998776e46633677dd7bec625f667a210"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::set_detected_state_with_screen_signals_at (cyclomatic 54): TerminalState::set_detected_state_with_screen_signals_at 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":"src/terminal/state.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b6ddcda8060ff0cc0cec66dcf2bc7557b002f2255f842c956f85461b1f662b"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::handle_internal_event_with_forwarding (cyclomatic 52): HeadlessServer::handle_internal_event_with_forwarding has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/notifications.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f91bf7f4f15bf16096813da860f246e07a66e9b9ed13c25663f376af340f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"C1XtgettcapQueryTracker::observe (cyclomatic 51): C1XtgettcapQueryTracker::observe has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/xtgettcap.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e501056b359dec145b844ca1ac40c94a14360448af8f61f941be371d4a9ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"RawInputByteFramer::flush_timeout (cyclomatic 49): RawInputByteFramer::flush_timeout 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":"src/raw_input.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7cdc3295f26244fa7b50928f75596268eb7ad498afd3cce81a997ce6777ea3"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::integration::actions::uninstall_target (cyclomatic 49): herdr::integration::actions::uninstall_target 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":"src/integration/actions.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa01a90506289b74f3aacc2cf76d86804bc2efabcf1ef32df3cdfc13c7f370a"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_internal_event_with_pane_updates (cyclomatic 48): App::handle_internal_event_with_pane_updates has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe750293622061a4e09e265a40ec1e0aec8afb83b9aee03566e72f83401d78da"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::server::client_transport::client_read_loop_with_endpoint_controls (cyclomatic 48): herdr::server::client_transport::client_read_loop_with_endpoint_controls has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_transport.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01d2f8066176c01c202594699b1a248b1e3cecd335b742e5b81807084639fb7"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::route_copy_mode_key (cyclomatic 47): ClientShellState::route_copy_mode_key has cyclomatic complexity 47 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/copy_mode.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6edd8769bb5e3d1018a69a5b62ccb9190b2a257c64523d95e477343854de58f"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingAltScreenRead::poll (cyclomatic 46): PendingAltScreenRead::poll has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/alt_screen_read.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9d0c6837e5480a30daf790540c32a52d3291344c88b318b28945767cda13f3"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::handle_api_request_with_shutdown_check_inner (cyclomatic 46): HeadlessServer::handle_api_request_with_shutdown_check_inner has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0d025351b7309a507fd4fa08ca013279906cb7acd7fa5000f7d0698ec7ac91"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::overlays::render_navigator_overlay (cyclomatic 44): herdr::client::shell::overlays::render_navigator_overlay has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e437f818c10a6fe8ba38b717a28f5167d2862304b10b0bf9bb17f1ff7d1b51a"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::direct_graphics::valid_control (cyclomatic 42): herdr::client::direct_graphics::valid_control has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/direct_graphics.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"53991856716d51e134d80b83d11c7e3ec2dcfd4e61037ef22c9b666deaefbc71"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::record_binding (cyclomatic 40): ClientShellState::record_binding 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":"src/client/shell/actions.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e2b1d3c2ab014e3c27bf3323c962035f5713cc75af94d9029c52da1a17a5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::endpoint_method_for_action (cyclomatic 40): ClientShellState::endpoint_method_for_action 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":"src/client/shell/actions.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"971649d47094c29e788d7a1e1450fcbeaacec6ca795bdb30817b294f8cf3ac51"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::set_agent_session_ref_for_session_start (cyclomatic 39): TerminalState::set_agent_session_ref_for_session_start has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"069306e4c15f2f739810767b01e65d0d07e06d3e6a6c268ad563bc1423f3f0fd"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::mobile::mobile_items (cyclomatic 39): herdr::client::shell::mobile::mobile_items has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61dffc5485be1e78f18232fbe808cbc340b2668fb3900a7d94cb36c7d98de4a"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::input::unix_stdin_reader_loop (cyclomatic 38): herdr::client::input::unix_stdin_reader_loop has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/input.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"115bf43838b9339667d610243c8dc276093ca21a6b77c4a12b64588d9bfbbddf"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState::handle_app_event (cyclomatic 37): AppState::handle_app_event has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4215c04a4498fe8f10fc3a5b62a03f4b720880da68ee957811da8007cb0e00ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::install_pane_surface (cyclomatic 36): ClientShellState::install_pane_surface has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5ce13688e391a77b4c3439ca2be7e1641971f4e1f22397a6bbbce4e5ab3b86"}},{"ruleId":"D1","level":"warning","message":{"text":"RawInputByteFramer::drain_available_chunks (cyclomatic 36): RawInputByteFramer::drain_available_chunks has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"28272b321751ba158cdd373431d4851de0b09c8eff16bf1eb5efce562cdd81e7"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr-agent-state.default (cyclomatic 36): herdr-agent-state.default has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 2 of the 36 points are its own statements and the rest belongs to 15 function items inside it that branch (desiredState, a function literal at line 404, a function literal at line 439, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/omp/herdr-agent-state.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3e35e6ed4a0177492b725df7c29217f6acfbbface1cdd2a641936f2cca8555"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::handle_raw_events (cyclomatic 35): ClientShellState::handle_raw_events has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecc42a6d23bfdaa605860d172d55913980d7d52fdc4e46a7129a1297c38ac54"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::endpoint_sidebar::render_collapsed (cyclomatic 34): herdr::client::shell::endpoint_sidebar::render_collapsed has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d836e51a7b648236743a393ba47a2d1a9e4a55351beb9983bad5ab9ca384937"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::config::keybinds::parse_key_combo (cyclomatic 33): herdr::config::keybinds::parse_key_combo has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a5553654f344a2bc2f020934197ee834288efd692366d8583d1b73e9892c50"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::persist::restore::restore_tab (cyclomatic 33): herdr::persist::restore::restore_tab has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"902801af71c26f505e4cf18c60d805c128b67b2b275472c0a97edc3a1a52576e"}},{"ruleId":"D1","level":"warning","message":{"text":"TextEditor::handle_key (cyclomatic 32): TextEditor::handle_key has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/text_editor.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"523df90f134324ed7cf262ee2a9bc8ddee9f77f1adfb14a92d751aa23a8a63f4"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::main (cyclomatic 32): herdr::main 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":"src/main.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efd632f78492e707548f8185f164532a94a7cfe6a21791916a4b716c2c02310"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::aggregate_navigation::navigator_rows (cyclomatic 32): herdr::client::shell::aggregate_navigation::navigator_rows has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/aggregate_navigation.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"94565e3016c62d3ddae3b3ac34d19426b49628cd0175302e8c4789f4f3f4245d"}},{"ruleId":"D1","level":"warning","message":{"text":"App::apply_live_config (cyclomatic 31): App::apply_live_config has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddc9617bac6c74890a17f0906351fb22a4adf5dcb28129b3107375db7a85340"}},{"ruleId":"D1","level":"warning","message":{"text":"OscStreamCollector::observe (cyclomatic 31): OscStreamCollector::observe has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9e7b65180cac45303de56ccdf128afc8c105ca6db955967b5158324e92a660"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::endpoint_sidebar::render_expanded (cyclomatic 31): herdr::client::shell::endpoint_sidebar::render_expanded has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"985e8b43bb4cec4bf293c662e4f2bf33f21ab7ca45c49029057190ab8eaae747"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_pane_report_metadata (cyclomatic 30): App::handle_pane_report_metadata has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db43e4c7f187a2f1cf9490232852a5da4e176728005b7a97e26544c78a745bf"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::tabs::render_tab_bar (cyclomatic 30): herdr::client::shell::tabs::render_tab_bar has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/tabs.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"445c6dba502f30deb4526d3935ec7d5605fd68d98320bd8b465f18e7d07f7ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_layout_apply (cyclomatic 29): App::handle_layout_apply has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/layouts.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2775830170beaa2265d6572c22a27da42b5d527158f51b52c40244e2fa1cb97"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::pane::spawn_basic_detection_task (cyclomatic 29): herdr::pane::spawn_basic_detection_task has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b3f44b556788f81b4bc6ebbccc20713fc42b3e8871896ce8d2ea9989ba4f83"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::ui::sidebar::resolved_token_spans (cyclomatic 29): herdr::ui::sidebar::resolved_token_spans has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4702b97724486e1f370bf1d8c4aefb21935999e55bd8e7d6433440be5e0f1b00"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::route_worktree_overlay_key (cyclomatic 28): ClientShellState::route_worktree_overlay_key has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d776a4d968b4b32a83e8dde515afd15f815a31a2f8e18a14aa54e9321cbb0c"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::platform::macos::input::longest_canonical_line (cyclomatic 28): herdr::platform::macos::input::longest_canonical_line has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos/input.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc9cc72b8362f87fd6623bbf1530237759057c0c2931fde4ddb2e8fc04610d2"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::perform_live_handoff (cyclomatic 27): HeadlessServer::perform_live_handoff has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa60f2b5682aa88e35a0f2a16be5a40888529f267b50333705d2fe36bbf3c646"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr-tui-session.setup::receive (cyclomatic 27): herdr-tui-session.setup::receive has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fe71dba667a5607682fc6486add664511663109b9654977c44ef70146a8c36"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultColorOscTracker::observe (cyclomatic 26): DefaultColorOscTracker::observe has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (DefaultColorEventTracker::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6190fe7773855eb0f71f57e63e82c640f5b06c60cefecf52f95e886a58cc19"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultColorEventTracker::observe (cyclomatic 26): DefaultColorEventTracker::observe has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (DefaultColorOscTracker::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d8d460b0c4692c279b1283331ed7e2456ded33fccea5f256ad8791b48ab182"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::config::theme::parse_color (cyclomatic 26): herdr::config::theme::parse_color has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/theme.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade5f701bdea0b734747837907222869288d447be313ba557dba863c23dc6641"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::kitty_graphics::surface::collect_scene (cyclomatic 26): herdr::kitty_graphics::surface::collect_scene has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"9476f3a54b307fc3ab89c2ab5869856d4359f0ec1af6631d9c3587ccb2309cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::handle_mobile_mouse (cyclomatic 25): ClientShellState::handle_mobile_mouse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6e0750df47260741a0c34e114e1ef34c95c8592f4bddf4f8bf420096b62cb6"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::render::render_mode_bar (cyclomatic 25): herdr::client::shell::render::render_mode_bar has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/render.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f792c247ac8e6925b637520c6d9b724b1bcf1b4a071699d1f9d8152236e0b452"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr-tui-session.tui::apply (cyclomatic 25): herdr-tui-session.tui::apply has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (herdr-tui-session.tui::hydrate) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a1617bc06082919610674606d3c8e109918b1faec4ec406271efb3082963c5"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_plugin_pane_open (cyclomatic 24): App::handle_plugin_pane_open has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5e0716a9992c4a2a3d3b14db8a6a844450024b54562142422c74c2e6bdfdfa"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::route_key_press (cyclomatic 24): ClientShellState::route_key_press has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e416a450da2c31bb6f018c842756932aee6bbc81f4a6b70357cd4dfdba05835"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::api::wait::wait_for_resolved_agent (cyclomatic 24): herdr::api::wait::wait_for_resolved_agent has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"385e25c3850439fbe23ee239402d804c91340a66271f2c833549c962e79516a8"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr-agent-state.HerdrAgentStatePlugin.event (cyclomatic 24): herdr-agent-state.HerdrAgentStatePlugin.event has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-agent-state.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2b56c0366669ff9a63315cf419d205e220173c474ebb517274e3214514d45b"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachEscapeState::filter_input (cyclomatic 23): AttachEscapeState::filter_input has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/attach.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdcf16f5770eee2508bada3181a3fc29b654cf0b827df9c275fb2c160859fef"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::reconcile_managed_agent_at (cyclomatic 23): TerminalState::reconcile_managed_agent_at has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"529e10e2f99a7306936a548a6aeba972016bb57b75d9510ee87bc1b32b494a86"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::integration::actions::install_target_inner (cyclomatic 23): herdr::integration::actions::install_target_inner has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d34c8170b6193c56178375d50b71dfb825d4bdac7990364702644b816c15fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::platform::linux::clipboard::run (cyclomatic 23): herdr::platform::linux::clipboard::run has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux/clipboard.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"31389177713db8c9d72f2ad1df2935c113b97868a86c4d13f431ad5cd5f523e8"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_pane_swap (cyclomatic 22): App::handle_pane_swap has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc94e7494a45aaa42548c1a2c3d35f8394e8db37aaa155f1467787fe0822023"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingEndpointActivation::receive_response_for_boot (cyclomatic 22): PendingEndpointActivation::receive_response_for_boot has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f8fcf40ebf8ee3b2301693a1ee2193e4a87c088274febcd3e7555eb56508a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::handle_worktree_endpoint_result (cyclomatic 22): ClientShellState::handle_worktree_endpoint_result has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a340d9eed4871c1d21e79ee1c8f16d82e1a112097f8a0bcc11094e97d36a8c"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorPositionSettleState::observe (cyclomatic 22): CursorPositionSettleState::observe has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/cursor.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f44a81db0056d22038441d72f5094982ad0b16044cab263a56dd7c5f0419dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell_runtime::begin_endpoint_activation (cyclomatic 22): herdr::client::shell_runtime::begin_endpoint_activation has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b26e76b2b5d63d60394448c2b0640edfdde0c7b3da7790036b00717fae403b"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell_runtime::finish_client_shell_input (cyclomatic 22): herdr::client::shell_runtime::finish_client_shell_input has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c32107220c59300763325abd02f6546125e303e6765885347e10e3ee140e3e4"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::terminal_setup::consume_host_keyboard_probe_responses (cyclomatic 22): herdr::client::terminal_setup::consume_host_keyboard_probe_responses has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_setup.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9fcfa3a0d950da92daa65a1ba4b5ec86503c29572d7274e9f73355e29308c9"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::config::keybinds::format_key_combo (cyclomatic 22): herdr::config::keybinds::format_key_combo has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"93723949b7cb03b01eba46331b98382e47a02b1a5d0ea88c4600ea9ee0be0cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::pane::run_terminal_compression_task (cyclomatic 22): herdr::pane::run_terminal_compression_task has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdf004c85d24fca1bb7e13739eba788e4d96fede92b770225a100c53479f421"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::apply_pane_surface_patch (cyclomatic 21): ClientShellState::apply_pane_surface_patch has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/surface_patch.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46c0e9e80d2397d5ceacae82ece5e83445f8c8ebb9b8147a50f75b1f3e89c63"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::paste_client_clipboard_image_path (cyclomatic 21): HeadlessServer::paste_client_clipboard_image_path has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0515083c70738823fa6d9e514933a53f778527dd15971ea8a062b6a34adb08d"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::set_agent_metadata (cyclomatic 21): TerminalState::set_agent_metadata has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/metadata.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"34945a6c5f25b7b428406b286f46691c32d9bdcffa85b3275f265d7123080bc5"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::settings_overlay::render_settings_overlay (cyclomatic 21): herdr::client::shell::settings_overlay::render_settings_overlay has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/settings_overlay.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a62650444b7d7bd82a1be417605d9981f944557b8774cad51bff94bb52cd1e"}},{"ruleId":"D1","level":"warning","message":{"text":"Palette::with_overrides (cyclomatic 20): Palette::with_overrides has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Palette::with_mode_overrides) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1466a504ac6c82fe313960ca578454f66d05335ce58a50280ae54e71dd795cb"}},{"ruleId":"D1","level":"warning","message":{"text":"Palette::with_mode_overrides (cyclomatic 20): Palette::with_mode_overrides has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Palette::with_overrides) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3e1dd68cb2ed535968c3af48ebaf71afff427a9e4f5758d45fd665fcdbbd07"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::handle_endpoint_navigation (cyclomatic 20): ClientShellState::handle_endpoint_navigation has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_navigation.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b71a7e8c28d9d41d8301f8e21e338c29aaad36a8ee72d6ceec054a0e0f213cb"}},{"ruleId":"D1","level":"warning","message":{"text":"GhosttyPaneTerminal::render (cyclomatic 20): GhosttyPaneTerminal::render has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"24703bc65ecbc8038f80e24363fc572f5777a2597b9a69eba19f86e825bc9711"}},{"ruleId":"D1","level":"warning","message":{"text":"RetainedTextBuffer::search_window (cyclomatic 20): RetainedTextBuffer::search_window has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f812647464547fcc66903163a68c3ad479a5ec6cbd2726096b7c7d7b7f68f2"}},{"ruleId":"D1","level":"warning","message":{"text":"PtyIoActorRunner::run (cyclomatic 20): PtyIoActorRunner::run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4e96988dfa2aabeba53e8725d3f13582de16fd99a9fb3b72f1054a7b0e5a26"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::set_hook_authority_at (cyclomatic 20): TerminalState::set_hook_authority_at 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":"src/terminal/state.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"557280ccf0549fcf6f081e7cf8370a925e56b00fb07fc54b65ca7b47802e77bf"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell_runtime::dispatch_client_shell_actions (cyclomatic 20): herdr::client::shell_runtime::dispatch_client_shell_actions has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efdc1a0edb39359bd768b8b764769751adfc8deb3da8069cb81cb4b9810b7a5"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::server::client_shell::render_pane_surface (cyclomatic 20): herdr::server::client_shell::render_pane_surface has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_shell.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edea4adce2c3ee7a9e9aa4403dae0d63e6a55c375062145f41fbb2f3a682ad3"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::server::client_transport::handle_client_handshake (cyclomatic 20): herdr::server::client_transport::handle_client_handshake 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":"src/server/client_transport.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa4a38380f149ba511e1b3be6232330315d2c2d76fbd91b04280203da292460"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_pane_copy_motion (cyclomatic 19): App::handle_pane_copy_motion has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8907df14589cfb7af8ac64b903adb4a934534d4ca3275dfec379971c70f8e1"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::route_navigate_key (cyclomatic 19): ClientShellState::route_navigate_key has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"3480c6a5e71a8e22515b9c85dc0a288cc03253d35bcc9152e081e5b6f7d9d463"}},{"ruleId":"D1","level":"warning","message":{"text":"PaneTerminal::word_motion_target (cyclomatic 19): PaneTerminal::word_motion_target has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"67878709b3ee5e589fbf1f3938a7cd3772f5eb96e8942403ccb6866bfbe4567b"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteSsh::prepare_shared_transport (cyclomatic 19): RemoteSsh::prepare_shared_transport has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1970828aa0dd5eb3dca7f8f927b4d65ea951a78e627a4ec455469af772de70b9"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::stream_direct_terminal_keyboard_mode (cyclomatic 19): HeadlessServer::stream_direct_terminal_keyboard_mode has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da2e484df29e37e8e6e7d4eaba089e5636dfaee11e3eff49049d01e065d56dc"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalState::route_full_lifecycle_hook_report (cyclomatic 19): TerminalState::route_full_lifecycle_hook_report has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"2895491348686866c26c82cb18d3c3eec9785b685ddea23510de1d5969109fe2"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::cli::plugin::plugin_update (cyclomatic 19): herdr::cli::plugin::plugin_update has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22ad831149803d30fee3fb8a1948489457cb375bfad8e0e2f57faf54321aaa7"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::run_client_with_mode (cyclomatic 19): herdr::client::run_client_with_mode has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1c900292ee999d8c3df797f4d66949470c64a7f05de01c2731f9aeb7e2567f"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::terminal_sessions::terminal_control_command_from_json (cyclomatic 19): herdr::client::terminal_sessions::terminal_control_command_from_json has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_sessions.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d15c917ff0f84726468621a30554b98fe91c81cf851f0381cfcb82879603ca"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::protocol::surface_scroll::pane_scroll (cyclomatic 19): herdr::protocol::surface_scroll::pane_scroll has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_scroll.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1262c8dab98efaad0fe958dc54db5e674022c0e476a9f6c85771ed4d883bc0"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::remote::args::extract_remote_args (cyclomatic 19): herdr::remote::args::extract_remote_args has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/args.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa547dcb24a1aa939602897c162cf7edf1292a057ba0e55afc75cb87c563c8c"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::server::pane_input::apply_client_terminal_input_events (cyclomatic 19): herdr::server::pane_input::apply_client_terminal_input_events has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/pane_input.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf696dc7c6fa97da10af8d6915f715ecb3c44bb3b99de9993a6e5018193ba836"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal::viewport_link_regions (cyclomatic 18): Terminal::viewport_link_regions 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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daa5c88021942e34a1c001d5b675800f61315c24b068dbf22bbed897af6a08c"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingEndpointActivation::endpoint_disconnected (cyclomatic 18): PendingEndpointActivation::endpoint_disconnected has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"083e8b709fcd5e05bd4ac689245084f3b1c64ad39bc8f6c5e8680073b4ca9780"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::tick_notifications (cyclomatic 18): ClientShellState::tick_notifications 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":"src/client/shell/notification_policy.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f9461a8612f85294dd7e51aefba438a8065363a062b5e43193919c92bbf440"}},{"ruleId":"D1","level":"warning","message":{"text":"RetainedTextBuffer::build (cyclomatic 18): RetainedTextBuffer::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":"src/pane/terminal.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dabc2c9ed57038251a168dedde7e23de5e08e3a11c7eedda0e812b1a7c12cd"}},{"ruleId":"D1","level":"warning","message":{"text":"Decoder::decode (cyclomatic 18): Decoder::decode has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_reuse.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2915108c7b34bb653db0c9084a860006f82130335c784b2513f60a98c2cf5e"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::api::server::handle_connection_with_stop (cyclomatic 18): herdr::api::server::handle_connection_with_stop has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d6c1d16418e8de51d6fcf5ded99c3cf9a770393a239ba26d7e530fda4bd5d"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::sidebar::render_sidebar (cyclomatic 18): herdr::client::shell::sidebar::render_sidebar has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae97e6296dc6138fab2d17ef256b743fda0285fa15a0107cc94fe5fe4a1a4b3c"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::sidebar::render_workspace_rows (cyclomatic 18): herdr::client::shell::sidebar::render_workspace_rows has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42610eb593e53dbcbbc9631d94a9ddf1c63270702dcf5e1ca3c3dff189c2def"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::integration::config_edit::update_hermes_enabled_plugin (cyclomatic 18): herdr::integration::config_edit::update_hermes_enabled_plugin has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b5dc1861ba3c4dea19249b7b7733c8403afe3f92a5012ddcc625b1ec9d2fc3"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState::update_terminal_state_with_completion_policy (cyclomatic 17): AppState::update_terminal_state_with_completion_policy has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bb054d627749e2131bf1d4aaa511da8e33ab0200b971826fbf5feaa83c6e71"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::cache_endpoint_snapshot_with_surface (cyclomatic 17): ClientShellState::cache_endpoint_snapshot_with_surface has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoints.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34af34fae15124ee64474dd3cb68ba25a54073dc8e9a9070c0b10c68ceedb2e"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientShellState::move_navigate_workspace (cyclomatic 17): ClientShellState::move_navigate_workspace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/workspace_navigation.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d7b053745bc00cdb234d08c3a8d797bbf72c826dff2e005494f1db9d919fba"}},{"ruleId":"D1","level":"warning","message":{"text":"DecscusrTracker::observe_byte (cyclomatic 17): DecscusrTracker::observe_byte has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/cursor.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5914914f297483b0267309570defb17b908f14368bcc3924a61ea27154bf8adc"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::mobile::render_mobile_switcher (cyclomatic 17): herdr::client::shell::mobile::render_mobile_switcher has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"016e8feb344cfcd85c66e54c347e3e9fbaedf7c907ade863cdaf80f9458e6a6a"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell_runtime::complete_endpoint_activation (cyclomatic 17): herdr::client::shell_runtime::complete_endpoint_activation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c63812d0e9eeb955ff0d3dabd16c782da038e9eab75ba97aba268bed517d2b"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::kitty_graphics::clipped_placement (cyclomatic 17): herdr::kitty_graphics::clipped_placement has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"93275e95303afe0add66b8a9826aba032d1eda642596bd32cc5bc14cc37b0d83"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::protocol::surface_delta::message (cyclomatic 17): herdr::protocol::surface_delta::message has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_delta.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b96a3c1b8475a231ce5a44a39e28770c4611ed0687eb510cacf18f35e22ae08"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr-tui-session.tui::hydrate (cyclomatic 17): herdr-tui-session.tui::hydrate 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. This shape REPEATS in the file: one other method here (herdr-tui-session.tui::apply) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad42b3431612e1c05161da6c820c7471c1b4d6eab9a7b03f25954c20090a7b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Desktop.SetEmptyClipboardImage (cyclomatic 16): Desktop.SetEmptyClipboardImage 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":"scripts/windows_input/Native.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c924d61ddfa55d28cbdfa78e49ae430d83b1bdeccc98f4541e75985003da6daf"}},{"ruleId":"D1","level":"warning","message":{"text":"App::finish_worktree_open (cyclomatic 16): App::finish_worktree_open has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3989a46df9b0a0e7b001ee4a23d487c19ec74c125c7a912c01e2eb9b76f7583d"}},{"ruleId":"D1","level":"warning","message":{"text":"GhosttyPaneTerminal::process_pty_bytes (cyclomatic 16): GhosttyPaneTerminal::process_pty_bytes has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43f9d163818066b161328c0781a8e779a82dbbae86339bbd8e68f1f3520b77f"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::stream_host_mouse_capture_mode (cyclomatic 16): HeadlessServer::stream_host_mouse_capture_mode has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bb1c2766fd51917639a6a66cb09d00a20169a7576e95c10b3e0ada20405412"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadlessServer::set_client_shell_surface_active (cyclomatic 16): HeadlessServer::set_client_shell_surface_active has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/surface_interest.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"446e3c47395ff5fe3e78324b3fe8726d204461be8d9c440eabce09353bc48b39"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::cli::agent::agent_start (cyclomatic 16): herdr::cli::agent::agent_start has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6105eb9469f47053d8551d14282e8c0a4283ffffdfe88631e35fbdd3e7ca643d"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::cli::agent::wait_for_named_agent (cyclomatic 16): herdr::cli::agent::wait_for_named_agent has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18d0cbed099212aa6af9b3ad111607ea52279e62d97e7d79d88763fd28eb80"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::cli::plugin::install_github_plugin (cyclomatic 16): herdr::cli::plugin::install_github_plugin has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"120484e8b9b86bc1d9feda498143590006f56ea2f836f33c7c216732528c2f16"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::client::shell::mobile::render_agent_summary (cyclomatic 16): herdr::client::shell::mobile::render_agent_summary has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bbd5ef62f36aef1983ccfc7fa79b6a672c4527ed7a823a70812a36ad0b88e7"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::pane::input::ghostty_key_event_from_terminal_key (cyclomatic 16): herdr::pane::input::ghostty_key_event_from_terminal_key has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: herdr::pane::input::ghostty_key_from_key_code (cyclomatic 63) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/input.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8f9c6f8561c5d139fb606a0fb89d5d738b12e3dcbc692cd5178cfa0724ac72"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::remote::attach::bridge_child (cyclomatic 16): herdr::remote::attach::bridge_child has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2ef355a0ebdc0077324bac12239e3daaf987d77d618cb9cf16889560be460c"}},{"ruleId":"D1","level":"warning","message":{"text":"herdr::session::configure_from_args (cyclomatic 16): herdr::session::configure_from_args has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/session.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"82041aa5b367f6b6568b00aec1b7e04eabbd3149635288f174668803b0ed9bd5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::run_client_loop (cognitive 724): herdr::client::run_client_loop has cognitive complexity 724 (threshold 15). Drivers by points: if/else 175 (619 pts), match/switch 15 (54 pts), boolean chains 33, loops 6 (18 pts) (nesting depth added 495). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e56cec39c5f9d98662827f25a29e6a80b79cb971a584e30f76e76ea24ed291"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_mouse (cognitive 515): ClientShellState::handle_mouse has cognitive complexity 515 (threshold 15). Drivers by points: if/else 186 (447 pts), match/switch 18 (43 pts), boolean chains 25 (nesting depth added 286). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mouse.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e728ed719b59a5fed4f6fe29f819f870a2ec7b255b5071b8e970998be4eea5b"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::handle_server_event (cognitive 213): HeadlessServer::handle_server_event has cognitive complexity 213 (threshold 15). Drivers by points: if/else 81 (175 pts), boolean chains 26, match/switch 6 (12 pts) (nesting depth added 100). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c46274dd4cf98ecdeeaf705d0160c6aaa613a10c7060ae79c3fb27e761629cc"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::render_and_stream_with_graphics_limit (cognitive 205): HeadlessServer::render_and_stream_with_graphics_limit has cognitive complexity 205 (threshold 15). Drivers by points: if/else 61 (147 pts), match/switch 10 (34 pts), boolean chains 13, loops 5 (11 pts) (nesting depth added 116). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e0e163ae864d435ec72d6d62547e8cdc6d898bee32dfe1fba58ad094b3b9f"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::route_overlay_key (cognitive 193): ClientShellState::route_overlay_key has cognitive complexity 193 (threshold 15). Drivers by points: if/else 63 (144 pts), match/switch 12 (31 pts), boolean chains 18 (nesting depth added 100). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlay_input.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"2423cb69ce28748fb2fc69dcdcbc2971ee70220fd4e91737210f219a96009635"}},{"ruleId":"D2","level":"warning","message":{"text":"KeysConfig::local_profile (cognitive 176): KeysConfig::local_profile has cognitive complexity 176 (threshold 15). Drivers by points: if/else 176. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfbcf8038d64078a9e838a8487aac58086d4b942fdb7ae41ba99dbb2fa51a18"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneRuntime::spawn_command_builder (cognitive 140): PaneRuntime::spawn_command_builder has cognitive complexity 140 (threshold 15). Drivers by points: if/else 41 (107 pts), boolean chains 16, match/switch 6 (14 pts), loops 2 (3 pts) (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2687}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2edae3a26f13d03f6e3ef97f5c4296f33ec33bfd8dd3e8c123c8dca429413d"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::render_retained_pane_surface_and_stream (cognitive 112): HeadlessServer::render_retained_pane_surface_and_stream has cognitive complexity 112 (threshold 15). Drivers by points: if/else 45 (91 pts), loops 7 (9 pts), boolean chains 6, match/switch 3 (6 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/retained_surface.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cad9159085ec497025d37f56d94fa22d507423375eb993e7817362f862c7d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::compose (cognitive 108): ClientShellState::compose has cognitive complexity 108 (threshold 15). Drivers by points: if/else 48 (76 pts), boolean chains 17, match/switch 4 (8 pts), loops 2 (7 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b8e52a3d67959b42b1798bc62e669142e55583bc41045c8ad2a14db48be0c5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::mobile::mobile_items (cognitive 107): herdr::client::shell::mobile::mobile_items has cognitive complexity 107 (threshold 15). Drivers by points: if/else 44 (91 pts), loops 6 (10 pts), boolean chains 6 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"62312473434c832a9e2b9c82b3f1573adbb34f02d30d1d676fc3c0899dff922c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::run (cognitive 102): HeadlessServer::run has cognitive complexity 102 (threshold 15). Drivers by points: if/else 32 (74 pts), match/switch 6 (16 pts), boolean chains 11, loops 1 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccd4c3bb1e06ca24630a2ff51606f813f9032625d1f9aefa4833b68b9a89b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::overlays::render_navigator_overlay (cognitive 99): herdr::client::shell::overlays::render_navigator_overlay has cognitive complexity 99 (threshold 15). Drivers by points: if/else 55 (90 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdfa0b80142472f62d66a4a57fda878699ad2445f889f0dd45ca7be9dca18cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::validated_keybinds (cognitive 97): Config::validated_keybinds has cognitive complexity 97 (threshold 15). Drivers by points: if/else 76 (91 pts), boolean chains 4, loops 2 (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b839b0be74871469809794fa3dd7e0fb11639c6c04f22b58a77c9fa530c60d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::actions::uninstall_target (cognitive 96): herdr::integration::actions::uninstall_target has cognitive complexity 96 (threshold 15). Drivers by points: if/else 62 (93 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 32). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ee4d392d69a99ec1e7f2fb7398e436e14313a7e50cb521df0ee34dc08f3511"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_pane_move (cognitive 91): App::handle_pane_move has cognitive complexity 91 (threshold 15). Drivers by points: if/else 45 (79 pts), match/switch 6 (8 pts), boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1c110dd46be9c9df8e06f0ec4069701e639d9c3157b799238c07a4f1bb1ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::input::unix_stdin_reader_loop (cognitive 89): herdr::client::input::unix_stdin_reader_loop has cognitive complexity 89 (threshold 15). Drivers by points: if/else 24 (70 pts), boolean chains 9, loops 3 (8 pts), match/switch 1 (2 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/input.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a566f6b7c5a9dd6e2c5a4ffee0759386224a285ce8b455379fb9ebcdf074dd"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pane::terminal::ghostty_collect_dirty_patch (cognitive 88): herdr::pane::terminal::ghostty_collect_dirty_patch has cognitive complexity 88 (threshold 15). Drivers by points: if/else 27 (59 pts), match/switch 17 (23 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff16a43a33a9a8a8826a0099539d3950d0cfc44b4ec8cbc1035199d4d55938c"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_internal_event_with_pane_updates (cognitive 87): App::handle_internal_event_with_pane_updates has cognitive complexity 87 (threshold 15). Drivers by points: if/else 48 (80 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62b0aee6a795f29983fab3089e7a3e4610d61ff9fb56328dd443c1bd08f215c"}},{"ruleId":"D2","level":"warning","message":{"text":"RawInputByteFramer::drain_available_chunks (cognitive 85): RawInputByteFramer::drain_available_chunks has cognitive complexity 85 (threshold 15). Drivers by points: if/else 26 (74 pts), boolean chains 7, match/switch 1 (3 pts), loops 1 (nesting depth added 50). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d60be00724128bc976bf5940f3123f9260ec1252b0ea1f0c3bc3626fe26f20c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::handle_internal_event_with_forwarding (cognitive 81): HeadlessServer::handle_internal_event_with_forwarding has cognitive complexity 81 (threshold 15). Drivers by points: if/else 28 (56 pts), boolean chains 11, loops 5 (10 pts), match/switch 3 (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":"src/server/headless/notifications.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f263a30867995dc6da65e585516d3992a3995eac170f3e8de233aa77a15ad5d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::set_detected_state_with_screen_signals_at (cognitive 81): TerminalState::set_detected_state_with_screen_signals_at has cognitive complexity 81 (threshold 15). Drivers by points: if/else 26 (45 pts), boolean chains 24, loops 5 (12 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaee98260c86d5e6e85fab03cf791dff1c6852649032435839fdd0566d50c6b"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::endpoint_sidebar::render_collapsed (cognitive 79): herdr::client::shell::endpoint_sidebar::render_collapsed has cognitive complexity 79 (threshold 15). Drivers by points: if/else 35 (71 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"963686d8fa1507abb0aa643032055875bd63ab85fd59b601b2d6c4e93f8c0ce7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::record_binding (cognitive 77): ClientShellState::record_binding has cognitive complexity 77 (threshold 15). Drivers by points: if/else 34 (72 pts), boolean chains 4, match/switch 1 (nesting depth added 38). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbce9e1cb6af41ffee2a98c7a59808e7350788f98c712646f72702f0264d93d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::apply_active_snapshot (cognitive 76): ClientShellState::apply_active_snapshot has cognitive complexity 76 (threshold 15). Drivers by points: if/else 30 (47 pts), boolean chains 22, match/switch 5 (7 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7642750bc552894b638891e7ec42e5cf07fc98e986fa3005b1a80a3d9426b79"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::handle_api_request_with_shutdown_check_inner (cognitive 73): HeadlessServer::handle_api_request_with_shutdown_check_inner has cognitive complexity 73 (threshold 15). Drivers by points: if/else 31 (54 pts), boolean chains 9, match/switch 4 (9 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f8a4d1deaa48f4a5ddd371722272a974ccb7bc75ce2679d4e948a3798869cc"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::aggregate_navigation::navigator_rows (cognitive 70): herdr::client::shell::aggregate_navigation::navigator_rows has cognitive complexity 70 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 6 (19 pts), match/switch 3 (15 pts), boolean chains 11 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/aggregate_navigation.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d083cb68e6cc3ec3309fd3b9dc39dc9224f196721823b6d67ae8f746ba754efd"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingAltScreenRead::poll (cognitive 69): PendingAltScreenRead::poll has cognitive complexity 69 (threshold 15). Drivers by points: if/else 33 (55 pts), boolean chains 9, match/switch 3 (5 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/alt_screen_read.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c373f37eecd2f28b8531de11b40401639f212008b14ee7d9408f4be4dd31e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"KeysConfig::deserialize (cognitive 67): KeysConfig::deserialize has cognitive complexity 67 (threshold 15). Drivers by points: if/else 64, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"391cc8219cc61333d9baf0db4476350082d85ae54c2ffc1eca8a5f106ea1738e"}},{"ruleId":"D2","level":"warning","message":{"text":"C1XtgettcapQueryTracker::observe (cognitive 66): C1XtgettcapQueryTracker::observe has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (45 pts), match/switch 6 (17 pts), boolean chains 3, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/xtgettcap.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a200dbeaede9bbe8350e5fa170617f5fc015ca3e3f4fa9e9d01e282a0df95ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"RawInputByteFramer::flush_timeout (cognitive 64): RawInputByteFramer::flush_timeout has cognitive complexity 64 (threshold 15). Drivers by points: if/else 33 (48 pts), boolean chains 16 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d759cb8439778af700a10d7295bb2f1fe756372cc6d2bc8ac52bf634fc2c7617"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_endpoint_result (cognitive 63): ClientShellState::handle_endpoint_result has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (33 pts), match/switch 11 (21 pts), boolean chains 9 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecefcd8d96f700fb644bf83c9c93d3a0f5c3ed235d4bfc035864a421808b90fc"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pane::spawn_basic_detection_task (cognitive 63): herdr::pane::spawn_basic_detection_task has cognitive complexity 63 (threshold 15). Drivers by points: if/else 21 (49 pts), boolean chains 7, match/switch 3 (6 pts), loops 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e40b2d5515095a93ddd20a2ace7b5fb0aed4ecf0061541a60223acccca176c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_raw_events (cognitive 62): ClientShellState::handle_raw_events has cognitive complexity 62 (threshold 15). Drivers by points: if/else 20 (51 pts), match/switch 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"647a01d25b15e2069ff9b61d754164839d5133c2c1c216e7b49c1580beceb725"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::persist::restore::restore_tab (cognitive 61): herdr::persist::restore::restore_tab has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (51 pts), match/switch 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddadcd2caadc0f260975a32cac42f0089d827d9ef4fe3d3c639ff9fd6b3b857b"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::server::client_transport::client_read_loop_with_endpoint_controls (cognitive 59): herdr::server::client_transport::client_read_loop_with_endpoint_controls has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (39 pts), match/switch 7 (17 pts), boolean chains 2, loops 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":"src/server/client_transport.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97c4a8c4bed9cad85da0c8b6555b16bcd9272424cc6f7abc9e7013cf3eaa9c2"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::endpoint_sidebar::render_expanded (cognitive 58): herdr::client::shell::endpoint_sidebar::render_expanded has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (43 pts), boolean chains 7, match/switch 4 (6 pts), loops 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02d912825d4103187c34f9f8f0a24bc4f7eb490bddc144b87fd7ea2d7196c84"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::install_pane_surface (cognitive 53): ClientShellState::install_pane_surface has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (40 pts), boolean chains 11, loops 1, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1e382a6094744dcbc73326cf47bd2b61fd04b7377597e323033e536498b859"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::render::render_mode_bar (cognitive 52): herdr::client::shell::render::render_mode_bar has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (39 pts), match/switch 3 (7 pts), boolean chains 4, loops 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/render.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"754d2bb7e789393e6a307f104b94a6b00a88cd182146cb67c904f26741232732"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::route_worktree_overlay_key (cognitive 51): ClientShellState::route_worktree_overlay_key has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (41 pts), match/switch 4 (7 pts), boolean chains 3 (nesting depth added 32). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e7221d5297d84e2b6ec2936aaf34b87063725a78977e9bb799f27274a66935"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::api::wait::wait_for_resolved_agent (cognitive 50): herdr::api::wait::wait_for_resolved_agent has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (38 pts), match/switch 3 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61df0e122df2a8f62bb4973f4be3a0e1d7f5db3624e9afce8a5742e36fcc65a"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::tabs::render_tab_bar (cognitive 50): herdr::client::shell::tabs::render_tab_bar has cognitive complexity 50 (threshold 15). Drivers by points: if/else 32 (43 pts), boolean chains 6, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/tabs.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f589244e4d21c6726b1c84fcd29285e20ea117df64a057dc8833069f987bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"OscStreamCollector::observe (cognitive 48): OscStreamCollector::observe has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (32 pts), match/switch 5 (15 pts), loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e25571720675740533f55c87707948efe62df74cd81ad4c1607d291186a9ae"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::macos::input::longest_canonical_line (cognitive 47): herdr::platform::macos::input::longest_canonical_line has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 14, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos/input.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9044cacffbf4d0f406177b2c76d737403b1ae6123f754363aab8d77a0db8bf12"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell_runtime::finish_client_shell_input (cognitive 46): herdr::client::shell_runtime::finish_client_shell_input has cognitive complexity 46 (threshold 15). Drivers by points: if/else 22 (44 pts), boolean chains 1, 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":"src/client/shell_runtime.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"478080b4d5d53ca9ce1664d822dd0d65f9f10ce4fb1fd2d51315f1942f1d22ce"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::server::pane_input::apply_client_terminal_input_events (cognitive 45): herdr::server::pane_input::apply_client_terminal_input_events has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 4 (12 pts), boolean chains 1, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/pane_input.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee19a31812d6091f5fb1f2d03045cad7600cdc70f27bfe396f37f2973ed05839"}},{"ruleId":"D2","level":"warning","message":{"text":"App::apply_live_config (cognitive 44): App::apply_live_config has cognitive complexity 44 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 6, match/switch 2 (5 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":"src/app/mod.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c77fe5f28f2b136544d510d7e57e7cc72727236d37fe664e034e7ecab1ec1db"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::set_agent_session_ref_for_session_start (cognitive 44): TerminalState::set_agent_session_ref_for_session_start has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 19 (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":"src/terminal/state.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf6d40c75c21e5dd6bbfb544672180c8df536842355426c8368e1b931240a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::kitty_graphics::surface::collect_scene (cognitive 44): herdr::kitty_graphics::surface::collect_scene has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 5 (8 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d8415ce2fba51b525e8d179f5807ddd381efd77f0145f03930d867b8dc6e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::server::client_shell::render_pane_surface (cognitive 43): herdr::server::client_shell::render_pane_surface has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 2 (4 pts), boolean chains 1, match/switch 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":"src/server/client_shell.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34b3d6fe88fd3d2d9d240384a7c5fc9704fc202fef20c14084b471c71a7a7b8"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::terminal_setup::consume_host_keyboard_probe_responses (cognitive 42): herdr::client::terminal_setup::consume_host_keyboard_probe_responses has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_setup.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cac2b11506b77f8f6e4e965c8922f5370d68c9c9b9ab50c574c838bf24a170"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::sidebar::resolved_token_spans (cognitive 42): herdr::ui::sidebar::resolved_token_spans has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 5 (8 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"178cf98bf7df4a71eb0c5b8135921127379e9b7c1df28ade7f0b84aabb8a8733"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultColorOscTracker::observe (cognitive 41): DefaultColorOscTracker::observe has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (35 pts), match/switch 2 (5 pts), loops 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. This shape REPEATS in the file: one other method here (DefaultColorEventTracker::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d7a88d48e5801448c62c3d2e2544550b6076ab72e24b81456d10b5db22c2a5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultColorEventTracker::observe (cognitive 41): DefaultColorEventTracker::observe has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (35 pts), match/switch 2 (5 pts), loops 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. This shape REPEATS in the file: one other method here (DefaultColorOscTracker::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58d781cef32106872180dd64c542b0c2c39c58adffdaec7162ada69aead3990"}},{"ruleId":"D2","level":"warning","message":{"text":"RetainedTextBuffer::build (cognitive 40): RetainedTextBuffer::build has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e64f48542899fde6b398a34a8513ec59b0599da8b17fc478dbc2619cfa65c3"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::perform_live_handoff (cognitive 40): HeadlessServer::perform_live_handoff has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 10 (15 pts), match/switch 5 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48c2e69e1605e1b88056c0bc5081d698073aeed18beb0cb35df1153f5a3ea44"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::main (cognitive 39): herdr::main has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (24 pts), match/switch 5 (7 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"098054672087b339e1409faa6d2c96ddeb032dd2380bb8d2cd5009e4adac25ba"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell_runtime::begin_endpoint_activation (cognitive 39): herdr::client::shell_runtime::begin_endpoint_activation has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 3, match/switch 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f03bb3a8df85430c2e9a94ae886b91dc13363f0382e9eb83dca3167d0cb778"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pane::run_terminal_compression_task (cognitive 39): herdr::pane::run_terminal_compression_task has cognitive complexity 39 (threshold 15). Drivers by points: if/else 4 (14 pts), match/switch 5 (14 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c8585b8dad76690e4d1575746c654155bd1719a3e2829d91c4c60aa2469bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachEscapeState::filter_input (cognitive 37): AttachEscapeState::filter_input has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/attach.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3ec2f9ce6bdab8ed646982f4cbe49a28a2b048feea78f8a7adf0c86a756e0b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::endpoint_method_for_action (cognitive 37): ClientShellState::endpoint_method_for_action has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (32 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f056c2a79c93d1cbf707914f121ce0ca295b67e7aac928af65d37b9838af68"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::api::server::stream_subscriptions (cognitive 37): herdr::api::server::stream_subscriptions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (7 pts), match/switch 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bfa8f18510150bea3db29fea9f08bb2614a1a1c64039a91c30a6d50dbd0b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::sidebar::render_workspace_rows (cognitive 37): herdr::client::shell::sidebar::render_workspace_rows has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (30 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c3e205f84b5c4e93f81b1ccbe02bc7ac82a67cb30cc40b0a0d92b5fdce2426"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::linux::clipboard::run (cognitive 37): herdr::platform::linux::clipboard::run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (29 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux/clipboard.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"920f2bc4fc9fd558223b8d2cb5056a3e61e806bddb86b96b378ee5299edbb7c5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::args::extract_remote_args (cognitive 36): herdr::remote::args::extract_remote_args has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (33 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/args.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c53ef38062a6d34be03e451bdf655d6e2369cdeaa9a933ac83811e6f8b87d6"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_layout_apply (cognitive 35): App::handle_layout_apply has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (25 pts), match/switch 5 (6 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/layouts.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"300b57afe30b22ef12b2612d78a03b22742418a6736d6b443db5227666e53d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::sync_immediate_pty_sources (cognitive 35): HeadlessServer::sync_immediate_pty_sources has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdfc9167d95139d282613a704f869f3ce3fec7490e43fb2e09161f718e63504"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal::viewport_link_regions (cognitive 34): Terminal::viewport_link_regions has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"8892e9d9252e561f04f953f9a0b51043c4f616ef5391d5c1eeeadeaa6ede8fee"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::apply_pane_surface_patch (cognitive 34): ClientShellState::apply_pane_surface_patch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/surface_patch.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1ccf6cfb797aabcf614777c5f504c4b0515325b8bcd94e21c994d97a39115"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-agent-state.default (cognitive 34): herdr-agent-state.default has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, boolean chains 10. Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 15 function items inside it that branch (desiredState, a function literal at line 404, a function literal at line 439, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/omp/herdr-agent-state.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9198a20a5b51ebfeb2dcb63a6fd3264ccca7cf940e0db4a8eff91ae786d5dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_pane_swap (cognitive 33): App::handle_pane_swap has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (25 pts), match/switch 4 (6 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f053a124692949faf4c687c6a9bb5cf32f57190b38d92f9ae920895b43dae0"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_pane_report_metadata (cognitive 33): App::handle_pane_report_metadata has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 9 (12 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9718af1b902a712da85f6d3535657ac16bc390f80fcb032c03ac0fa2695faa"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState::handle_pane_died (cognitive 33): AppState::handle_pane_died has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (33 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df5440a581bcd97b197165f57fb316d7ea903656f67d2adcb1ad98816cfd962"}},{"ruleId":"D2","level":"warning","message":{"text":"PtyIoActorRunner::run (cognitive 33): PtyIoActorRunner::run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abb3917406feb55a08c9b94b31c93fb213ba5e012aa90fd1b5c7dab430f9e86"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::paste_client_clipboard_image_path (cognitive 33): HeadlessServer::paste_client_clipboard_image_path has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 5, match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b031efa04db04abf4a9eb80268957f976cf4c974229c0672c29421b888e1547"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::plugin::plugin_update (cognitive 33): herdr::cli::plugin::plugin_update has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 5 (11 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8bb79bcc3fae438261f0d7fa14c5d252220a84984bb038e984faef192b448f"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::config_edit::update_hermes_enabled_plugin (cognitive 33): herdr::integration::config_edit::update_hermes_enabled_plugin has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (7 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1cb77971b3367d27ce9fbd253853e43ebe43f24909c108a4689cd5da97bf34"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::protocol::surface_scroll::pane_scroll (cognitive 33): herdr::protocol::surface_scroll::pane_scroll has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 6 (10 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_scroll.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e61f1fb809096590c8d1035e346ea2c83e567fbdc200349e2aa7bd4456e4d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::mobile::render_mobile_switcher (cognitive 32): herdr::client::shell::mobile::render_mobile_switcher has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 3 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f7ecc6864940898b0c5b858495709902eda97dbcbd6f387518a0a1eecd41a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal::kitty_virtual_image_placements (cognitive 31): Terminal::kitty_virtual_image_placements has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (4 pts), match/switch 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":2172}}}],"partialFingerprints":{"codehealthFindingId/v1":"43334211cb4010ec5d00a9f8d4153ecf0d9418c8ff510cebbeb220cc1f977190"}},{"ruleId":"D2","level":"warning","message":{"text":"RetainedTextBuffer::search_window (cognitive 31): RetainedTextBuffer::search_window has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (6 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"6feefbd8c02459cbcd70e711ee5fbfafb714300913831c276ff1412700b1f35f"}},{"ruleId":"D2","level":"warning","message":{"text":"Decoder::decode (cognitive 31): Decoder::decode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 1 (4 pts), boolean chains 2, match/switch 2 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_reuse.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3cdd209469e9f1be8e28781691d95239d7b8a7c73512a48a311cdefb2f2c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::set_agent_metadata (cognitive 31): TerminalState::set_agent_metadata has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/metadata.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"309b05af55431b692619ca3a0701a179e2ce843f3cb40a7426789e5056f68779"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::reconcile_managed_agent_at (cognitive 31): TerminalState::reconcile_managed_agent_at has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 10, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f05c8acebfebfcf06afea1af6afa63d3302573084f09478ec7e42d4e889102"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::input::keybindings::resolve_indexed_action (cognitive 31): herdr::input::keybindings::resolve_indexed_action has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 4 (7 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/keybindings.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5266d98cf64635487a3b9050c47a7442e4ba74fba462c0a242102bd2186a9bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::route_key_press (cognitive 30): ClientShellState::route_key_press has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"043b15a1154de7e97ab188ce0cd9df5b3c02f65409bffd81465a32eb808383e7"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell_runtime::dispatch_client_shell_actions (cognitive 30): herdr::client::shell_runtime::dispatch_client_shell_actions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d6840f1d8429b765b23f07bc0cb70d02d699cdce4e8b376920d7b0d425a924"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::settings_overlay::render_settings_overlay (cognitive 29): herdr::client::shell::settings_overlay::render_settings_overlay has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/settings_overlay.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac9abfdc95c50fbdaf3172b0be360c6262113ae69cd7eb9a55d5d17de77a46a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsoleProbe.Read (cognitive 28): ConsoleProbe.Read has cognitive complexity 28 (threshold 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":"scripts/windows_input/Native.cs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"41512124119a3059d0003980f37401c8351d7e75e42b95273b958a4e8657157b"}},{"ruleId":"D2","level":"warning","message":{"text":"GhosttyPaneTerminal::write_pty_bytes_with_ordered_responses (cognitive 28): GhosttyPaneTerminal::write_pty_bytes_with_ordered_responses has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"234793ec1f8e08f2e0e46e136c9e75dd8c05eba84827eab550508b47255e19e9"}},{"ruleId":"D2","level":"warning","message":{"text":"GhosttyPaneTerminal::render (cognitive 28): GhosttyPaneTerminal::render has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5 (8 pts), match/switch 5 (8 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a1db65024ebd3f994efaffcfab5dfdb67d3a593025207058c83c07d9c42906"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::stream_direct_terminal_keyboard_mode (cognitive 28): HeadlessServer::stream_direct_terminal_keyboard_mode has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 3 (5 pts), boolean chains 3, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ac18e54f1ce9091ef9824cad0f8312ad21fd0bac235f8a280bc7149c657134"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::linux::process_tree_pids (cognitive 28): herdr::platform::linux::process_tree_pids has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1623a10aa6342d1f17b872d5d4168feaa64475d7b0d0ff6f867133b9a0caf356"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pty::fd::poll_pty_and_wake (cognitive 28): herdr::pty::fd::poll_pty_and_wake has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/fd.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"636267bbcf14c5549027a2f3acd71576b5dac85debc25e6ec99f204780a6c0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-tui-session.setup::receive (cognitive 28): herdr-tui-session.setup::receive has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (4 pts), boolean chains 3, match/switch 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (herdr-tui-session.setup::reconcileBlockers) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e07d0ca1179fd36bf71b556397e7fe6408ade350917c7ad745f53fb26aa3d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState::handle_app_event (cognitive 27): AppState::handle_app_event has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e65775744a101c666a1fa1f1d39dcd4a0f30d2c2676cf9576add7f21c4c7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingEndpointActivation::receive_response_for_boot (cognitive 27): PendingEndpointActivation::receive_response_for_boot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 5 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"70debfcaa8baac0fabff676bf73e8df166d0c295349404d1d367956d462cef28"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorPositionSettleState::observe (cognitive 27): CursorPositionSettleState::observe has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 8 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/cursor.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"376040f3f38788e534d137e350b2a5f485bc0c43ed581d4d441b64bd4021a6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::machine::status (cognitive 27): herdr::cli::machine::status has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/machine.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb37ff6f9a783e61507ceb89b37051c4f3416f32f2a3db1329f40c3ec8419ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::config::io::upsert_section_raw (cognitive 27): herdr::config::io::upsert_section_raw has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a7021273ce0d11082b1bb9043e9f9fd7ede546eae3fc38fecba9fefeac18a7"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-tui-session.setup::reconcileBlockers (cognitive 27): herdr-tui-session.setup::reconcileBlockers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (11 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. This shape REPEATS in the file: one other method here (herdr-tui-session.setup::receive) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1d5c1ff0b41eecc020957419cc1dc31a8bd4df0273112857808cc9c3634471"}},{"ruleId":"D2","level":"warning","message":{"text":"TextEditor::handle_key (cognitive 26): TextEditor::handle_key has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/text_editor.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdada3a37d5eb38bfe4f22e3c8f31fcaa7c5d72c95fbffeb9d3b378c2ad7d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::sidebar::render_sidebar (cognitive 26): herdr::client::shell::sidebar::render_sidebar has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aa6fbce4d644b2c08106ced568fec714623094e16425f6d36983a6f6c6fd03"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_endpoint_navigation (cognitive 25): ClientShellState::handle_endpoint_navigation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_navigation.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba74ac98cf66606648f2735c212ef4b65c71697de4870787a05bb01b19915e"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::target::parse_machine_prefix (cognitive 25): herdr::cli::target::parse_machine_prefix has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/target.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"986d36674f657f2c9306a548df8ff40b46faa228be119d0240be277ebbf58753"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::mobile::render_agent_summary (cognitive 25): herdr::client::shell::mobile::render_agent_summary has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb9b425c47a9d2b528f2cef56cdd9f7c506c38b089fa6e614c2ec31be3be8d8"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::session::configure_from_args (cognitive 25): herdr::session::configure_from_args has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/session.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1dbef9ca0517e1fd62aca19b6c9e272c7fe74051a6f9cf2f6d8ee188a0d3d6"}},{"ruleId":"D2","level":"warning","message":{"text":"App::pending_agent_resume_candidates (cognitive 24): App::pending_agent_resume_candidates has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_resume.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d894ea3272835beec0492a46ca6294025593cc472a213b2e81fa118986bf6f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"App::restore_shutdown_worktree_panes (cognitive 24): App::restore_shutdown_worktree_panes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13d02229358f040b23f7257396625f9387486e592a01ba160f54bf2641414fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_mobile_mouse (cognitive 24): ClientShellState::handle_mobile_mouse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"97782db84293eb53f2dc8c087dad4c0069a3215a927c4502a7dbe88797ac0285"}},{"ruleId":"D2","level":"warning","message":{"text":"DecscusrTracker::observe_byte (cognitive 24): DecscusrTracker::observe_byte has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/cursor.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e4d4d91b3ac67c6ef55eddc1fa7f8c2f19faee7f9980b8bb6426e1b77156ab"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::attach::discard_remote_output_preamble (cognitive 24): herdr::remote::attach::discard_remote_output_preamble has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3459}}}],"partialFingerprints":{"codehealthFindingId/v1":"083c1a5fb59d0ae17a6c7274447077d80975394b7f6907002de84e8f484caac4"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::server::client_transport::handle_client_handshake (cognitive 24): herdr::server::client_transport::handle_client_handshake has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 4 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_transport.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaf14160dd7ed88b79292e8212d134e72eacbae9e55fb2122f5cdf6123585bd"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::panes::apply_pane_chrome (cognitive 24): herdr::ui::panes::apply_pane_chrome has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/panes.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a260f6ddaaa221bf302c7c57c4e7dd3ae36dbd2769bf9911a080695dd79a75ab"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_plugin_pane_open (cognitive 23): App::handle_plugin_pane_open has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, match/switch 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":"src/app/api/plugins/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"735b68dbbc05e2e790c5dd193eeb840280018daf30955bf3aee7757a5987fc63"}},{"ruleId":"D2","level":"warning","message":{"text":"App::custom_command_env (cognitive 23): App::custom_command_env has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (23 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/custom_commands.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3039a2f21d6f849662655be84b6a31f7af2aa7d54a75d8c90431d3e5d0a2f840"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::tick_notifications (cognitive 23): ClientShellState::tick_notifications has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (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":"src/client/shell/notification_policy.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f426a34bba7cbde64fe758e99c49b97e8035f63088ccdf90cb30a6c23c649ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GhosttyPaneTerminal::resize (cognitive 23): GhosttyPaneTerminal::resize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"529c96eb6a820ebe3b92e69b5a0ebe3599635c7f4ac7bdae20bf3c7ceec54a03"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::set_hook_authority_at (cognitive 23): TerminalState::set_hook_authority_at has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5, 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":"src/terminal/state.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"be802b4e255667b001457c22293f9448ab41188d91b65d84cce0c8fa700cb0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::route_full_lifecycle_hook_report (cognitive 23): TerminalState::route_full_lifecycle_hook_report has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"d589100f91b0a3a103a6784abd402a3583781668982de605f79faef77c171fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::overlays::render_help_overlay (cognitive 23): herdr::client::shell::overlays::render_help_overlay has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfac2471925aee376a582aa18e89c1261a3f4c69d7b5cafddb7ea0705b86937d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::terminal::history_read::upward_alignment (cognitive 23): herdr::terminal::history_read::upward_alignment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/history_read.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1c029623d52a10f7b7bd20d0b3c7b926104a59fb83f49cf9fb0552f7e9a9c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::move_navigate_workspace (cognitive 22): ClientShellState::move_navigate_workspace has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/workspace_navigation.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c49b784feef65e8007bbb5b533a0f8bc7ab733e20fd3270515b08f457e6b6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::api::server::handle_connection_with_stop (cognitive 22): herdr::api::server::handle_connection_with_stop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 6 (10 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e6cfccba21814fc417a8d1c70450fdcf088d73345b8351f02ac0e15e403c91"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::agent::agent_start (cognitive 22): herdr::cli::agent::agent_start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1e32d73a3854fd63fd90d94a3039df18de8635a8d476b92725edb36e90b6b1"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::agent::wait_for_named_agent (cognitive 22): herdr::cli::agent::wait_for_named_agent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5a44b1721e885fe394bb3e384fdccb62f22f3bb1b31117f757f94a560fe79d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::plugin::install_github_plugin (cognitive 22): herdr::cli::plugin::install_github_plugin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (19 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":"src/cli/plugin.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5d63d2d74d9ab38b023351610bf228cc93efff77ca788c55ec79c1aec227c7"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::sidebar::render_collapsed_sidebar (cognitive 22): herdr::client::shell::sidebar::render_collapsed_sidebar has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"158cd5f465689bef04addbe6b657f1b441f6fd1613adb769589acfbc5510a695"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::worktree_overlays::render_worktree_open_overlay (cognitive 22): herdr::client::shell::worktree_overlays::render_worktree_open_overlay has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (21 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktree_overlays.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c97c118e92893e43da887f40c6d396356b5b17b200e7122b3ed17af9d0750b3"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell_runtime::complete_endpoint_activation (cognitive 22): herdr::client::shell_runtime::complete_endpoint_activation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 1 (3 pts), match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"459d5367db7b35bcd65b0cd2563375a8160a68279ef57c85f89a643ca50f9cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::targets::uninstall_droid (cognitive 22): herdr::integration::targets::uninstall_droid has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 6 (10 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae526f3749cafd472640e56cc356f14be3d009391f852661b9cbf7ca6e4a7fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::kitty_graphics::clipped_placement (cognitive 22): herdr::kitty_graphics::clipped_placement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c8949b689f27b8f691a70b0275b3fc1ab7f77ad6a522647c22db94ca9c096"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pane::input::ghostty_key_event_from_terminal_key (cognitive 22): herdr::pane::input::ghostty_key_event_from_terminal_key has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 5, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/input.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7c123e8e61971795b27153a4cdeaa6d98e1c8518209c3bf8684192b02534b6"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::protocol::surface_delta::message (cognitive 22): herdr::protocol::surface_delta::message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_delta.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e506d7eae0bc85464a760d8ad052bf1f93f132d30e156ba223841eb32bbf54a"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::panes::add_split_border_cells (cognitive 22): herdr::ui::panes::add_split_border_cells has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (7 pts), boolean chains 4, match/switch 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":"src/ui/panes.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"852bc9dc0814996e182412db17e0055bf098a91c878f43b18c0b27f83745e4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"App::finish_worktree_open (cognitive 21): App::finish_worktree_open has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e39556f96f81f559dd3448b36fe13ce94070bddd2dd6269324e8b40eb46951e"}},{"ruleId":"D2","level":"warning","message":{"text":"Field::read_matches (cognitive 21): Field::read_matches has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/projection.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d029926fddfd450f5a5a945edaf89b0adb31c9c52caded712ed017e1701a82"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingEndpointActivation::endpoint_disconnected (cognitive 21): PendingEndpointActivation::endpoint_disconnected has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 7 (14 pts), if/else 5 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a24f64e24cb8969f6df46db88878363f77ef21c7525be6e017b6fff0a3e608"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowTitleTemplate::parse (cognitive 21): WindowTitleTemplate::parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), match/switch 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":"src/config/window_title.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7aa0f6e23d7e997998a50ca55f6787e9db72cc3c8d050aa8b6c8169efc9cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::projection::protect_verbatim_slots (cognitive 21): herdr::cli::projection::protect_verbatim_slots has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/projection.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"144c77b507a9d9e5adc159b5d126a25d4c7402013cec9033a339efe21acb5246"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::composition::render_client_copy_search_highlights (cognitive 21): herdr::client::shell::composition::render_client_copy_search_highlights has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5331a2a7fbba5073ba8ef6dfd4c0c8f43147c5f554c317e4aefe366906de31"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell::sidebar::workspace_entries (cognitive 21): herdr::client::shell::sidebar::workspace_entries has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4c6fd2ffa3113cac13d9fd2bfbaf227e31d70671a24307eba7ae2a2add2906"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-tui-session.tui::apply (cognitive 21): herdr-tui-session.tui::apply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (herdr-tui-session.tui::resolveRoot, herdr-tui-session.tui::syncSelection) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ff708220962c5c2de84b9c351b3fdf72181aebcd45817103c82eb4c1b8717d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::cache_endpoint_snapshot_with_surface (cognitive 20): ClientShellState::cache_endpoint_snapshot_with_surface has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoints.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87fbcea5c109ee8f61edd30fcafd2aa116df7a223bb2454a5ed66095765a8d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_worktree_endpoint_result (cognitive 20): ClientShellState::handle_worktree_endpoint_result has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8fb7f8c70bb9fa056aadb1ef8b92514ca8726e5c8de55ca335f86fc80666b7"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteSsh::prepare_shared_transport (cognitive 20): RemoteSsh::prepare_shared_transport has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18 (19 pts), match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba33f2efab01e476c2b4b7639f68cd48671cc05f57ddb7049029ed1393d9e9f"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::set_client_shell_surface_active (cognitive 20): HeadlessServer::set_client_shell_surface_active has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/surface_interest.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"48409c832f6677acd073c29413b6b4116eaba881500249f816f6cddab5a3d041"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::run_client_with_mode (cognitive 20): herdr::client::run_client_with_mode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6, match/switch 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":"src/client/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3eda13a20542989086c5aa02273b4fde0eb974e6d01cedff8d4ced422447791"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::handshake::do_handshake (cognitive 20): herdr::client::handshake::do_handshake has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/handshake.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"62abce46454b235615d11973d65e64ca026734fed4d7ceaefd1d33a457a268f2"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::kitty_graphics::surface::offscreen_assets (cognitive 20): herdr::kitty_graphics::surface::offscreen_assets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 3 (4 pts), match/switch 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"221bbb542f17d49f509d05fd62454ede3beacf387fb168d3d215d8984bb2ac51"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::windows::read_clipboard_unicode_text (cognitive 20): herdr::platform::windows::read_clipboard_unicode_text has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":2900}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51c9b3e5531b6860cbfd6bb906341b9727252203851be360727f87802696e9"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::windows::read_clipboard_image (cognitive 20): herdr::platform::windows::read_clipboard_image has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":2960}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ca52c9be0149756dcc25f8d8612dd79759772ce53969d6a4caa1ea983b22fc"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::raw_input::complete_escape_sequence_len (cognitive 20): herdr::raw_input::complete_escape_sequence_len has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0697a0eb7dc7f4404c4dae4ca50aad796b9649e5cdfd6a464f3e63b143f876f8"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::attach::bridge_child (cognitive 20): herdr::remote::attach::bridge_child has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, match/switch 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8398de8ac59d3e38d215762c204b46f08599062bf08fc4e103be4ae7225e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::update::print_running_session_update_outcomes (cognitive 20): herdr::update::print_running_session_update_outcomes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (5 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":"src/update.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1a6c55dbaf1e28794e0ab9383a696e0187d5fc0c9c7cb7abc97ab1b96add05"}},{"ruleId":"D2","level":"warning","message":{"text":"Desktop.DeadKeyChord (cognitive 19): Desktop.DeadKeyChord has cognitive complexity 19 (threshold 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":"scripts/windows_input/Native.cs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f8d63abd4135bb991cf27c144a24ddf6d9616c3874a3c8c106dc0ce386b7a"}},{"ruleId":"D2","level":"warning","message":{"text":"App::find_plugin_link_handler (cognitive 19): App::find_plugin_link_handler has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"945dbf4c0f28503ce97f640334e9cba48d71a6b68cdc76632a32183ef1984e56"}},{"ruleId":"D2","level":"warning","message":{"text":"Palette::with_overrides (cognitive 19): Palette::with_overrides has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Palette::with_mode_overrides) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5db6d603243ee0b40d1c42dadbe9eea41ce8c8935b0dfb4fa858dcf50d1dc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Palette::with_mode_overrides (cognitive 19): Palette::with_mode_overrides has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Palette::with_overrides) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"389aa3076193d6700fd3c185e6830ad0635d689342554cc4add8b5bc0e20dd59"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState::apply_workspace_git_statuses (cognitive 19): AppState::apply_workspace_git_statuses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca462530d718005c41dc7e01ef797d94e892162d3e82613e0c4bb5c2c2312396"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState::update_terminal_state_with_completion_policy (cognitive 19): AppState::update_terminal_state_with_completion_policy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdc8ae975efcb4b0f7c39790498a693d0073377ab53e1ae35a3bbd3934efb0a"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyKeyboardTracker::observe (cognitive 19): KittyKeyboardTracker::observe has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/kitty_keyboard.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afcfde6b63d84a8c281c09551c08d39fa83e8fbae8b9ef0a97bf66a976aed63"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::stream_host_mouse_capture_mode (cognitive 19): HeadlessServer::stream_host_mouse_capture_mode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, match/switch 2 (3 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d780dbebce37d70d3caa2e436f0b8fb058a7a1f6e967027a76cec46ac562523"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::terminal_sessions::terminal_control_command_from_json (cognitive 19): herdr::client::terminal_sessions::terminal_control_command_from_json has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 7 (14 pts), if/else 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_sessions.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ebc238f3ed65110142c5f0361caa02d2c47a672fb50d856a72cc49f6f5f49e"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::config_edit::build_codex_config_with_hooks (cognitive 19): herdr::integration::config_edit::build_codex_config_with_hooks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac5e1e644694803294113eaa89c8180e343820ff098828e93cb48c332ec45bf"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::process::wait_with_output (cognitive 19): herdr::remote::process::wait_with_output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (4 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":"src/remote/process.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"413e89fde1c1a84d5accd16330edb1d67587a34ee4e724d2a5221af59b6f24c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Desktop.SetEmptyClipboardImage (cognitive 18): Desktop.SetEmptyClipboardImage has cognitive complexity 18 (threshold 15). 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":"scripts/windows_input/Native.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e2ee51d86a8170437a0963bb7211549522614605bf39617852e624006fc503"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_api_worktree_remove_finished (cognitive 18): App::handle_api_worktree_remove_finished has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f446bb7fe3139b1771b5199a7bd3ac6ea5ff8dde6505020aec5fdbc3f804279"}},{"ruleId":"D2","level":"warning","message":{"text":"EndpointSupervisors::spawn_due (cognitive 18): EndpointSupervisors::spawn_due has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/supervisor.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffbbd6b5ef4c6b7ceb1692c7b2e992f0dd7f65c89bea67850d779a6bed8a394"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::route_navigate_key (cognitive 18): ClientShellState::route_navigate_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"9581e4d435ac2acf2e5ce45618f6ec6dbd6b9dafd419e3e1fc21ae0fe5109252"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::explicit_link_regions (cognitive 18): ClientShellState::explicit_link_regions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/link_hover.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"435e1a09be592fde4848cb061390c95d6ca4f283d03e3d72200bd741095ce599"}},{"ruleId":"D2","level":"warning","message":{"text":"TextEditor::word_boundary (cognitive 18): TextEditor::word_boundary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/text_editor.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c986624be2756de34fd6a5918e321b371d3271ed7168f0b2d6ec3f1c57cecba"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::app::actions::quoted_path_span_at_column (cognitive 18): herdr::app::actions::quoted_path_span_at_column has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 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":"src/app/actions.rs"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7ba0ce52ab30b86e96ba31d2b9d747af615e5425b1bc55ee8198265046cd95"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::config::theme::parse_color (cognitive 18): herdr::config::theme::parse_color has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/theme.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caa358c491be418c175c53f2a927121d2981fd4645f7d7b75ba5b3ffcb2608d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::claude_settings::remove_event_commands (cognitive 18): herdr::integration::claude_settings::remove_event_commands has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/claude_settings.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c68e8f3f4037d990ec2355f753bd55c2395b62728cb3b668dd9164caa800b4"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pane::terminal::windows_recent_fallback::update (cognitive 18): herdr::pane::terminal::windows_recent_fallback::update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 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":"src/pane/terminal/windows_recent_fallback.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1004c3ea8b8c9dab21192f16d1957889be9b94bc8bde3ca22a4f84bf72b80a14"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::windows::clipboard_image::pixel_format (cognitive 18): herdr::platform::windows::clipboard_image::pixel_format has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows/clipboard_image.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e403c54bbbd5ff8f6c51b76183d80488b7cf4ada4a9f4a0faf3280c93922f2"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::workspace::git::config::included_config_defines_remote_url (cognitive 18): herdr::workspace::git::config::included_config_defines_remote_url has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/config.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"51722cedd36b71af20138710f7fefd353232481f660f258d2f0913119d0a7929"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-tui-session.tui::syncSelection (cognitive 18): herdr-tui-session.tui::syncSelection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 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. This shape REPEATS in the file: 2 other methods here (herdr-tui-session.tui::resolveRoot, herdr-tui-session.tui::apply) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea767f3cee73ae05372a0c1fe6cafc27871c0afc95400feab55673bf9cd81e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::update_selection_drag (cognitive 17): ClientShellState::update_selection_drag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), 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":"src/client/shell/mouse.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"297a31bf543790e8045c99f6aae3eedd439f0bad8c9d17de96c8f0ce79a2d5dc"}},{"ruleId":"D2","level":"warning","message":{"text":"GhosttyPaneTerminal::process_pty_bytes (cognitive 17): GhosttyPaneTerminal::process_pty_bytes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c1b2a5efe9e70e6065005c12d3810522109bdf657571978641e2d3bfcb3ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneTerminal::word_motion_target (cognitive 17): PaneTerminal::word_motion_target has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (5 pts), match/switch 2 (3 pts), loops 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":"src/pane/terminal.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"980ec1a83172a70b71b1fad62bfb7781a985f2aefcf2606e816b6c706fd931f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneRuntime::from_handoff_fd (cognitive 17): PaneRuntime::from_handoff_fd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a605c62ffb472351929544b601bd8b5ca54a6f9f49a7caa40ee743fdbc5b33a"}},{"ruleId":"D2","level":"warning","message":{"text":"SshStdioBridge::start_command (cognitive 17): SshStdioBridge::start_command has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3030}}}],"partialFingerprints":{"codehealthFindingId/v1":"683416076cee67fea2380fa371dc67edbc495ca6ad08727f526cfd6e4977bf69"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadlessServer::handle_scheduled_tasks_headless (cognitive 17): HeadlessServer::handle_scheduled_tasks_headless has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), loops 1 (3 pts) (nesting depth added 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":"src/server/headless.rs"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"32635050fd7173b018ad74887304010742a95dbac532792690cd4f78b78e55f9"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::config_reload::apply_reload (cognitive 17): herdr::client::config_reload::apply_reload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/config_reload.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"355b559c0292a4e58ac470635ab200453cf388fb42e1c926291afd763bcc7f84"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::direct_graphics::valid_control (cognitive 17): herdr::client::direct_graphics::valid_control has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (5 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/direct_graphics.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db46a1d5ebb046df35ef8cdf8e324525c898467351041dd407fd364bd9527cf"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::detect::manifest::validate_manifest (cognitive 17): herdr::detect::manifest::validate_manifest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 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":"src/detect/manifest.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bef60d1e7c94262ba762290cb159210ebd67ecdabd06a806cdf0b764260382d"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::integration::targets::install_droid (cognitive 17): herdr::integration::targets::install_droid has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 6 (8 pts) (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":"src/integration/targets.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d88e50be0a4742d56bcad308c313f4ed9b36fa5fdd8cd54acbed283a2fbe96c"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::linux::copy_config_xattrs (cognitive 17): herdr::platform::linux::copy_config_xattrs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (nesting depth added 6). Of this number, 11 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0730d374f16fcd136f25d3117596f5de9da7627ee63c5f87572216ed8655fcd"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::pty::actor::windows::run_input_forwarder (cognitive 17): herdr::pty::actor::windows::run_input_forwarder has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"666281c980dda50d52a75f67219d25f9e77b559b68e4d4fa93e80108b5346b51"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::raw_input::plausible_sgr_mouse_prefix (cognitive 17): herdr::raw_input::plausible_sgr_mouse_prefix has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e12661a0eefdee45a0db415b72667e3df4032217303497e54d2ac7d33660c35"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::release_notes::release_notes_lines (cognitive 17): herdr::ui::release_notes::release_notes_lines has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/release_notes.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"665742518e118042bb9f11c3ddb5851971d89733e9f99f9813819174f4f92e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::update::self_update (cognitive 17): herdr::update::self_update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1, 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":"src/update.rs"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77fafa4a9f750778a9b169688d98abc6301fda90aa512400d0e2bae390481d5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-tui-session.tui::resolveRoot (cognitive 17): herdr-tui-session.tui::resolveRoot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (herdr-tui-session.tui::apply, herdr-tui-session.tui::syncSelection) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-tui-session.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a7817fe1ce2ae8f1f272cd6a3ba10215c14d67168d1d0fd0e9770860157d70"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveSubscription::poll_batch (cognitive 16): ActiveSubscription::poll_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/subscriptions.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fda61575172e7a9c0de84f1a71e25ba68ce7ddbedcca7e425b40629d4ff4145"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceInput::resolve (cognitive 16): SourceInput::resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/reads.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee719a7fd058fb3b9131f5d6cdbd590eb8f78d87a85ac1ce095246e5562cd1b6"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_pane_copy_motion (cognitive 16): App::handle_pane_copy_motion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"876552316afa45c622e62611b6632b0331fe6fd9ccf5fd0493ae9bd0a730c603"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_workspace_move_block (cognitive 16): App::handle_workspace_move_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/workspaces.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b147dc2393d22656de4791e17753cf84299bdd6359b90de7a12db2bbafe910bd"}},{"ruleId":"D2","level":"warning","message":{"text":"InputFilter::push (cognitive 16): InputFilter::push has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/direct_graphics.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7939fcbdaae62cacc34b7bee3f7d6c8b085c4097dda03d6961ba06b22f43c63a"}},{"ruleId":"D2","level":"warning","message":{"text":"EndpointSupervisors::host_power_event (cognitive 16): EndpointSupervisors::host_power_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/supervisor.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa6881c5932ca3a1e2aceeee63cfc25a31d7ca3f1fb62675dcdf01a005106d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::route_copy_mode_key (cognitive 16): ClientShellState::route_copy_mode_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/copy_mode.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e204a90cc7307b5347a0a94a63b83d97038ff109359594d836b21e6f1346a46a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientShellState::handle_key (cognitive 16): ClientShellState::handle_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c742df10bab25625194f865a0cae1372dffbc70435001730776a7b16856873"}},{"ruleId":"D2","level":"warning","message":{"text":"PtyIoActor::spawn (cognitive 16): PtyIoActor::spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4895157bc1f923fea855b16e9f241f9cc7da3f6b56ee314539c42013c951a962"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalState::clear_full_lifecycle_hook_suppression_for_detected_agent (cognitive 16): TerminalState::clear_full_lifecycle_hook_suppression_for_detected_agent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"87271c38630e2d5d4688ee57ded5ceca3eb129b21cfb21256e2da52d96f74486"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::api::wait::wait_for_output (cognitive 16): herdr::api::wait::wait_for_output has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eed8308707bcc0c5ce09e7ba0f5115e1ae69eb55d85b896612f35bd6f2464b"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::api::wait::prompt_agent (cognitive 16): herdr::api::wait::prompt_agent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 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":"src/api/wait.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"025a28867c8f7d1ad3b69011d3e34b5c88b608bbdc9bc10b44db7519ce2d4bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::app::api::sanitized_notification_text (cognitive 16): herdr::app::api::sanitized_notification_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e304eb661f7f9aaae53229a40e4ee208ea76bbe6024bcc3851fd07e1a64f3"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::agent::agent_explain (cognitive 16): herdr::cli::agent::agent_explain has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"de02e74daae5938ae528538a54b2e26a2c3ec76e48e10f2be03fcb8b3c2efcdc"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::cli::machine::add (cognitive 16): herdr::cli::machine::add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 5 (6 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/machine.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"2059d0a02fe90b6d9d944bb9803a3d0853062b438e6e8e2daa34a85bda0fc439"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::catalog_reload::apply_profiles (cognitive 16): herdr::client::catalog_reload::apply_profiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/catalog_reload.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"333c15fac08484c133cf4370f95b95a2f0e6ee847c7df26376aac6d9b0e31345"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::client::shell_runtime::install_client_shell_snapshot (cognitive 16): herdr::client::shell_runtime::install_client_shell_snapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5d36e6fd100bfc4ec1c7de9753db4f79443c3ee63f2a0de82b9b47d1441ca4"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::platform::windows::descendant_entries (cognitive 16): herdr::platform::windows::descendant_entries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cbf930862571bcf08425e9839cd3bacccc13b675f516c8eea949ef7e98cffd"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::protocol::render_ansi::compute_prof_blit_stats (cognitive 16): herdr::protocol::render_ansi::compute_prof_blit_stats has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"115f9b39eab7dfdb03f79e4c4b1ac7b644f0a06494137d8ad9f78c3226fdb973"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::raw_input::extract_one_event (cognitive 16): herdr::raw_input::extract_one_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8a49b4f4f5425904cecf888bc0fa08c2a5265b7ec9d9de5eeab0231a2bed6b"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::attach::confirm_remote_install_with_running_server (cognitive 16): herdr::remote::attach::confirm_remote_install_with_running_server has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f386ded368b011b2672ab7549ec7b37545098a471284cf0ab12df998c311f26c"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::remote::attach::copy_reader_to_local_stream (cognitive 16): herdr::remote::attach::copy_reader_to_local_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 2 (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":"src/remote/attach.rs"},"region":{"startLine":3502}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8bd08075f08e61cabd2d7bb0d3066f352a9776e7540726dcd458481dc1846f"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::server::headless::sanitize_notification_text (cognitive 16): herdr::server::headless::sanitize_notification_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":3426}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d6b670a606b51fb0cefaa3cb5074db2e46572c98f457feec7628ab08fab544"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::panes::render_pane_border_titles (cognitive 16): herdr::ui::panes::render_pane_border_titles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/panes.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae07ded48392d2573271db53a8d8cd69ca2818901cf1d0c6e3030f5ec425def5"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::ui::tab_surface::tab_surface_cursor (cognitive 16): herdr::ui::tab_surface::tab_surface_cursor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/tab_surface.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b29a50f8aabfcd2d4822d8b273bd3031707e9caeca740ac0e5608d10687bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr::workspace::git::config::worktree_config_enabled (cognitive 16): herdr::workspace::git::config::worktree_config_enabled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/config.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed71c1a1cbaf28d9e72e75b99f2d7ef29db61b355cded8e929f56e8c3eb73bf"}},{"ruleId":"D2","level":"warning","message":{"text":"herdr-agent-state.HerdrAgentStatePlugin.event (cognitive 16): herdr-agent-state.HerdrAgentStatePlugin.event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-agent-state.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"610f8ec2f0791402ed41678457944c1fd4819b5778ceaad0780fd1e9532c93f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::run_client_loop: FunctionTooLong \u2014 herdr::client::run_client_loop runs 1504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1404 over it, 15.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa372517927f5b0addf34d773e15f3873af842eab58fccfd9d76ef3b3ed565b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.handle_mouse: MethodTooLong \u2014 handle_mouse runs 1267 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1167 over it, 12.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mouse.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"572e233fe0cc8503869041fce2a91d7f52c62e9127431e30550f8c4562e38ac2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 349 methods, declared across 32 files: api/panes.rs (45), app/api.rs (31), plugins/mod.rs (22), app/creation.rs (22), \u002B28 more file(s). The bar is 30 methods; this is 319 over it, 11.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"664c6412e01281ab768007bb63f78e03f0289a5373dc94a4d3705f1853f81351"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientShellState: TooManyMethods \u2014 281 methods, declared across 24 files: shell/endpoints.rs (32), shell/input.rs (30), shell/overlay_input.rs (30), shell/copy_mode.rs (25), \u002B20 more file(s). The bar is 30 methods; this is 251 over it, 9.37\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c50582eea53ebee64c46289ed9f8b9a8126b5b15eed3d05d4bb301214c8496b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pane.rs: FileTooLong \u2014 2757 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 51 free functions. The bar is 500 significant lines; this is 2257 over it, 5.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"528e740fcbee3a20d53445bc3e376a484adb094268db60d27d426569d485a207"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2625 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 2125 over it, 5.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"705f9bb7ba62404b2aef72ca9a9f5ae17c2552161c27142a71b207ffe2474250"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HeadlessServer: TooManyMethods \u2014 153 methods, declared across 9 files: server/headless.rs (67), headless/client_views.rs (38), headless/render.rs (16), headless/notifications.rs (12), \u002B5 more file(s). The bar is 30 methods; this is 123 over it, 5.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24d7457fa2c301347a1cb284e72940d65512fac3547d0de4831d8fcfff46332"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pane/terminal.rs: FileTooLong \u2014 2511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 64 free functions. The bar is 500 significant lines; this is 2011 over it, 5.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61818fd15116f6081af6a26497f467db8c5afba4d06f2313288552adb4db7c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.compose: MethodTooLong \u2014 compose runs 484 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 384 over it, 4.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"343017fc908f5a19837c90dc1e0bc9c310d4b3020024f1cc9ced3bca37f81b05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/headless.rs: FileTooLong \u2014 2379 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1879 over it, 4.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a12992a471713ee4878b023cf106abb0172750ae2333a40dc8842174303e9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: platform/windows.rs: FileTooLong \u2014 2188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 138 free functions. The bar is 500 significant lines; this is 1688 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":"src/platform/windows.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb32d9a8725525355ea11d8d082ae2b3fac3576c9deed862899715dbed1c852"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeadlessServer.render_and_stream_with_graphics_limit: MethodTooLong \u2014 render_and_stream_with_graphics_limit runs 419 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 319 over it, 4.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e235172e19e19add69926ed3fa7addc5331338428e6fcf45576e4797c019211"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalState: ClassTooLong \u2014 1674 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 108 methods, 2 blocks, lines 129-2446. The bar is 400 significant lines; this is 1274 over it, 4.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"569d6dec3c8836061c869b071ca67ea05564c48fda576770fc71539c336c9a2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: remote/attach.rs: FileTooLong \u2014 2048 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 103 free functions. The bar is 500 significant lines; this is 1548 over it, 4.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2bd87b1c3869f52e626db46cf4ec83d2f086aec8884d8678c7546af89994a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/mouse.rs: FileTooLong \u2014 1833 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: ClientShellState (7-2402). The bar is 500 significant lines; this is 1333 over it, 3.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mouse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c99a3a91d8a39304f2af451ed3068669d0dffc31d99c7afd59f417b5528134"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalState: TooManyMethods \u2014 108 methods, declared across 2 files: terminal/state.rs (84), terminal/metadata.rs (24). The bar is 30 methods; this is 78 over it, 3.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a583afcb292457ab372a1302f9b225981e2d873094876bdc5de3494cdcbf930"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/mod.rs: FileTooLong \u2014 1798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1298 over it, 3.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96db387122b5bdfadd595ab31531b96775187a8404647c230b813b4e566ba941"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/update.rs: FileTooLong \u2014 1774 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 87 free functions. The bar is 500 significant lines; this is 1274 over it, 3.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cc5c81459e909db6b5d4fdad75917c4c7b8d91f204e1faef66307ca1724d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: terminal/state.rs: FileTooLong \u2014 1762 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: TerminalState (2 blocks, 129-2446). The bar is 500 significant lines; this is 1262 over it, 3.52\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f87582ff2e3f864658f3e7839f53253e4b4195b6896fb50f47c3eaed8c362"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/panes.rs: FileTooLong \u2014 1742 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 93% of them inside a single declaration: App (2 blocks, 33-2210). The bar is 500 significant lines; this is 1242 over it, 3.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db3b4d2bf9c5ed67bcafb9215cf7eb2e6278f4186d9c52b2e3c99e651bfc84d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_pane_move: MethodTooLong \u2014 handle_pane_move runs 331 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 231 over it, 3.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"5411a8eaad3d297caa467c187f216cfc3373006b7123422b939596aa882e066a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.route_overlay_key: MethodTooLong \u2014 route_overlay_key runs 330 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlay_input.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a90c178fb56e7d0ab62c7ab3ab0bafe6d85b76b5ff137be7844d3149e5b6233"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::integration::actions::uninstall_target: FunctionTooLong \u2014 herdr::integration::actions::uninstall_target runs 330 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c8c2780f7bcca6d9b969db66a633c80ef64f895e6c49240cfbe145c5c74a21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ClientShellState: TooManyFields \u2014 94 stored fields beside 281 methods. The bar is 30 stored fields; this is 64 over it, 3.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16aac615c2e256c46cee4730d235da784a396415cf4cead2df5bcafbac8b9d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/state.rs: FileTooLong \u2014 1496 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 996 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ba163c13952acd9bbb02916a19db50d70052b8727e2966692ecac4b0ab0595"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::overlays::render_navigator_overlay: FunctionTooLong \u2014 herdr::client::shell::overlays::render_navigator_overlay runs 293 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db0d89953a579d6e888a6f7c627f59a11f050f4aed66a5f8acc7bc17cbe537a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeadlessServer.render_retained_pane_surface_and_stream: MethodTooLong \u2014 render_retained_pane_surface_and_stream runs 293 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/retained_surface.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbb685041337d5f40e3df42f5238a42d2a02cc1bece7da139b59198253c95fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::mobile::mobile_items: FunctionTooLong \u2014 herdr::client::shell::mobile::mobile_items runs 288 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 188 over it, 2.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49beacc2ed4a655e99fb1c881608f4c84bf00d4196e0fa3285831c4c3d11f0a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaneRuntime: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"6684dcaf087866af449312a4d415d0c7dc0b4297654b1c96eaa923644c3a6e9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeadlessServer.handle_internal_event_with_forwarding: MethodTooLong \u2014 handle_internal_event_with_forwarding runs 286 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 186 over it, 2.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/notifications.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d06378230d36619fee38556e70857bc18c60acce2d34310dcbefc82f851390"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/actions.rs: FileTooLong \u2014 1415 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: AppState (4 blocks, 190-2122), declaring 34 free functions. The bar is 500 significant lines; this is 915 over it, 2.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37440773e97bac6108189c44c251bdbea97d122fe45e75270ca3ca7807f5fa0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::endpoint_sidebar::render_expanded: FunctionTooLong \u2014 herdr::client::shell::endpoint_sidebar::render_expanded runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89e0deb836a4016160f5664e0e82c6d225fa5fb6dd9acac142c3cae425a7366"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.handle_endpoint_result: MethodTooLong \u2014 handle_endpoint_result runs 274 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d36bc203eddc03cf731e6ec0b8bf956ca963d7f1f42a04e4ef096f0a0032ee1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalRuntime: TooManyMethods \u2014 81 methods. The bar is 30 methods; this is 51 over it, 2.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":"src/terminal/runtime.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"38be5928b5a2ab41f72b20a8f8e4e51e662fb23601b013ee13c21d0d3886597f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::persist::restore::restore_tab: FunctionTooLong \u2014 herdr::persist::restore::restore_tab runs 269 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 169 over it, 2.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf1adb1a2e02070f44aec72b3878e92d93699eb845673727b51f2f7eb5f33e6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Terminal: ClassTooLong \u2014 1051 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 69 methods, 3 blocks, lines 848-2315. The bar is 400 significant lines; this is 651 over it, 2.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"866973c00e0e36f39884ad93204a99dbfb447632907f8bce3dc2ce4f0f807db8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integration/targets.rs: FileTooLong \u2014 1255 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 50 free functions. The bar is 500 significant lines; this is 755 over it, 2.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a61e5ab66060ed37f3fa289b68ac7e77a5c3796cc19faeb0b7eb096a59ac036"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_api_request_after_internal_events_drained: MethodTooLong \u2014 handle_api_request_after_internal_events_drained runs 251 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"35aa7dd3c35c891df757729095587fdb2bb9262200863616a620b8d5d7bf447d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_internal_event_with_pane_updates: MethodTooLong \u2014 handle_internal_event_with_pane_updates runs 241 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb02bf495381ff1cfde5f45e10e6b0b2caeeff54716cc4c3e4887576798702df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.handle_app_event: MethodTooLong \u2014 handle_app_event runs 237 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"177d56c91b2c570d1a7d619622a99b9ec0ab3f276c09a7c310ee443feb18c267"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.apply_active_snapshot: MethodTooLong \u2014 apply_active_snapshot runs 237 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d49885a4c0949a6ae358c61f1e7f58b1d8ec48f961304fa6bf6211eaf7a04d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Desktop: TooManyMethods \u2014 307 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 30 methods; this is 41 over it, 2.37\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/windows_input/Native.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8e724712a00bce3308f5cec8721191cea96a94e81b2eee36b9b95796178391"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Terminal: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f691bf18a161ea312b9fb89bfb1b92c1153f4bad187ba7a7d85c8364114290b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.validated_keybinds: MethodTooLong \u2014 validated_keybinds runs 230 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a98f77ee1c2c8e5d2ca967be3560439255d629cccb09943abbe0e26a13863f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: detect/manifest.rs: FileTooLong \u2014 1142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 67 free functions. The bar is 500 significant lines; this is 642 over it, 2.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d5e80f46b793b336ea8b49d537c33be63a96c32f35f1ec49f6a71c7a54ba85"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: AppState: TooManyFields \u2014 68 stored fields beside 52 methods. The bar is 30 stored fields; this is 38 over it, 2.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f9f9f7eb923da600bb2b0cce612c2a1c825857d28008b3478a756886b3c7e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalState.set_detected_state_with_screen_signals_at: MethodTooLong \u2014 set_detected_state_with_screen_signals_at runs 226 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/terminal/state.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e6b471ad698344787c97212a4c193b8d777607f482ad25def8f05f7457e26b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/keybinds.rs: FileTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 613 over it, 2.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b4fa55814757b4e1f3bd7843102f583d6ef345ad73eca3bdbadb4c1f6bdc3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::server::client_shell::snapshot_with_completions: FunctionTooLong \u2014 herdr::server::client_shell::snapshot_with_completions runs 222 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_shell.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"463b25ab9a3e1b95594bd91301599e9b5e809e59252dc2d19240b800048d9341"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GhosttyPaneTerminal: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd77673ad2cc00b7ac0c6aae51a6e88afc625fd7c1b814ea338a53b764b899e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/overlays.rs: FileTooLong \u2014 1094 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 594 over it, 2.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":"src/client/shell/overlays.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcba295645c72e4f248666bef0731c8bde7584caa92629dcf8706d5c9c743fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/wire.rs: FileTooLong \u2014 1087 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 587 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/wire.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09041cae6ce22d52befac3d52cedc6cdd485aeb82374c0bbb529fbae00fc07a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::sidebar::render_sidebar: FunctionTooLong \u2014 herdr::client::shell::sidebar::render_sidebar runs 214 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"397b21f4c7a7a1b79d72ad0e9a433a0b665cdb9df9da2ffca00bcb6d394f2f52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::main: FunctionTooLong \u2014 herdr::main runs 212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba19e984dbe04cb901cc09de73d0a74c76d09a322f099f6e4b524ba2334231e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/raw_input.rs: FileTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 555 over it, 2.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d1577bbf684578ca12cd9c3776ed6f3e6b41dea68dbf428b9703ed0885eb0f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: KeysConfig: TooManyFields \u2014 63 stored fields beside 2 methods. The bar is 30 stored fields; this is 33 over it, 2.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"910cdb399822cc273a153c55964f3aa2b03188167d098a7bb1c5936fcabcb8a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: KeysConfigOverlay: TooManyFields \u2014 63 stored fields beside 1 method. The bar is 30 stored fields; this is 33 over it, 2.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1708ee5f053265cfd6a0370335af8aa455ee0e6cdc9d523307e8159190696b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.endpoint_method_for_action: MethodTooLong \u2014 endpoint_method_for_action runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/client/shell/actions.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead64343282678418461f550ded2cd6037dd48f0a1900b15bf37501cc5d9081d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 62 stored fields beside 349 methods. The bar is 30 stored fields; this is 32 over it, 2.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8845e7853c2a8e58fba4a0cf85e08c799a8faec00951b6b33a8feb3457107083"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.record_binding: MethodTooLong \u2014 record_binding runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea6ea0f347fb3a59063297c3ff2e4b0e525dc93c41e3ebcff80db6ff7ed6f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/plugin.rs: FileTooLong \u2014 1002 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 55 free functions. The bar is 500 significant lines; this is 502 over it, 2.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":"src/cli/plugin.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec68ab25fa85ca723ea0021ef35dd5e9a307488697033795b2b8576d3b0fecf9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClientShellState: ClassTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 281 methods, 2 blocks, lines 859-1897. The bar is 400 significant lines; this is 400 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a17fb0bb038d7b844d530d7d06b67749b418567b2802a1e6bba14220c2e3ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaneTerminal: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d3200443cbcaaefc4475423d2f1151743b78d40d864b39c587872b1e5bb7e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/api.rs: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: App (29-1332). The bar is 500 significant lines; this is 488 over it, 1.98\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a106cec4f63b4e63fe6ea6219f49dd0ece059e35817584590b0897e685c914"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalState.set_agent_session_ref_for_session_start: MethodTooLong \u2014 set_agent_session_ref_for_session_start runs 190 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3eccebe0d5c819f44609627d13297a12e6941feca5dd083dbc9091f18777704"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/client_transport.rs: FileTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 449 over it, 1.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_transport.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9925bae9bf4a057336eeaf13ee1ce6628603c70eb99f9c0a540429eb4395e9b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/model.rs: FileTooLong \u2014 929 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 429 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0cfcda245fbfb68c5f61845fbae67701a921756c761aedee00494df97ee4e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ShellHitMap: TooManyFields \u2014 55 stored fields. The bar is 30 stored fields; this is 25 over it, 1.83\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf52599b4d76829787ecb77b251b50ff287af2921f0a68e7325f22e80a44eeb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::settings_overlay::render_settings_overlay: FunctionTooLong \u2014 herdr::client::shell::settings_overlay::render_settings_overlay runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/settings_overlay.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5800fc0f0cb409958cb7cd12c56a34ca71a59cd1c17609596b997a5e3c27ac9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::tabs::render_tab_bar: FunctionTooLong \u2014 herdr::client::shell::tabs::render_tab_bar runs 181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/tabs.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"222f34d3205f9dc6b864eb7d5a085e58a4758ebd7089a1346b0e2551535c5555"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Keybinds: TooManyFields \u2014 54 stored fields. The bar is 30 stored fields; this is 24 over it, 1.80\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0a3a63c70a6e37141f94e75f6a2ff1917415e7f26fbac02f0fcd538332736c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/mobile.rs: FileTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 399 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d509fc690a6ebcfb97fd6512177577dbba6cb98e559555c3b67b76f8682917"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/overlay_input.rs: FileTooLong \u2014 893 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: ClientShellState (3-1227). The bar is 500 significant lines; this is 393 over it, 1.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlay_input.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a073b003002e56d5de644f1748991875244596ca03afec596ada8cf4c9e47100"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::endpoint_sidebar::render_collapsed: FunctionTooLong \u2014 herdr::client::shell::endpoint_sidebar::render_collapsed runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"879f049cb2a69803bf02a10346f317004a8322071c79f4ab8f58d878d2cc43fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RawInputByteFramer.flush_timeout: MethodTooLong \u2014 flush_timeout runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/raw_input.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b97c2eb63cb3e6e7f16a5f7be6cedd6d34c000118f68014bf2d64a9aae4626a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppState: TooManyMethods \u2014 52 methods, declared across 2 files: app/actions.rs (41), app/state.rs (11). The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2c5a7eee2cac745f70c11ff6b069b49ee8b3086361489114e81d024dd4fe4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::run_client_with_mode: FunctionTooLong \u2014 herdr::client::run_client_with_mode runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b429c9283bf5772a48405b7c6e46bccc355f8402e3308c4dd88ac8cb4f93f1c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: endpoint/activation.rs: FileTooLong \u2014 859 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: PendingEndpointActivation (37-1218). The bar is 500 significant lines; this is 359 over it, 1.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a32c574507ef8b2f889c73cabfeec1fcad6331f1013caa96b410f824f46639a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/actions.rs: FileTooLong \u2014 858 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: ClientShellState (3-1119). The bar is 500 significant lines; this is 358 over it, 1.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6188cf948675eed53a9c6a55ba68084518c981cd2ea85fbe2d4e5339457abb93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::integration::actions::install_target_inner: FunctionTooLong \u2014 herdr::integration::actions::install_target_inner runs 171 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"827b8e7a6d741872c1844d3bbe4214b9dd6aeac2f042067de3d67988a7f3960a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::worktree_overlays::render_worktree_open_overlay: FunctionTooLong \u2014 herdr::client::shell::worktree_overlays::render_worktree_open_overlay runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktree_overlays.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad9403d4f165d16cc358f9fa174f9c9e136e234922d86d2454230e080c1b20b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/workspace.rs: FileTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 341 over it, 1.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be433f4a0ae86359eb7c0da0815d6219c90baba4f6b0a2baecdd870ee1e3ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::server::client_shell::render_pane_surface: FunctionTooLong \u2014 herdr::server::client_shell::render_pane_surface runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_shell.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40e397d632740d04d93aedb3b2ae8100a318559664151142cafd75b3bec9d45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: herdr::platform: TooManyFunctions \u2014 50 free functions. The bar is 30 free functions; 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":"src/platform/mod.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7631e041fa1e6fc1fc587263a704a7182841130cfdc1fe9a25df298f820ab30e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/input.rs: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: ClientShellState (93-1190). The bar is 500 significant lines; this is 328 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":"src/client/shell/input.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e57e1a123cf71ad69153e6e4eed22dc61e48e25c1680778fee0fae22eef32b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::kitty_graphics::surface::collect_scene: FunctionTooLong \u2014 herdr::kitty_graphics::surface::collect_scene runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f6e7b8e58c07df67554f23a42de20c205fc8204d4125b1081e113fc62fe189"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PendingAltScreenRead.poll: MethodTooLong \u2014 poll runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/alt_screen_read.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc739fba0e21aa3fa284d36a97bb70f2aab34a12811d052f9ac73c3ee81d583"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kitty_graphics/surface.rs: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 317 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dc862cbbb6163cc25ea79e841516919832664b63ee12ac845a7543ecc6812c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::render::render_mode_bar: FunctionTooLong \u2014 herdr::client::shell::render::render_mode_bar runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/render.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6712871e4804e490d1186606712c718d52c9068d592b17b821591ce1462a713"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Workspace: TooManyMethods \u2014 48 methods, declared across 2 files: src/workspace.rs (46), workspace/aggregate.rs (2). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"df570d2978a0e1c080bc82bc1fa0b2392a66b6aefc5c8ceeab71800a67871010"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: platform/macos.rs: FileTooLong \u2014 786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 63 free functions. The bar is 500 significant lines; this is 286 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":"src/platform/macos.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"616496c22938d78ecf6319e3245687c77ce6658c6a7115dbbaa1f0f30eaf77b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/mod.rs: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 273 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b6b45656b6f89bca496c0e9b562d5b2e8864edb96125f36913fc135add7bff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::aggregate_navigation::navigator_rows: FunctionTooLong \u2014 herdr::client::shell::aggregate_navigation::navigator_rows runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/aggregate_navigation.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"481424df4a6ebb661d3d24747741b0db8454c7c0fcacff372dc6bc82c1ea1709"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::input::unix_stdin_reader_loop: FunctionTooLong \u2014 herdr::client::input::unix_stdin_reader_loop runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/input.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cf07f0d5a8aa11668061098befe0ae191d6d2ba020ceaae45bdb478398f828"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/state.rs: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: Palette (2 blocks, 35-676). 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":"src/app/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a135933a265a793381d2dfee5bc5f8517e673e82686e7886919de4cf44701a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::api::server::handle_connection_with_stop: FunctionTooLong \u2014 herdr::api::server::handle_connection_with_stop runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9525fdee0241954604ded470b4857664710975be5ac6ac1d4e654eb2eb7d8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: persist/restore.rs: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 243 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8c95d030310fb5acbdc78d1ffa07b36da3e3a5c9d9b2fb5f75982834d1b001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headless/render.rs: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: HeadlessServer (3-1011). The bar is 500 significant lines; this is 243 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6988a388ec45f03e57a0fabd55e9994efb44f249c92bd6cd9a242a706a7a582"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: herdr::platform::fallback: TooManyFunctions \u2014 44 free functions. The bar is 30 free functions; 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":"src/platform/fallback.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd887eaaba69f2b29fa8a5c44f7ca42d0095748bc44095a31dba28913f81d1fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headless/client_views.rs: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: HeadlessServer (53-961). The bar is 500 significant lines; this is 233 over it, 1.47\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/client_views.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e461f68cfddcf16bb033d8d61148d6e735644f7f2a063685caf384402260e8c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: actor/unix.rs: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 230 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8609f07479a96ebd121c72ce9fa80e5a767e24e9094953644410d7566b23d90f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeadlessServer.perform_live_handoff: MethodTooLong \u2014 perform_live_handoff runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17ea9e734e07cb4306595c09c5fa6b0a3801e77efd636224dd5f3e21b5ae2e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: platform/linux.rs: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 73 free functions. The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0d3328dfd875d3facdf99687d260306e48a6f8d036362af5a882aea5f8ed39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_layout_apply: MethodTooLong \u2014 handle_layout_apply runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/layouts.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c0db36b33be29e73c1d876eb4518d2cfc4c0f16c5b5e6e0b0b4ed3baab3239"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.handle_worktree_endpoint_result: MethodTooLong \u2014 handle_worktree_endpoint_result runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fa662058080c35bd005dde86304676169599fea1338abd938504069d3f8b88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::ui::sidebar::resolved_token_spans: FunctionTooLong \u2014 herdr::ui::sidebar::resolved_token_spans runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d76f012d5ede1f7af0b34aca58a0863a4be034fe0e6e249c94bdfac992f00a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cli.rs: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 57 free functions. The bar is 500 significant lines; this is 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f109f4ba98439ac843f4ce5c70fd5c8c5a6f795cac2fdf369f601e1a346deb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/render_ansi.rs: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 174 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b897d1edfd7ae26e86c38ed72931fab41fb024b162333b30ec99b7f673332cff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: detect/mod.rs: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a310f530682dd1fada1e72141b8d8008007f508292803aea84697a29395bf3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/composition.rs: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: ClientShellState (22-726). The bar is 500 significant lines; this is 171 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef214337ec56f6b4e6eb6db83111ddafa90abbb5c35389c93e839b1a73e43b2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integration/config_edit.rs: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c46ec832270486a50df5376a24b820dc38e731e784e598e2e52b0773ae0c44f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::mobile::render_mobile_switcher: FunctionTooLong \u2014 herdr::client::shell::mobile::render_mobile_switcher runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"247adbc7df625115fd2362fbc62d6bc7233deb23f84d8335f648039ea64582a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_pane_swap: MethodTooLong \u2014 handle_pane_swap runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bd4bcbeb376393442a06a4bbc5ccc867b62b2ec376edc4090d50f141e56cfb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.install_pane_surface: MethodTooLong \u2014 install_pane_surface runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcde44177805cd5855db2b5b8cf0e2d3c0c31ff8a4f65681945f8773ffb264b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/copy_mode.rs: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: ClientShellState (4-856). The bar is 500 significant lines; this is 155 over it, 1.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/copy_mode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af708693309c392b08654449ff725348e2b044d98782938f9f1aca648a4d7efb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: herdr::platform::unix_common: TooManyFunctions \u2014 39 free functions. The bar is 30 free functions; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/unix_common.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6527f7cb2fbc0e1632d508f680c0d8dde5070862e5408804c2720ebc9b2cfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/panes.rs: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/panes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b1952ddd0fec4f03963f3ca4179d53f40ca33084201dfdedf090a36f832c59"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_pane_report_metadata: MethodTooLong \u2014 handle_pane_report_metadata runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb24cc0e194ebf86ab83b53fea3710a8a66044655f186cec6856b2a6553560b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.route_navigate_key: MethodTooLong \u2014 route_navigate_key runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"541b2d2d8e29b35fee4b5185224c4b58b403fa80562d09ea118111927f99e4fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.new: MethodTooLong \u2014 new runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dbb82648a56c310a23d1281df4ec0eca9a89d4cd1d9ef0fc7dd77a0b5bb6be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/shell_runtime.rs: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4524533fc7605de7ac78570dda19054fabb553b6b4a24cb38d566f1ed36404d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.plugin_context_for_event: MethodTooLong \u2014 plugin_context_for_event runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/app/api/plugins/context.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"487228f3a78ef9a88dc11ad070bd7960067d28d7c1f71210c8c30db6b4b96606"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8051fac64e936f7c1865babf7d506a8673f918fe3a29b7d5daf1e9c85ef2e6ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ClientShellConfig: TooManyFields \u2014 38 stored fields beside 14 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d05225a38b35455939268cc141ba61f8089381957fdee84815381ddf5d7df6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/sidebar.rs: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 130 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05581693acc6b80011b3168ff1fc08eb98e29d3364eb136533fab8c2e8e051"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Palette: ClassTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 35-676. The bar is 400 significant lines; this is 102 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ce9ae5e1d7fb6e2c1b9c60a60ef51a0521b7b9be20ce620cef7093da82efff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.start_api_worktree_remove: MethodTooLong \u2014 start_api_worktree_remove runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d815db3e54a4e5e85705aab5974afbeb685d2d834cfff936d9cb3966622b947"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::sidebar::render_collapsed_sidebar: FunctionTooLong \u2014 herdr::client::shell::sidebar::render_collapsed_sidebar runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 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":"src/client/shell/sidebar.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"790a55376e805f03a95a253883b8447266b3ec7a0c5feb6dacb530b95edfe7ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/terminal_setup.rs: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 114 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":"src/client/terminal_setup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4f895a1781b41e18b075d6c7acda0b553ca260cb2cbb7905b3f15517651b18"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.route_copy_mode_key: MethodTooLong \u2014 route_copy_mode_key runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/copy_mode.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"359ba9d060dadcea5c8ea399e9069d8072418373c3fc7241df4e405dcf588bff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/wait.rs: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 108 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e81ead5e1285baddc25acea9513142018aaf8ece89c8bbbb2d61677c28b04a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::remote::attach::bridge_child: FunctionTooLong \u2014 herdr::remote::attach::bridge_child runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7175c5a2fe6bc82f9a0e81607d4c0f1b4c485d057a21c7bebc1e11389c23f05b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: HeadlessServer: TooManyFields \u2014 36 stored fields beside 153 methods. The bar is 30 stored fields; this is 6 over it, 1.20\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78dcd8a3085c7dec5147969d151dc24364821fa712697b7e8dbc83d9b8cd050"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PendingEndpointActivation: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation/model.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca256f5347a24fd73077839d92e10df387ddaf98d8ec52b53a4aa09985411d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: plugins/mod.rs: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 90% of them inside a single declaration: App (27-745). The bar is 500 significant lines; this is 96 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df51b61dede784ed382109f82e9434f9cc36bbcb9474d3437b21077f155b023"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::api::wait::wait_for_resolved_agent: FunctionTooLong \u2014 herdr::api::wait::wait_for_resolved_agent runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d5de7e01384b8a52b5bfc73060cc41414becd0f0a5d487755a0a615a6512c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::input::keybind_help::keybind_help_groups: FunctionTooLong \u2014 herdr::input::keybind_help::keybind_help_groups runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/keybind_help.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd81081e9459d4ecf62ebfb0a014d2f3a53fdc188f4019a39f74558e23ab35b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell_runtime::begin_endpoint_activation: FunctionTooLong \u2014 herdr::client::shell_runtime::begin_endpoint_activation runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba889b0c57a9b7920ff7df5af1c5458ddb020a3e780b62d7dccdf83d8f52527"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.start_plugin_command: MethodTooLong \u2014 start_plugin_command runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/runtime.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e93840c3050e63c228c1d529cf09525e901de563c8512faa1b9c83fef861f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.apply_pane_surface_patch: MethodTooLong \u2014 apply_pane_surface_patch runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/surface_patch.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2b6145089c07a6c586fbea71d38dbdeb2251dfebe952196de6812bce4f9415"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalState.set_agent_metadata: MethodTooLong \u2014 set_agent_metadata runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/metadata.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de0c70641b37a0c5a503214d47e5bcaba5cf5aa202170e37d9f36de64cefd8a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TerminalState: TooManyFields \u2014 35 stored fields beside 108 methods. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e038baa01d602ee7d84714a1b0bd999c476bac0fedc9106a20d80f0082e15a93"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: herdr::session: TooManyFunctions \u2014 35 free functions. The bar is 30 free functions; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/session.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48f9e822b0c264eeb4e7063569a365666b243c9bf43d00ca12dcaee887fda71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schema/panes.rs: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 81 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/schema/panes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a45f1ca22dd899f127157977927286c729f7280fa0aa057b6add833a7683a07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.handle_raw_events: MethodTooLong \u2014 handle_raw_events runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe64efea15d82577f222af253933f064a1dfa696c742bd021361f42bfc9e642"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/server.rs: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd208aa0713cff97df2fa2cff33e2bca57925b44ad89e023b66a706f9903c510"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::overlays::render_help_overlay: FunctionTooLong \u2014 herdr::client::shell::overlays::render_help_overlay runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b2beb3f8efab11dc2ff2b433c1dc01f25371f4a1f203fee0491a66631d4a15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::kitty_graphics::clipped_placement: FunctionTooLong \u2014 herdr::kitty_graphics::clipped_placement runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a64fc866abb0ed51c3e338163dddba3af5dec5fc883ea542e0f9971dd6fe59"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::api::wait::prompt_agent: FunctionTooLong \u2014 herdr::api::wait::prompt_agent runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"819ef60add37f30f70867fb41916fe3b4dc150c60f7e61b5662b21e48dc71b07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.handle_mobile_mouse: MethodTooLong \u2014 handle_mobile_mouse runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd15ebf25f4fb1470cac6c52c260fcc82da7ca992f1097dfc241358b1ca55c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::persist::restore::restore_workspace: FunctionTooLong \u2014 herdr::persist::restore::restore_workspace runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b8688c935b811237b1d44a8ff3598bf36162640a103c73672343a9fb4a48f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pane/osc.rs: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a42c6e512e608e65da508b5390ba565c5e0ccd91eeeae4b4ab20d658167f698"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/config.rs: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a812b5f36afffc7bbb568b85b92ee2077c7377f122d17cad4123f86ce41f43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integration/actions.rs: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cb9095042507118c20f64d934c7e737834d12c5d267c754c272d804f1023ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ActiveSubscription.new: MethodTooLong \u2014 new runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/subscriptions.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a7d03863d2f5b1e31430f8fcbcb14a7846361c7d2d115614a63afcba6b5c4b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ClientState: TooManyFields \u2014 33 stored fields beside 23 methods. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/state.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3806afcedb4e5c37fd6cd1721802c16404c1e218cbfa17c03e6d11c5007c7bb6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RawInputByteFramer: ClassTooLong \u2014 439 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 2 blocks, lines 200-903. The bar is 400 significant lines; this is 39 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"babb771383c0c71179f75a748783e651b823b6462b628eef0aed2aa9b04dc603"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pane/bindings.rs: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 48 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane/bindings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f607419dd54404a8472a2f716eceaa9cb46eded3e93b867898cc2d175e89253f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PendingEndpointActivation.receive_response_for_boot: MethodTooLong \u2014 receive_response_for_boot runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde7d1b7840b5b106bdb974f4cfd26629304cd5908a0c110484902eb4e2ce6cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::handshake::do_handshake: FunctionTooLong \u2014 herdr::client::handshake::do_handshake runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/handshake.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1568f8cf0f2d889537ab609d73a8a5742b79225bc8bc4f896517208c34bfcd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/kitty_graphics.rs: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb9a8d7b1b41c81ce56911e154bef71db4d75ba59800ed503a3d4a28d652d3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClientShellState.compose_unavailable: MethodTooLong \u2014 compose_unavailable runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5334530fcdfef09a737861000f259cc8fb1e74d5c7a5fa024fda4645433050"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worktrees/deferred.rs: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: App (14-703). The bar is 500 significant lines; this is 34 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8505ab725c803ead790b92d7be68d050caf0740a64b515624e169aada7fb1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ClientConnection: TooManyFields \u2014 32 stored fields beside 13 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/clients.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fee000cb17fc59061e4304b53669977206e9e8f1d839964720b2d5303068c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headless/notifications.rs: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: HeadlessServer (3-748). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/notifications.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"599ca918533345f2dc16fea081a5a8e75d510b786c14515df7608ae87f698c61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/endpoint_sidebar.rs: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf29a58ae608909e03e43079d3e62168ce11f30ae356cbfab2b33642ffd12dbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/io.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"283231e54f64706b1572b5e8d32747c6768e8d7667e8de992c9b4b56ff2bf0fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::server::pane_input::apply_client_terminal_input_events: FunctionTooLong \u2014 herdr::server::pane_input::apply_client_terminal_input_events runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/pane_input.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56627417c3cb1a5940ce4d43cfc74aae1857e8be2aae49c289c96ae1db36954"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: herdr::logging: TooManyFunctions \u2014 31 free functions. The bar is 30 free functions; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"291b7df4d113c404cd9a7d446f71cb1da9cb5a61dde9b9d89bdca54eff09e694"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: C1XtgettcapQueryTracker.observe: MethodTooLong \u2014 observe runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/xtgettcap.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52e15edb4188509f9f770441dbe4f77f6e43ae96f0678822140fa856c85295b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::client::shell::mobile::render_agent_summary: FunctionTooLong \u2014 herdr::client::shell::mobile::render_agent_summary runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c267324f0b5282a0e3a33bf22caaf4b550b8493993affca0146b3c64ae2549"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalState.route_full_lifecycle_hook_report: MethodTooLong \u2014 route_full_lifecycle_hook_report runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36b99c1d9fa45c35dd8bafd0bb3c43f25442818b6cb2405578c0793d89e98de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/endpoints.rs: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: ClientShellState (46-717). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoints.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bd19f5dba8509d6daa5af497291e9d392e82504251d0d12af4f2e4233c1234"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/client_shell.rs: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_shell.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dc172ddfdb1b8fd9ad0ad0b0f085985af4102685dd1d74cece7cf622fd4f7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.start_api_worktree_create: MethodTooLong \u2014 start_api_worktree_create runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e4891a39601b66e4f8c716af9e210c201aa6cc04b97dc71fbc25435f00f0f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: herdr::cli::plugin::install_github_plugin: FunctionTooLong \u2014 herdr::cli::plugin::install_github_plugin runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b9e97748b2e61379dc91a8e24c8fc31ec1f4936a4421838ecd8bf861cbd05f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeadlessServer.handle_client_shell_endpoint_request: MethodTooLong \u2014 handle_client_shell_endpoint_request runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/endpoint_requests.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"326bfe622eddb5e2378a3790760c7f9e4913b6207b070977d5110f13a6c4e246"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (183 shared lines): src/pane.rs:942-1259 | src/pane.rs:2701-3296 \u2014 These two members are variants of one another: 183 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":"src/pane.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c3ae8f602585326116a94abc6c9d7d01bcb62f5b1c67f85a8abf6ecd706760"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (84 shared lines): src/client/shell/overlays.rs:313-422 | src/client/shell/overlays.rs:428-538 \u2014 These two members are variants of one another: 84 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":"src/client/shell/overlays.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"984650bc06dcabfebd9a513cf9be292abeaf974cdaee08bb0d4867cf71573bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): src/app/state.rs:78-100 | src/app/state.rs:103-125 | src/app/state.rs:153-175 | src/app/state.rs:178-200 | src/app/state.rs:203-225 | src/app/state.rs:228-250 | src/app/state.rs:253-275 | src/app/state.rs:278-300 | src/app/state.rs:303-325 | src/app/state.rs:328-350 | src/app/state.rs:353-375 | src/app/state.rs:378-400 | src/app/state.rs:403-425 | src/app/state.rs:428-450 | src/app/state.rs:453-475 | src/app/state.rs:478-500 | src/app/state.rs:503-525 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1647557337702bef3146e4b0fbfd34cf2c842d362d82db4a10f35e0cdee6e32e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): src/integration/targets.rs:372-461 | src/integration/targets.rs:603-651 | src/integration/targets.rs:680-724 | src/integration/targets.rs:726-770 | src/integration/targets.rs:772-845 | src/integration/targets.rs:1303-1347 | src/integration/targets.rs:1349-1389 | src/integration/targets.rs:1391-1429 | src/integration/targets.rs:1431-1475 | src/integration/targets.rs:1536-1583 | src/integration/targets.rs:1661-1696 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f21dedc92f8098b2aa80d27586fe944037c68539fd3268578246cb46d930216"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): src/integration/targets.rs:160-223 | src/integration/targets.rs:260-313 | src/integration/targets.rs:315-370 | src/integration/targets.rs:372-461 | src/integration/targets.rs:926-989 | src/integration/targets.rs:991-1043 | src/integration/targets.rs:1162-1244 | src/integration/targets.rs:1246-1301 | src/integration/targets.rs:1488-1534 | src/integration/targets.rs:1585-1631 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5ac6c4aa84956cf0d66e624fa2439c8cff4ba0bc3f26da697f933e9ac7028f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/platform/fallback.rs:114-127 | src/platform/linux.rs:331-345 | src/platform/macos.rs:226-240 | src/platform/unix_common.rs:527-540 | src/remote.rs:81-95 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e3c6de2c938b230aa602c0840c6f1cd323689a266ba06c449b1bbceff143e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/app/api/panes.rs:177-191 | src/app/api/panes.rs:193-210 | src/app/api/panes.rs:296-405 | src/app/api/panes.rs:411-489 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e858e1414afeaf21ab3c83ecb01fbc05d928fda2efe7a4cb2c37ab08e154872e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/app/api/plugins/panes.rs:17-42 | src/app/api/plugins/panes.rs:50-80 | src/app/api/plugins/panes.rs:89-183 | src/app/api/plugins/panes.rs:191-246 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/panes.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d416b3faf5c414becbffa25a7592fd179a23392e42208f06540e88d34752cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/client/shell/overlays.rs:1260-1317 | src/client/shell/worktree_overlays.rs:7-107 | src/client/shell/worktree_overlays.rs:113-306 | src/client/shell/worktree_overlays.rs:312-418 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce047ce3ba748e7092a8f8e80dc280c943dc0bb601bd15ba4a52a8148cc95d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/terminal/state.rs:1468-1696 | src/terminal/state.rs:1766-1809 | src/terminal/state.rs:1816-1875 | src/terminal/state.rs:1890-1919 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be1f2ab9ae378a67351430de9129590c98ace6e571406cbdb8c290018070060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): src/pane/osc.rs:64-153 | src/pane/osc.rs:170-255 \u2014 These two members are one piece of code written twice and then edited apart: 86 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25631243cc0993edb885f1766ecbc5854372405a29a7ab9b7f1a3056e21ebf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/app/api/panes.rs:1558-1597 | src/app/api/panes.rs:1603-1643 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"018860dbbbb6fafc8a9f530ae3efa439409cff7a5d152b7f74e7a3890a3f1480"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/ui/sidebar/tokens.rs:71-122 | src/ui/sidebar/tokens.rs:136-178 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar/tokens.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a97c2b775ac8977a57d1bb9ca4d653056411826f0136e7761d3ffb62ac4ed7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/client/shell_runtime.rs:572-615 | src/client/shell_runtime.rs:627-674 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6c3dc67e249e9c62c994c85ebc07a1967b8dd12d5de153c96f44939c89ad7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/api/subscriptions.rs:581-620 | src/api/subscriptions.rs:626-662 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/subscriptions.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd01b48a2ad6216ac4c685f8de27b718366770abc3e9f79807556898e906fc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/platform/linux.rs:149-172 | src/platform/macos.rs:151-184 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0024929ff47c7fd73281e22eed2b24ca8e8ea58ae4183d1485acb33772a704"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/protocol/render_ansi.rs:347-379 | src/protocol/render_ansi.rs:382-413 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f613bf881fde38be06fd1bc06b9c150633257cfa1d67bbd16f4aac5b1a2ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/update.rs:1176-1219 | src/update.rs:1446-1488 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"456394eb50a8e22a5296a344b1be27655078c967b6755ffacd0853ef37da14ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/pty/actor.rs:123-153 | src/pty/actor/unix.rs:153-182 \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":"src/pty/actor.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d3f7db98c5ecaf20add4b4dcf18461ed6ab8722dc1a3c346956e0b87ac8b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/client/endpoint/activation.rs:661-688 | src/client/endpoint/activation.rs:694-717 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd4fcceaebe2237879d3bff758a2829aea2416ce538a28f110a498240011f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/app/api/panes.rs:1934-1957 | src/app/api/panes.rs:2039-2057 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"111dd835517cabe40f7a6390cba5cf84200e4a14916dfe6be04bb628d3b622d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/integration/claude_settings.rs:153-185 | src/integration/config_edit.rs:207-243 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/claude_settings.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3909c62d4fdc1c66ffe4a5e9a3936d26200bd1ed39f74537505983132f07b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/ghostty-vt/src/pane_graphics_files.rs:136-163 | crates/ghostty-vt/src/pane_graphics_files.rs:191-221 \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":"crates/ghostty-vt/src/pane_graphics_files.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1e8ede87a9cd5e006b0dcff82bb730c2a99ad320b0b5bcbf257335699d1f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/detect/manifest.rs:982-1009 | src/detect/manifest.rs:1015-1039 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"09947838a49395a351828b3b4b78353a793bd90a931ce6c5e5089dd696a82e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/workspace.rs:869-893 | src/workspace.rs:1111-1136 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee075567caa5da06a9466fd9be31bae2f2224c8a8100c465b8e3153c8c961f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/detect/mod.rs:124-151 | src/detect/mod.rs:153-186 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/mod.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5345f9160f2743601435228bdc2e08df016b28bd8b0e95124ff890ce4881186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): src/integration/targets.rs:124-158 | src/integration/targets.rs:225-258 | src/integration/targets.rs:517-553 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"964e9f51032b0e28cf3bd481161fd0ec76c3ce84c92ae8c0d78a9e65dc453d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/pty/actor.rs:90-115 | src/pty/actor/unix.rs:117-146 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e87621086545d32635186856174af6e3f4de9095485fd42e326cbeef8580e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/app/actions.rs:387-404 | src/app/actions.rs:406-435 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c01fe121c30e100d45fa9fcf176a582c79ab58f9d367348334ece477a7d058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/app/api/plugins/mod.rs:90-111 | src/app/api/plugins/mod.rs:158-175 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab229ca2d9e42378e4082192e94af373d19cb5422427f6eeb76b4b5a552a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/config/io.rs:45-59 | src/config/io.rs:71-85 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0e24640684cfa7227e19dda5e51cdc2d85791d8970de9d37f2f5398237ab30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): src/config/keybinds.rs:866-894 | src/config/keybinds.rs:902-930 | src/config/keybinds.rs:938-969 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fe63b5aaa1795da823a5402c677ead21c53c053d13d5c927d23c018107e3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/persist/io.rs:22-43 | src/persist/plugin_registry.rs:39-58 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/io.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"84608ca09ddac28032e76dadb4c354338c951dbb5ce4b1f8d0834b75f6bc82fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/persist/writer.rs:42-59 | src/persist/writer.rs:61-75 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/writer.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b600661bdfb61cc63f55b52c615f511ab348fdb39a1b021cdee2e24c4384e0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/integration/config_edit.rs:118-139 | src/integration/config_edit.rs:302-318 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f037cc46e69d5d74c805d14e587a9c5b4d085c6355e15b384e14a0986884a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/product_announcements.rs:205-218 | src/release_notes.rs:53-66 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/product_announcements.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc1cadb68b7c7877309c51cd9141d87882a1bdf3856445d8628c3fc2fb6e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/integration/config_edit.rs:249-268 | src/integration/config_edit.rs:274-293 | src/integration/config_edit.rs:324-340 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd226ad1ef30dfb8508e85121c126f535434072ba97f6523892574fc5d3c84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/pane/terminal.rs:2813-2830 | src/pane/terminal/windows_recent_fallback.rs:162-186 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2813}}}],"partialFingerprints":{"codehealthFindingId/v1":"4697d3cc79f7505fc60843b4d97956be299989de05805e34474b00ea6cfbf77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/api/schema/common.rs:169-175 | src/api/schema/common.rs:177-198 | src/cli/plugin/bindings.rs:104-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/schema/common.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eaa196698369eaced5c9177cdabd328e84a157a653116716c1d0d772b07f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/app/creation.rs:418-439 | src/terminal/state.rs:1309-1328 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/creation.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"48578818583eaf2b07b9403160b22274e734e8d1235eb66c1c34619ffc82a634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/cli/plugin.rs:456-473 | src/cli/worktree.rs:10-28 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b90d141b166bf0f1919677fc6db6f6b7e8b8b84907128f4fa4cd0afd24cf2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/platform/linux.rs:1050-1072 | src/platform/linux.rs:1074-1100 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed08e8ae97068f0988130175ebd0c538e07ddf4b9dae4aa4fd1a793b528904d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/app/popup.rs:41-65 | src/app/popup.rs:73-97 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/popup.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"244e1b7cc61b5c6eb5912fadd19199defee9f8edb0bb90c031034303dc0e24f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/pty/fd.rs:59-76 | src/pty/fd.rs:107-126 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/fd.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8010299638f57176dd4e947b67219a5e250b95febedf874ac2d78c0e20f3781"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/ghostty-vt/src/lib.rs:2396-2418 | crates/ghostty-vt/src/lib.rs:3329-3361 \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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"068f99997d1917909d41e522f6fe77d182e004282909470f6f9a65f3db6a7e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/app/api/panes.rs:491-507 | src/app/api/panes.rs:509-524 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c959907b9f1c3aae73faaa429cc81f263e054b6814f5639d6f47dedef6849dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/pty/actor/unix.rs:293-305 | src/pty/actor/unix.rs:338-357 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"385fc4a28bec08c0822c537b0d24e7ea60978413f1d44b450ddd9b245e206cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/client/endpoint/activation.rs:1017-1033 | src/client/endpoint/activation.rs:1059-1070 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb8bab16d83aa4302708f1d21de400290b972d1b3229b7e6fc3a6c06be473b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/integration/env.rs:43-57 | src/integration/env.rs:75-86 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/env.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6963c4e34093fcfe0115865f7bac13747584ac316b4c452e201d23f28f1c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): src/integration/targets.rs:575-601 | src/integration/targets.rs:653-678 | src/integration/targets.rs:901-924 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c238edf96bfd647c58ab511bf5853b943bd2865d628f5833711cee07d0facb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/cli/integration.rs:88-107 | src/cli/integration.rs:109-128 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/integration.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"284e4c882e6e668497a229431de402a86d82c3f78446ef65b6aaf9dadfa26093"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/platform/linux/power.rs:10-24 | src/platform/linux/shutdown.rs:12-26 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux/power.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"885a90a45243034c8687a4d61a79f2bbd94b3c76e9a3d9c3c1e6f1f91c3a78ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/detect/manifest.rs:1346-1360 | src/detect/manifest.rs:1362-1376 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2747dd276632a0c7c269284d098a2dd4704653d5940bc3251c6a35a5a00ba7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): crates/ghostty-vt/src/lib.rs:810-832 | crates/ghostty-vt/src/lib.rs:2335-2354 | crates/ghostty-vt/src/lib.rs:2359-2376 | crates/ghostty-vt/src/lib.rs:2860-2882 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"5833b013cda4234226304d687d019ae363d2e7d91407ad51aba3af96719f5ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src/platform/fallback.rs:60-73 | src/platform/windows.rs:856-871 | src/plugin_paths.rs:28-42 | src/remote/attach.rs:2809-2829 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"79999a35b8d924e08dc26e979797a0d0aa1da28430821d842eed638272799422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/app/runtime.rs:97-122 | src/app/runtime.rs:124-141 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/runtime.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1477606efa1e2dc722a53f17cb8f4554dde5047c050aae8bdf5dcaf4e5c879"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): src/cli.rs:287-305 | src/cli.rs:422-441 | src/cli.rs:443-463 | src/cli/integration.rs:3-22 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b735c425f35ae86c12dc1a3f4a578a9e6b6a139c8d61ab2a96bae8ef35a9bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/platform/macos.rs:525-550 | src/platform/macos.rs:973-988 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"824d2a1e7336b49937cfb6d6473542e8bd1313658fd31afb5d1ed9c13050ca2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/pane/terminal.rs:1578-1592 | src/pane/terminal.rs:1667-1679 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"064810626478a4db94bbdf788b39b6d140156043ea233b18f3426d884d68038a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/ghostty-vt/src/pane_graphics_files.rs:534-554 | crates/ghostty-vt/src/pane_graphics_files.rs:568-582 \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":"crates/ghostty-vt/src/pane_graphics_files.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d4c611897c026998c05acc4832b76e430c5097077386e0488a3a0724b417a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/platform/linux.rs:714-727 | src/platform/macos.rs:953-966 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c949a83df0cb78600b084ceb270c30127a1bd81876460b515751289e910f32d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/ghostty-vt/src/lib.rs:1817-1831 | crates/ghostty-vt/src/lib.rs:3646-3660 | crates/ghostty-vt/src/lib.rs:3662-3676 \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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3909b7966f11f62f5a6c55597c31801ac88b80a4bcb6551cefc144e024daf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/client/shell/overlays.rs:268-280 | src/ui/widgets.rs:15-28 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"98713675add74c64a80b660ec0b873719d51dc215f48a4436b3396d160e9c7c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/pane/terminal.rs:963-983 | src/pane/terminal.rs:1026-1049 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ef1464d625d9b4c420714d62886850851f8b50204a7705f30c3b321db76c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/app/api/plugins/context.rs:302-321 | src/app/api/plugins/context.rs:328-345 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/context.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0752034198c0f182d38b9c65b2d36dd7f76d7e066a372890d73fc508484e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/platform/linux.rs:633-652 | src/platform/macos.rs:474-492 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81abc366d80dcde4c76e1cb5a7d2e4ac42689000d01cd13908b1b73c6ff210f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/remote/attach.rs:1421-1441 | src/remote/attach.rs:1443-1462 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61915aa2079a4f420d9a65a5d97363b79cb7ee4e640851e5aa642b68c00a432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/cli/plugin.rs:52-62 | src/cli/plugin.rs:79-92 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8a520d673d9093ae04f14ef923e24efcb85123b0ac9a0d7a087b27910a583a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/cli/plugin.rs:603-619 | src/session.rs:461-482 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3e2cd821b1908cfdc289ded506a45c48ff4bd7bf0b020d6a05e68cc25a4498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/integration/config_edit.rs:18-33 | src/integration/config_edit.rs:40-58 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3df6a29198b9900179030fc80b1feebb3066167f204abf8ef57f89afaac38b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/pty/fd.rs:18-27 | src/pty/fd.rs:30-39 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/fd.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3388231b1f7ee36bc69a2fc8986912bfd16bcdd882e68e308422945019caa3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/remote/attach.rs:324-344 | src/update.rs:2556-2576 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"92017b4da16c5a7954b715c9d5c50dbbbce695f72a051ff720bdca9dc800235d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/cli/plugin.rs:759-772 | src/cli/plugin.rs:785-796 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"0243655c2309170da9fec48cbccf67473f28628b54753125402764831cf8c195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/update.rs:2097-2111 | src/update.rs:2131-2149 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3a29f6d595aab62641bd07170bc93c2ca0554dd01af4adf1ff8947a3776689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/app/api/workspaces.rs:23-37 | src/app/api/workspaces.rs:87-102 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/workspaces.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be2b5dfff5b42915c7cf94083be0969b3ec59d2ec6917a046b127867d5e0787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/cli/plugin.rs:1323-1336 | src/persist/plugin_registry.rs:21-34 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf230a345d3b2c571a93fb4f34e8ee12b117270822fa9404fe6cb44ef53b9053"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/platform/linux.rs:654-663 | src/platform/linux.rs:1164-1169 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2c82f4270061762302cbf489efcc174e6dac318e22262b3c118fa9195cad78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/app/state.rs:977-993 | src/server/headless/client_views.rs:498-519 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ec1e196b54e9130f9d59dda0f74c6543c788e560aeb4dfc485b92e9c1aa634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/cli/plugin.rs:657-671 | src/cli/plugin.rs:673-685 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcee7c771d1d906cd9725ab4bdfd00903405dec2abc4e2e70cf4318476e7e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/update.rs:339-360 | src/update.rs:626-648 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ef32ceffc93f608f23d0d117afb455e8db98d87410107aec801ffc53545e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): src/pane/terminal.rs:985-1004 | src/pane/terminal.rs:1006-1024 | src/pane/terminal.rs:1051-1069 | src/pane/terminal.rs:1071-1089 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"79564e2f327342442e514e3bde77e7fefef3cd7306be276d04c8249e107787bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/app/agent_resume.rs:367-381 | src/platform/mod.rs:651-662 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_resume.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3db9d717a34631fe716922d0a8baf1e1e429b34eb0b1cab7bc7a57e25383fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/terminal/state.rs:1068-1081 | src/terminal/state.rs:1088-1104 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fc845dfc6c4fdb4a17ec639501b511132310299bb455802c6f1aa283e6aa7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/pane.rs:2388-2414 | src/pane.rs:2432-2452 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"86084379070de71714613dd4d7adba8df34b18ddcbe8f0247b8600a850dafb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/ghostty-vt/src/pane_graphics_files.rs:502-517 | crates/ghostty-vt/src/pane_graphics_files.rs:519-532 \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":"crates/ghostty-vt/src/pane_graphics_files.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0a2fd1a1c347a45aaa36c861e4e9fb565bb7e0ee5bdfb6e30547407d5fc840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/ui/panes.rs:167-179 | src/ui/panes.rs:181-188 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/panes.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a04e00c9241529a13fa7d59edb848d3f2bf67db97424933c87bc66fa732d517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/app/api/plugins/context.rs:392-410 | src/cli/plugin/bindings.rs:136-154 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/context.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebad7d521c7686e00fcaacd3dbe7ce434aee1dd61dbdc4546b67c0c871cf6b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/platform/windows.rs:152-165 | src/platform/windows.rs:170-179 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131d1b9ead203a975bf241d7cc9b16270e67a937c4a99545c7e3eaa8cf497dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/server/headless/client_views.rs:697-712 | src/server/headless/client_views.rs:718-734 | src/server/headless/client_views.rs:740-755 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/client_views.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1a0527c8fd7e8e7b7dcd2ac8c8684c17bd247b75dfc87912a62f363a6dcf90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/client/state.rs:470-482 | src/client/state.rs:490-502 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/state.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"98465600d339d1c5c30881f5b6cda6658cbcabee0f6780a5d282dce466fc8132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/detect/manifest_update.rs:403-411 | src/detect/manifest_update.rs:430-437 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest_update.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"277929fc4841ed23fb5b9da8bb897ff746559ad43eb39eedf6f9e2205b382815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/integration/claude_settings.rs:472-478 | src/integration/claude_settings.rs:480-486 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/claude_settings.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8297f59290477d48834219df1c8148f84d4b8aba1b34d675acb63d17bfff67fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/layout.rs:659-678 | src/layout.rs:680-698 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/layout.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b74a6eb5762ba96290a71ef5743605c74f468b4813ba3811fa5a97c2df11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/logging.rs:61-87 | src/logging.rs:94-103 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1525bb4434c4c7b8429f49bd49de933094effc4a5f490f19a9942316247a2532"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/ghostty-vt/src/lib.rs:2378-2394 | crates/ghostty-vt/src/lib.rs:3561-3573 \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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":2378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b02559fdd402a6a0c57a38035a3683debe11532e27d768ec6716930b05c5222"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/pane.rs:1703-1718 | src/pane.rs:2234-2246 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"69608d1f28040e257a48168263d07fc3b222c706a7e46619f28264f606da8596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/app/api/tabs.rs:36-45 | src/app/api/tabs.rs:132-140 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/tabs.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aba492c172253ddde6a560c46a861179af9b6e807391b3cbb497b310c759cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/integration/config_edit.rs:618-628 | src/integration/config_edit.rs:630-638 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"0470b6f0ed240d37d7a6a25a64135a92cfcd51ce406afd3e91051667a28d3b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/pane/terminal.rs:3012-3021 | src/pane/terminal.rs:3027-3037 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":3012}}}],"partialFingerprints":{"codehealthFindingId/v1":"44647d29748ee0967c42c51842a46972c9da1d089d0f81c9ae1b0f226a3beb0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/platform/linux.rs:826-841 | src/platform/macos.rs:1180-1195 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"75158947e7b628410bdf6d87daa34ff3bf22f31f9978043200b502414f97971a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/terminal_theme.rs:94-106 | src/terminal_theme.rs:108-115 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal_theme.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"435c870d5fea9940265c0d66fb73c90fe6de35293a3c17170a86de48d6329ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/worktree.rs:245-259 | src/worktree.rs:266-278 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/worktree.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"7579fc9f4abd89e77d7b3859419a02a596200aa74d5c11c7a5be6efcbe075bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/app/agent_view.rs:178-191 | src/app/api/plugins/manifest.rs:599-607 | src/app/api/plugins/manifest.rs:609-617 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_view.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5dacfd93e5eaf90087b1c819479de537f93345ab7a77e7b3beebcd4093a479"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/app/api/plugins/manifest.rs:322-333 | src/app/api/plugins/manifest.rs:344-355 | src/app/api/plugins/manifest.rs:359-370 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/manifest.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb24406ac35c50805cdf4c66f2f975a28b4c553a142b054ce6a9df3af1d10d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/platform/mod.rs:444-454 | src/platform/unix_common.rs:311-320 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/mod.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"03413278688a3ae5538b307e1a6cb04068ebbd60b0fdad3832175e13e8ff8700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/cli.rs:582-600 | src/cli.rs:602-615 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddeb437d698c1cf85a9a54cc243d86cb258e1723b25731c1658a44bbceda32a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/pane/terminal.rs:3523-3535 | src/pane/terminal.rs:3541-3553 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"6893ccc28fbf8ddd7eafa82d05d10efc2a2a5db5f0cd1b2923c1b211cac1171f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/server/headless.rs:1065-1077 | src/server/headless.rs:2871-2883 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5d9bf89169d7e1c926c1407fe27e7899d49b38fed8e6c9db8a3641377c8460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/cli/api.rs:56-66 | src/cli/server.rs:53-63 | src/cli/server.rs:87-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/api.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19729a2ad9cc1c0d37466df8900a53b7fa7922ec3cdc290a0c629ac4dd9fc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/platform/macos.rs:1197-1207 | src/platform/linux.rs:843-853 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"96344f950ab861eec32572c51c452527c18b86d95acad07d7ada901b907addac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/config/io.rs:122-128 | src/persist/io.rs:79-85 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6404346542d7f6804b37298bb3b8442b571741ec121de73af0957e59b3f0e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/platform/macos/shutdown.rs:77-89 | src/platform/unix_common.rs:324-333 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos/shutdown.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"163a78411d72f947392781b10059f93dadeba3e5ca65c00990015dfff70bf493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/cli/agent/bindings.rs:103-110 | src/cli/pane/bindings.rs:170-178 | src/cli/pane/bindings.rs:284-294 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent/bindings.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5364c16274e3b24bed48695eee3df51aba3737de37e4efa88729636a01e91d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): crates/ghostty-vt/src/pane_graphics_files.rs:276-282 | crates/ghostty-vt/src/pane_graphics_files.rs:327-333 | src/integration/config_file.rs:139-146 | src/platform/windows/config_backup.rs:44-52 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/pane_graphics_files.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"412854cc561e30aa7c114f51b7cfb7cd7acd40fe307d7ff58abba14092eeca3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): src/cli/pane/bindings.rs:153-160 | src/cli/pane/bindings.rs:296-302 | src/cli/plugin/bindings.rs:51-57 | src/cli/workspace_bindings.rs:30-37 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane/bindings.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b2cabe4974ac461dfd1c31bd73950651e25756dbb537e8d36869a116adf26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/detect/manifest.rs:1378-1384 | src/detect/manifest.rs:1417-1424 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2d8d59988b4d662942bf151021c80ae45af2e70112060c423ab2f6d1c6a90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/workspace.rs:738-754 | src/workspace/tab.rs:219-238 | src/workspace/tab.rs:293-309 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6c01c4871d70de1a907d3aa28349705e66725d49f634da840a5ef77b74e660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/platform/fallback.rs:50-58 | src/platform/unix_common.rs:429-437 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"965598f7d88c80e366ea59501f5fffe7c4acb6615acea4a4e3de4613b878d10a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/cli/pane/bindings.rs:200-210 | src/cli/agent/bindings.rs:63-69 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane/bindings.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"124a65c87a0131ff52fe5f446e27fe3851fe2c7d7f74cb8c91d13a06373243ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/platform/linux.rs:879-887 | src/platform/macos.rs:693-701 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"260e76e21405e444bb88c8869582b5d1fed9cf246c84d896cd01876158a9cf8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/protocol/surface_delta.rs:106-111 | src/protocol/surface_scroll.rs:267-271 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_delta.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df7408aae55f6b5d9f2a1cd1257a6c4a36b42f387742d074ab7e5d5d3c65a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/app/creation.rs:37-46 | src/workspace/tab.rs:537-547 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/creation.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a531ca75ab1181fb3151fdfd991d4c0d57dc0c8b8efbd50c5371b4335513d197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/pane/terminal/windows_recent_fallback.rs:223-234 | src/pane/terminal.rs:3624-3632 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal/windows_recent_fallback.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"261dca3b835af55bede32b3cb22b7dcda29b892d6ae2698eeaa5b86822671154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/layout.rs:557-565 | src/persist/restore.rs:1003-1011 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/layout.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f497432e1cdd91ea95ffdeb7cba3ae8f33877e4ca841208e5b9078009f75d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/client/shell/state.rs:966-975 | src/product_announcements.rs:63-70 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ada2024fcb1069a1feb133fbd7572727eae8dad74cc7c69fd1595093885738"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/app/actions.rs:1286-1306 | src/raw_input.rs:926-946 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd6dc654aa0681e4b0afd4d43e2d2eecdaddcf15f37a904397c71cc09d40cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/app/tab_bar_status.rs:233-239 | src/protocol/render_ansi.rs:910-916 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/tab_bar_status.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1423b16c0333ea1194da612f9885b4477c9e6c609f977f3d916eb540b1fe4eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/input/parse.rs:371-376 | src/terminal_notify.rs:58-63 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/parse.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3ed6f61083285d4768c9bf90ba569d04eb559bc58194d8c271bea4511a6c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/platform/linux.rs:136-143 | src/platform/unix_common.rs:486-494 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"262bbf79feb830631431aa2fa6fe5c97cb311d6c39b2a8ad43df3119014f9297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/api/server.rs:1034-1046 | src/server/client_commands.rs:27-38 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"94099f8034ba8309ef5db34b266fbd66a8ceadf27b7a2ada4d79114981cb2ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/app/agent_resume.rs:343-354 | src/ui/panes.rs:40-51 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_resume.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"081234f68455e12a93ab8eb782046acc2cd90a993ca52dbcffe35a41dbd8a2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/cli/agent/bindings.rs:86-91 | src/cli/pane/bindings.rs:212-217 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent/bindings.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad6691399de4d7202475754ee8ee303ae181f3830f8cf066f7294c0ddfc6463"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/app/api/plugins/runtime.rs:330-335 | src/platform/macos.rs:744-749 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/runtime.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da0be0ceca92fd90eaca2e129e44e6e0a1d7db7ebea6606e0ea63e2c1b8660e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/cli/agent/bindings.rs:33-39 | src/cli/pane/bindings.rs:162-168 | src/cli/plugin/bindings.rs:25-31 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent/bindings.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bd8a63b22f23f0e976fd042f7fdf7e25e8e7e3b4ee859e6a3f547ccafcba26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/cli/plugin/bindings.rs:17-23 | src/cli/workspace_bindings.rs:39-45 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin/bindings.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06187692be5a9112d9b71dfd8c5a7db297f320e79386d2838f99d587b6aed00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/workspace.rs:706-722 | src/workspace/tab.rs:258-274 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d722844a3a2ceeab0db24e5a694202d37b3799805f3e1760c4210e7c404185"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/cli/pane.rs:108-114 | src/cli/workspace_bindings.rs:47-52 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0eb427119b36df67af36ef170f61b24012964746072e0564e9790808aaf59e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/detect/manifest.rs:1480-1486 | src/pane/terminal.rs:2910-2915 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c8199f5bcb49ac5080818e934219cb2ff0752dbad1728ca917d22ac8dd374b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/pane.rs:2354-2370 | src/terminal/runtime.rs:133-150 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52d6c0a462e7607502781dd35bb0368c517f9e064e66e0157da5361b65a95d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/app/api/plugins/panes.rs:351-355 | src/app/creation.rs:72-75 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/panes.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"4953261286066b32915cbb6a4c7d4d06cc4ec9185184c43b8292b37f751f4df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 2): src/pane.rs:1177-1256 | src/pane.rs:3185-3264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:1177\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"421e23315bf2ca1c5249c9d3ec76947e9b21ccf6978fa546adbc9a1fa1737f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): src/app/state.rs:554-613 | src/app/state.rs:616-675 \u2014 both copies are in the same file, so extract the block 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060custom\u0060 to \u0060\u0026crate::config::CustomThemeColors\u0060 in one and \u0060\u0026crate::config::ModeThemeColors\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fe068247e86b0b04505ef37945c13455ca7786eb6d662a6a199d955a5f71d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/pane/osc.rs:111-150 | src/pane/osc.rs:215-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane/osc.rs:111\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d69f02199f3b146c9199611a9700c0e4000845990b8dea375b8b2cb5f68b821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 2): src/client/shell/overlays.rs:773-802 | src/client/shell/worktree_overlays.rs:155-186 \u2014 before extracting anything, compare \u0060src/client/shell/overlays.rs\u0060 and \u0060src/client/shell/worktree_overlays.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/worktree_overlays.rs:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb45c3eea4a6665b047a5ab54a64bb155c45f3996a58011f2aac4e9f940009d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/app/api.rs:1335-1364 | src/server/headless.rs:3427-3456 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cfd64833fc517579c7e85adb321f7c2bdbb68858eeb5cbc610e18925599470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/client/shell/overlays.rs:318-347 | src/client/shell/overlays.rs:433-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs: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":"src/client/shell/overlays.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c7cfe22056b48f91b620b3085d851cddb7bfb1d8b7d935fb8e782e0bd6874e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/pane.rs:1151-1175 | src/pane.rs:3157-3181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:1151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"229dc834c9ab62a333563800da398cf15c4edd04dea0f66a505996edaa9e1546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): src/config/sidebar.rs:326-349 | src/config/sidebar.rs:379-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/sidebar.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"54011787a89091a0cb9b445f56580302e831b3b8ca29f748128cbbcbd24699f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/pane.rs:2595-2618 | src/pane.rs:2800-2823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:2595\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c48c7ead6ab56941b1f272d37bf206d46e849b72e7bcf5b130403969d4a98b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/pane/osc.rs:77-99 | src/pane/osc.rs:183-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 \u0060src/pane/osc.rs:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab735b4bbd8c59ad1020433562fe0ef74e04fd37bab9d30fad68d729204d188d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/server/headless.rs:1856-1878 | src/server/headless.rs:1907-1929 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:1856\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ca7ee4d4121887b1a21d23a5dbfe9ba40c163d455777df6fb0639d19018db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201340 lines \u00D7 2): src/pane.rs:1061-1095 | src/pane.rs:3026-3065 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:3026\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb6a1ba83648578bef0ea3cf47a23a4fab1ef1e4e888b872f04b5bdd6b407e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/client/mod.rs:927-946 | src/client/mod.rs:1120-1139 | src/client/mod.rs:1229-1248 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/mod.rs:927\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74bfa1bde3cb9cd32775f17d3c52a0552b5068bb4c612d3ac52992dc9a4298e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/client/shell/endpoint_sidebar.rs:562-580 | src/client/shell/sidebar.rs:437-456 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/endpoint_sidebar.rs:562\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/client/shell/endpoint_sidebar.rs:559\u0060 calls \u0060and_then\u0060, \u0060as_deref\u0060 and \u0060src/client/shell/sidebar.rs:436\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd5eae15f0be8f353fa1afefda2fa8f48749690fbbe2060867d55f93b927f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/client/shell/overlays.rs:361-380 | src/client/shell/overlays.rs:477-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:361\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c545c7302926a04bdb88d2d06b891b7ec046665f04d977f9493d6c8eb66b863a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/pane.rs:1109-1126 | src/pane.rs:3083-3102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:1109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dcdc1f9f0754e55f0db841f729a0c7bf3deb32cd9c992782fc68fc00622fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/client/shell/worktree_overlays.rs:83-101 | src/client/shell/worktree_overlays.rs:282-300 | src/client/shell/worktree_overlays.rs:394-412 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/worktree_overlays.rs:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktree_overlays.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"45103691309a908c1dcb8a7c85f3b693ac356b243b8041f8c8d4e6bd7034cc2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/client/shell/worktree_overlays.rs:60-78 | src/client/shell/worktree_overlays.rs:367-385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/worktree_overlays.rs:60\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktree_overlays.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecf17044323ea88b0748d2daa16f82107ede01b4f18de14f6e8bc18c98d673a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/config/keybinds.rs:876-894 | src/config/keybinds.rs:912-930 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/config/keybinds.rs:876\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ed3a3207f81134f160b65e335ab5ef803a3f44b7833ffa110da3c79a71bc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/api/wait.rs:458-475 | src/api/wait.rs:487-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1fdda92a41de18f56a54bba0d5965a0258f5517c3f0b004da8b5de895bb812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/app/agents.rs:278-295 | src/app/agents.rs:351-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/agents.rs:278\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agents.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa42ccfff7ef2ff97fadb898aa34e05adf4909901bc3287cf7aaf7eca654296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/app/api/panes.rs:1559-1576 | src/app/api/panes.rs:1604-1621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060PaneReportAgentParams\u0060 in one and \u0060PaneReportAgentSessionParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"10891cdc691a1e44f0b0ce00bd34ebefa731133d6cda34a07690855fa0364f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/client/shell/input.rs:250-267 | src/client/shell/input.rs:283-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/input.rs:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"936e7da419d81faa0a7967df5891e0cc5d0257122a26ccb89dedb11ecd9a3064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/integration/registry.rs:162-179 | src/pane.rs:2035-2050 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/registry.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"146d4caa7f3d7b478ea6dbd79892bd4d19790870e1990c62a35844e34eed5ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/server/headless.rs:771-788 | src/server/headless/client_views.rs:522-539 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:771\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fddfba2ea441ef78133ad3f8a557a71f366ddf59457b897db20ea47a2974dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/server/headless.rs:2361-2376 | src/server/headless.rs:2459-2476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:2361\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b332275081ecfa4cea7b55ed138644c9e9a6bf16171360d2220c65cc32af0715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/config/keybinds.rs:1058-1074 | src/config/keybinds.rs:1092-1108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/config/keybinds.rs:1058\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/config/keybinds.rs:1055\u0060 calls \u0060normalize_key_combo\u0060, \u0060combo\u0060 and \u0060src/config/keybinds.rs:1089\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"2185153dbe3eb9f1f64b3b6e31e0e178c252bd4fa7296133e77110e9234ec4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/protocol/render_ansi.rs:633-647 | src/protocol/render_ansi.rs:1037-1053 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/protocol/render_ansi.rs:633\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d001d9a275855926fb693655284d7f80775cfaad9d553cacbf458b25b624d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/remote/attach.rs:325-341 | src/update.rs:2557-2573 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b77bba5a551062006083d7fa0f0f591eb7f504fb999c1e7af75c748fd821a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/client/shell/endpoint_sidebar.rs:217-232 | src/client/shell/sidebar.rs:173-188 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/endpoint_sidebar.rs:217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26c500b8e8a3f711915c0fc491dbcedd8e6af0161cf66f205d54ae39b4790e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/client/shell/overlays.rs:1290-1305 | src/client/shell/worktree_overlays.rs:391-406 \u2014 before extracting anything, compare \u0060src/client/shell/overlays.rs\u0060 and \u0060src/client/shell/worktree_overlays.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:1290\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5e0f18a5ede3b13f47d5d12a5bc73fd4acebbba8c78cd58a9442805a2ca1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/persist/restore.rs:650-665 | src/persist/restore.rs:669-684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/persist/restore.rs:650\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbcaa012a70413c30f7828846a436241a91b0c8d005e382a720fbb11e5ef466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/workspace.rs:872-887 | src/workspace.rs:1115-1130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/workspace.rs:872\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc32049f14566fae7d35675d8e28b30f34971bbcc63b5aa460ee844e4e249df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/app/agents.rs:279-292 | src/app/agents.rs:311-325 | src/app/agents.rs:352-365 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/agents.rs:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agents.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6000d5e6c5a328d714dbaa17c3aadfdf0805638371af71841f52c71f058141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/app/actions.rs:285-298 | src/app/actions.rs:338-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/actions.rs:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac3495a595c25592cb679ac93f67845e07d89f992ee58480a4d10e7c9a7f178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/client/endpoint/activation.rs:463-477 | src/client/endpoint/activation.rs:479-493 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/endpoint/activation.rs:463\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5031a7e9a18c533b1c6891912b964e4364d546d86b17c620f4e2cb1584bce176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/client/shell/endpoint_sidebar.rs:247-260 | src/client/shell/sidebar.rs:208-222 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/endpoint_sidebar.rs:247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6cc22e9da0d734386ead5b8a652bd252342fcaf7fe33d7bcdabf6cd11ceee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/client/shell/overlays.rs:119-133 | src/client/shell/overlays.rs:196-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4782b48eacccbd2283d3daba14dd9f631a5142ae3a178641e1baeddd28127f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/update.rs:1205-1219 | src/update.rs:1474-1488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/update.rs:1205\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e804ac78a6c5fe5e393949253de23f867269dd6d4d0ebefcfb06adb0c5ce9422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): src/platform/fallback.rs:115-127 | src/platform/linux.rs:332-345 | src/platform/macos.rs:227-240 | src/platform/unix_common.rs:528-540 | src/remote.rs:82-95 \u2014 before extracting anything, compare \u0060src/platform/linux.rs\u0060 and \u0060src/platform/macos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c87d623cc99258cf40864b515a636764a65f3d58866889f7c043f3117ff63d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 4): src/app/api/panes.rs:581-590 | src/app/api/panes.rs:671-684 | src/app/api/panes.rs:723-732 | src/app/api/panes.rs:1412-1421 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/panes.rs:581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_pane_neighbor( \u0026mut\u0060 in one and \u0060super) fn handle_pane_focus_direction( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4557fe6e21c36984da9cfb76b81df11f12a7ff700b316a821adfbddb6a9785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/ghostty-vt/src/lib.rs:1916-1929 | crates/ghostty-vt/src/lib.rs:2459-2472 \u2014 both copies are in the same file, so extract the block 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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86e2c5e4cae8e536377756b76ab34c7310b7af7b7aee25b896cf3aaf00e64ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/app/api/panes.rs:1019-1031 | src/app/api/panes.rs:1051-1064 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/panes.rs:1019\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fff94b5223156992cc29e896dfdbc0decdfa06117546d7f857c027dea7d08f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/client/mod.rs:1551-1564 | src/client/mod.rs:2100-2114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/mod.rs:1551\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"3365721eb1955226f1540fe395c262283297f7a6fa8c96a52bc013a101b52a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): src/persist/io.rs:28-41 | src/persist/plugin_registry.rs:46-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/persist/io.rs:28\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/io.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e75ddfa79b4651270c4422f803770c2e4391ece8fdfd7623c75b7e21f14b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/persist/restore.rs:609-622 | src/persist/restore.rs:711-724 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/persist/restore.rs:609\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/persist/restore.rs:709\u0060 calls \u0060Some\u0060, \u0060set_agent_name\u0060 and \u0060src/persist/restore.rs:608\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9369e0ad153cc2460779f4fd0f1820c0260b125ace6a7767212a28988c712b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/platform/unix_common.rs:622-636 | src/platform/windows.rs:1125-1139 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/platform/windows.rs:1125\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/unix_common.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf45ba819b1abfc32675fe39d14fbe5f38436fc3ffffde4c946637c5782a8a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pty/actor.rs:126-139 | src/pty/actor/unix.rs:156-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pty/actor.rs:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab207da0c21a9bcb6fcd8f8b033408cc53d5763f995ccfe552ecc0fd8d4bbda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 6): src/app/api/panes.rs:510-518 | src/app/api/panes.rs:579-587 | src/app/api/panes.rs:612-621 | src/app/api/panes.rs:668-680 | src/app/api/panes.rs:721-729 | src/app/api/panes.rs:1410-1418 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060PaneLayoutParams\u0060 in one and \u0060PaneNeighborParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3173a306b3dee13d3b16eafdaffc64adace6b7680ba52a6f7ff64c12b03b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/integration/targets.rs:441-453 | src/integration/targets.rs:793-804 | src/integration/targets.rs:821-832 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:441\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 after the matched lines, \u0060src/integration/targets.rs:835\u0060 calls \u0060remove_file_if_exists\u0060, \u0060remove_legacy_bash_hook_file\u0060 and \u0060src/integration/targets.rs:455\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd582aa0f053c45a8204ddfd618eed96aae8213e167fc6a84656f51cd0a35a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): src/app/api/agents.rs:320-328 | src/app/api/agents.rs:391-403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/agents.rs:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_agent_explain(\u0026mut\u0060 in one and \u0060super) fn handle_agent_send_keys( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/agents.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ec0c9f00c6886d130698252e7ac2524059099069b4689824d5b1a248a8a6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/app/api/panes.rs:1585-1597 | src/app/api/panes.rs:1631-1643 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/panes.rs:1585\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060PaneReportAgentParams\u0060 in one and \u0060PaneReportAgentSessionParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fc2f147200b0af96839cabb4d25e76185a363b6ccef7d3e187b24a8b3ee79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/client/shell/mobile.rs:157-169 | src/client/shell/mobile.rs:531-543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad97f4b86f01260b1a927cfc51c9aea8708abb85ec25813be3b4ea50f1960614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/kitty_graphics/surface.rs:900-912 | src/kitty_graphics/surface.rs:918-930 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4929d6564874895b7369eadcd5fbe3351274fc238203e0628747a5aa1daf1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pane.rs:2567-2579 | src/pane.rs:2771-2783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:2567\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/pane.rs:2580\u0060 calls \u0060clone\u0060 and \u0060src/pane.rs:2784\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d97758f4eb6c51aa059a4998b1034b011c7a6c78320fb3dec10d6adae20e1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pane.rs:2581-2593 | src/pane.rs:2784-2796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:2581\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/pane.rs:2580\u0060 calls \u0060clone\u0060 and \u0060src/pane.rs:2783\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f51aab88839d60b6e89bc6da1bc2eecdb778f3e0009100b512cb6ea85c09af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/platform/linux.rs:1015-1027 | src/platform/macos.rs:887-899 \u2014 before extracting anything, compare \u0060src/platform/linux.rs\u0060 and \u0060src/platform/macos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ee4fb2378510125f03117613a865ea6ecc7e26e0842217092eaf60b56f7881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/terminal/state.rs:2227-2239 | src/terminal/state.rs:2260-2272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f08c65350ce4eaed0692c3af39aa7ebc47b519ef5593d8fd1aebad796cc330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 10): src/integration/targets.rs:429-436 | src/integration/targets.rs:611-619 | src/integration/targets.rs:687-698 | src/integration/targets.rs:733-744 | src/integration/targets.rs:780-788 | src/integration/targets.rs:806-816 | src/integration/targets.rs:1310-1321 | src/integration/targets.rs:1356-1367 | src/integration/targets.rs:1397-1408 | src/integration/targets.rs:1438-1446 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:429\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integration/targets.rs:607\u0060 calls \u0060join\u0060 and \u0060src/integration/targets.rs:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab428c05794c6ad857bd47feac9a20a21fc6ab83d914ad3e8e71d15ffbf883e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 4): src/integration/targets.rs:275-281 | src/integration/targets.rs:387-393 | src/integration/targets.rs:941-952 | src/integration/targets.rs:1006-1012 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d758d440624fcfdbcacb5761bd88f5906ac27cd4867a65bd8a6fe5f31c91b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/update.rs:1201-1211 | src/update.rs:1329-1340 | src/update.rs:1470-1480 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/update.rs:1329\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"05968034a7e04f0009c4a79a681df8418d765a890001c2252f1632b60701e09b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/app/agent_resume.rs:273-284 | src/app/api.rs:617-628 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/agent_resume.rs:273\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_resume.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8775c9835e1d41c2557069dc415572446f1d088514d93c2f9ed34848258279e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/client/shell/overlays.rs:383-416 | src/client/shell/overlays.rs:499-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:383\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bf6015af5d1fa2ccba0d63a8fb9ee577c720ada8c8b788c13f02875451e93f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/detect/mod.rs:140-151 | src/detect/mod.rs:175-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/detect/mod.rs:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/mod.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc391bd7ad6c741e9bfea0f9b67f9a183a68ee2405fafec44b73f696dc19f1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/platform/macos.rs:526-537 | src/platform/macos.rs:974-985 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaff2855c3084dae60b6876d9a35ec22ab1a069771af62a847e774f78c3da22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/platform/macos/power.rs:40-51 | src/platform/windows/power.rs:27-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos/power.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a530c21dc5e49ae27eab6aee5fa1c9eb548888c1124d3bb53bf28d94922436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/platform/unix_common.rs:250-261 | src/platform/windows.rs:382-393 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/unix_common.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"957a95d8b6f1209ccf13a01611e3270f0ff0c2b96188c521ea78f835daf06552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/platform/windows.rs:2344-2355 | src/platform/windows.rs:2465-2476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/platform/windows.rs:2344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"202f08519ca745a45ce397029be85d1830a9be57c859cb3d7b25b7062a4255d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/remote/attach.rs:2256-2266 | src/remote/attach.rs:2336-2347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/remote/attach.rs:2336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"055783464974b6769ab6eb357d0f42ac5d07388f958507260938b598adecb8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/update.rs:2098-2109 | src/update.rs:2132-2143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/update.rs"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd25238cbcbdb98a4102b0ba7d9503e1125086a3e3664616ea951743d5de729a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/integration/targets.rs:752-762 | src/integration/targets.rs:825-835 | src/integration/targets.rs:1329-1339 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:752\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"b284455537e46dc78f58d0d49dd946d79e79c75ce3ac37a554b8ca7ee30cfe3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/platform/macos.rs:565-575 | src/platform/macos.rs:1037-1047 | src/platform/macos.rs:1070-1079 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd04f0ffbe95c9bb44d177aa0b9630bea9d7b8aa32b8b7bdacdea39dc798b100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/client/endpoint/activation.rs:663-673 | src/client/endpoint/activation.rs:695-705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/endpoint/activation.rs:663\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 \u0060self\u0060 to \u0060crate) fn update_host_focus( \u0026mut\u0060 in one and \u0060crate) fn update_host_theme( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba498807f48a68d1ec5058158db04e44ec39ff6a1b0ea4942bfe3fb96137f157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/client/shell/composition.rs:38-48 | src/client/shell/composition.rs:162-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060crate) fn compose( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c717f3d08d88f9e23e07494607771065ddf5c82916b682382cf24b9f3b860f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/client/shell_runtime.rs:417-427 | src/client/shell_runtime.rs:463-473 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ff81cf3380d1174fd8c69e1e4260ae4be2fbb2f30e013e190debc48b4b7a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pane.rs:976-986 | src/pane.rs:2911-2921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:976\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3ca706151ef492a93eb3b22057cb739fd33901d7a74989db5b46a53953a5bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pane/osc.rs:66-76 | src/pane/osc.rs:171-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane/osc.rs:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/osc.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff2dd99fbb9b15e4bdf61bdbd400248d219721d3a538dc6526222c643611d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pane/terminal.rs:3188-3198 | src/protocol/render_ansi.rs:758-768 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":3188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbf83ccb95572615757807c3944c8332fbec17f5df36d0c27929e6e99d71bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/platform/fallback.rs:63-73 | src/platform/windows.rs:861-871 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/platform/fallback.rs:63\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f41bb4f51baa0886f0a2c3035a46a07264ecb8274b64ac5135d553b9e5fe6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ui/sidebar/tokens.rs:112-122 | src/ui/sidebar/tokens.rs:168-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ui/sidebar/tokens.rs:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar/tokens.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f2f615269797d7ac277b6ee015d1cb335e59a98005c6e55635bea237b72c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 11): src/integration/targets.rs:428-433 | src/integration/targets.rs:609-615 | src/integration/targets.rs:685-694 | src/integration/targets.rs:731-740 | src/integration/targets.rs:779-784 | src/integration/targets.rs:1308-1317 | src/integration/targets.rs:1354-1363 | src/integration/targets.rs:1395-1404 | src/integration/targets.rs:1436-1442 | src/integration/targets.rs:1543-1549 | src/integration/targets.rs:1666-1672 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:428\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integration/targets.rs:607\u0060 calls \u0060join\u0060 and \u0060src/integration/targets.rs:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"052cc431c2219fc1391b699620ca4489bc74fae7cc3e8397782a28c6cce51b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/app/api/panes.rs:752-761 | src/app/api/panes.rs:924-933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/panes.rs:752\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a6b3413cea529dfe849357338e94f2cc0e8350655410e72d6ed461d1edbc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/client/shell/overlays.rs:1308-1317 | src/client/shell/worktree_overlays.rs:409-418 \u2014 before extracting anything, compare \u0060src/client/shell/overlays.rs\u0060 and \u0060src/client/shell/worktree_overlays.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:1308\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c81e2bcd400a2e2c3fb8daacfec4fdd4b4cdd4537ec9d8eb6bc7139522b6cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/client/shell_runtime.rs:606-615 | src/client/shell_runtime.rs:665-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell_runtime.rs:606\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e218afbe66e4f702346a517b12102a254da795f17574a2d0c1c24cca2f8cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/integration/config_edit.rs:251-260 | src/integration/config_edit.rs:276-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/config_edit.rs:251\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d6e2f250d36406060c41278969b0237d1bf332eb6cf960ece8c5ba1fce4b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/persist/restore.rs:596-605 | src/persist/restore.rs:696-705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/persist/restore.rs:596\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecb2215b61a6e3a2d562bd90f74540223fa914192b25096e8e1350487902aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/protocol/render_ansi.rs:662-671 | src/protocol/render_ansi.rs:719-737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/protocol/render_ansi.rs:662\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91b9545776e59fd1423458a4d06c5dd852ccedf1a3f1abe82d9947ca6001510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/server/client_accept.rs:27-34 | src/server/headless.rs:287-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/client_accept.rs:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_accept.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26962c34f47486644c04e2ea4cbf86d270d4321f26f3c5b694d4bae17130cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/server/headless/client_views.rs:190-198 | src/server/headless/client_views.rs:336-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless/client_views.rs:190\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn focus_shell_client_on_tab(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/client_views.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"df100e70a3c4b9660ffe5a59c82c842f8912848224f3483d222dfa1b66e02d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/workspace/git/config.rs:203-212 | src/workspace/git/config.rs:271-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/config.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba07d14c13fb2e4571dd58ad5e0d60b7597bda946ed1b021fa13ae93a8a178b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/workspace/git/config.rs:282-291 | src/workspace/git/config.rs:500-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/workspace/git/config.rs:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/config.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3730403d33538ca0f526e9639874c59d4a269697b70c853e80d7fa2fe806690c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/integration/targets.rs:177-185 | src/integration/targets.rs:280-291 | src/integration/targets.rs:332-343 | src/integration/targets.rs:392-403 | src/integration/targets.rs:951-962 | src/integration/targets.rs:1011-1022 | src/integration/targets.rs:1179-1190 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:177\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08fc5b8e5facbfca53b34d0a6df86642c0f0fda265178d1bf2b49e59182c4f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/app/api/panes.rs:178-186 | src/app/api/panes.rs:194-202 | src/app/api/panes.rs:297-305 | src/app/api/panes.rs:412-420 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_pane_clear(\u0026mut\u0060 in one and \u0060super) fn handle_pane_scroll(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4448d1b58e3b753abad265e4905699fa3830589eef536db50543455123588e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/integration/config_edit.rs:250-258 | src/integration/config_edit.rs:275-283 | src/integration/config_edit.rs:325-333 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff030ff033fed6157e681c82859ed52c51deca931915ee7847d370d1e6f87d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/pane/terminal.rs:2786-2795 | src/pane/terminal.rs:2814-2823 | src/pane/terminal/windows_recent_fallback.rs:163-172 \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":"src/pane/terminal.rs"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a03ed6bb18eb2f772657f1c3a2d7831c05424b891feb05cdc1278dd2e16ea9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/plugin_installations.rs:47-55 | src/plugin_installations.rs:118-126 | src/plugin_installations.rs:196-204 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/plugin_installations.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9346aae4ef2383aed197f822d73a9dbc760654b8d619380307201a284129510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ghostty-vt/src/lib.rs:3652-3660 | crates/ghostty-vt/src/lib.rs:3668-3676 \u2014 both copies are in the same file, so extract the block 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 \u0060crates/ghostty-vt/src/lib.rs:3652\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":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"337fc406629934c612b795690fa7edaaf04cc4295b8b0c66dec6ef9e2eb999e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/cli/agent.rs:43-51 | src/cli/server.rs:215-222 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli/agent.rs:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba47180732343458addf1017cb5ba1d6d3765c946db69ad5fe70becd1489cf59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/cli/pane.rs:31-38 | src/cli/plugin.rs:36-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli/plugin.rs:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb0b8fdb0b962bbbd76a6ae33d65e5b3e7e4b682b0171be80df73b3a5198b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pane.rs:2536-2544 | src/pane.rs:2706-2714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:2536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/pane.rs:2533\u0060 calls \u0060map_err\u0060, \u0060other\u0060, \u0060to_string\u0060 and \u0060src/pane.rs:2705\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8e769b6fba4222ebe10a9d9c52bd4916c4ce7d95102425f2e4bdf3e51573e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/platform/linux.rs:150-158 | src/platform/macos.rs:152-160 \u2014 before extracting anything, compare \u0060src/platform/linux.rs\u0060 and \u0060src/platform/macos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/platform/linux.rs:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060temporary\u0060 to \u0060\u0026std::path::Path\u0060 in one and \u0060\u0026Path\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d61a61698229d7253c5968f77568af33cc49d483800b1dfdeb995a9da024a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pty/fd.rs:68-76 | src/pty/fd.rs:118-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pty/fd.rs:68\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/fd.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d2b5f7a1d112c9e8ae7cfdf7aac4bcfb397d990266633f31ed23d5c82f325b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/headless.rs:805-813 | src/server/headless.rs:816-824 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:816\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa3458ea660edd224d4a2817a45ada3e495550e9c3627b8884c569340205f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 17): src/app/state.rs:79-100 | src/app/state.rs:104-125 | src/app/state.rs:154-175 | src/app/state.rs:179-200 | src/app/state.rs:204-225 | src/app/state.rs:229-250 | src/app/state.rs:254-275 | src/app/state.rs:279-300 | src/app/state.rs:304-325 | src/app/state.rs:329-350 | src/app/state.rs:354-375 | src/app/state.rs:379-400 | src/app/state.rs:404-425 | src/app/state.rs:429-450 | src/app/state.rs:454-475 | src/app/state.rs:479-500 | src/app/state.rs:504-525 \u2014 all 17 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"137ae00114b65d3bb1db7c337be9e24ce0eb4e649dcf05758e4965707de9abad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/app/tab_bar_status.rs:311-318 | src/app/tab_bar_status.rs:320-327 | src/app/tab_bar_status.rs:329-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/tab_bar_status.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aea70be1fc3ef0a52df305611f26020c27881c6933c6a15131c96e9b999e847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/client/shell_runtime.rs:504-511 | src/client/shell_runtime.rs:604-611 | src/client/shell_runtime.rs:663-670 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell_runtime.rs:504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/client/shell_runtime.rs:513\u0060 calls \u0060present_frozen_chrome\u0060 and \u0060src/client/shell_runtime.rs:612\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2993beff4f579b996243790abc247bf41cf1fc84af5086d10a75a39a4ebf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/app/actions.rs:700-707 | src/app/actions.rs:2109-2116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn close_workspaces(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"388e1788bbfe134fbfbf4a0debf7f381acf977163c5209f4ea7f943710d18b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/app/custom_commands.rs:312-319 | src/app/custom_commands.rs:456-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn open_focused_scrollback_in_editor(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/custom_commands.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f177e1375e6d43b36710a49c2b4ee6c9d11424134de702b288f67328a786105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/client/shell/endpoint_sidebar.rs:393-400 | src/client/shell/sidebar.rs:294-301 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d561959ba26e3ade69b4cb7334d38d6c55e5cbfaab18a292dc2d5eb2292e5269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/client/shell/state.rs:1621-1628 | src/client/shell/state.rs:1650-1658 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/state.rs:1621\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. 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 \u0060self\u0060 to \u0060crate) fn set_pane_surface(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"143cd69f64ea41d75fa708fb968e73741727f18528aca2dc75edfa8a54f66ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/integration/targets.rs:1501-1508 | src/integration/targets.rs:1605-1612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:1501\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5159db816d0415da052f8182920e14f7fb342f0233964a199e3b60208164cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/pane.rs:1007-1014 | src/pane.rs:2942-2949 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca17eb3d591c6b1b4373ea52f7242e5110fb2980d19ebe30f9acbf24f1b2817f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/platform/windows.rs:185-192 | src/platform/windows.rs:227-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/platform/windows.rs:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"997250e5fa8253083ab0cc294ccfc1c6cc1b2456930f59eb9060f484e51d7797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/platform/windows/clipboard_image.rs:190-197 | src/platform/windows/clipboard_image.rs:199-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows/clipboard_image.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"04efe04230757ef09a8b0e3e7ae9fa0d5aa56a847a8cea6c9fec6c2470e2df48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/headless.rs:1316-1323 | src/server/headless.rs:1818-1825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:1316\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee557c1f38b163f2aae7d2d5ff6a0beaf9fa71cd6ae4942e1bba7990d8ad439c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/headless/lifecycle.rs:183-190 | src/server/headless/lifecycle.rs:200-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless/lifecycle.rs:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c0f506f4b70f507bbc0618ca93858306a5ef1616dc4eee90013afc49f2f545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/app/api.rs:837-843 | src/app/api.rs:883-889 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api.rs:837\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 \u0060self\u0060 to \u0060crate) fn accept_current_focus_with_api_events(\u0026mut\u0060 in one and \u0060\u0026mut\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 after the matched lines, \u0060src/app/api.rs:890\u0060 calls \u0060Some\u0060, \u0060send_pane_focus_event\u0060 and \u0060src/app/api.rs:844\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aab0f2711bea5dcd724652d6b7e25d95d2af588d122cf3839adb452955cf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/app/api/agents.rs:276-283 | src/app/api/agents.rs:313-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_agent_read( \u0026mut\u0060 in one and \u0060super) fn handle_agent_explain(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/agents.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0875bf4868956f3ca297764389f7f6902c3ca639d357dfb484bcfae604cf9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/app/api/plugins/manifest.rs:399-405 | src/app/api/plugins/manifest.rs:425-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/plugins/manifest.rs:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/manifest.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87a89ee71b6085c483c89dfaabe213fa13c7a4fba7bc79738ebf4decbbfa5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/app/api/plugins/mod.rs:91-97 | src/app/api/plugins/mod.rs:159-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060PluginListParams\u0060 in one and \u0060PluginActionListParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58dfd41fdd9df8436c86704a978bd8e0572ae6c9e8768880bc3f7a56b5e2073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/app/custom_commands.rs:368-374 | src/app/custom_commands.rs:448-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/app/custom_commands.rs:375\u0060 calls \u0060custom_command_env\u0060, \u0060pane_host_terminal_appearance\u0060 and \u0060src/app/custom_commands.rs:456\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/custom_commands.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"37889a624509978229733e4aae077ff728e0eab4dd1b976feccaf305fd0f1562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/client/endpoint/activation.rs:504-510 | src/client/endpoint/activation.rs:541-546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/activation.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d65d9579ae5fd6a9c67dc107f646db7fdf695fce4019aecbf955c5736caef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/client/shell/overlays.rs:769-777 | src/client/shell/overlays.rs:1166-1172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:769\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5d3a9295cc551ad57f9140e9eadc10fa3cc6cc672653b1988421fdda87f8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/pane.rs:943-948 | src/pane.rs:2864-2870 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:943\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"763e899c43e96efc6521848538504df96957fae3d31581c8472de30a55151765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/product_announcements.rs:211-218 | src/release_notes.rs:59-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/product_announcements.rs:211\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/product_announcements.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ef9c158ac589f3dc8014f393e975a4d136b172b36198e08f2e4f99f7364442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/terminal/state.rs:1645-1652 | src/terminal/state.rs:1892-1898 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/terminal/state.rs:1645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"213f3bb68ecff91084f84ecd32dc301e3eb828c756bb8ce6122dcaf4fb9efb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): src/integration/targets.rs:176-181 | src/integration/targets.rs:279-287 | src/integration/targets.rs:331-339 | src/integration/targets.rs:391-399 | src/integration/targets.rs:950-958 | src/integration/targets.rs:1010-1018 | src/integration/targets.rs:1178-1186 | src/integration/targets.rs:1500-1505 | src/integration/targets.rs:1604-1609 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:176\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a418721fb1be462076dcdb21abd2d020a314ddbda08c05c8aaa5216965f03c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/terminal/state.rs:1648-1653 | src/terminal/state.rs:1785-1790 | src/terminal/state.rs:1840-1845 | src/terminal/state.rs:1894-1899 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"250db0a14d05e8da45d967cc246eef9cd674cb09c5048e2b6bc2b0c263796f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): src/integration/targets.rs:175-179 | src/integration/targets.rs:278-285 | src/integration/targets.rs:330-337 | src/integration/targets.rs:390-397 | src/integration/targets.rs:949-956 | src/integration/targets.rs:1009-1016 | src/integration/targets.rs:1177-1184 | src/integration/targets.rs:1261-1265 | src/integration/targets.rs:1499-1503 | src/integration/targets.rs:1603-1607 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integration/targets.rs:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integration/targets.rs:274\u0060 calls \u0060write\u0060, \u0060make_executable\u0060 and \u0060src/integration/targets.rs:1174\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bc3ab5f638d85efe057d636585615a852780bfc3b43d8f2d934a962dc506c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/app/api/panes.rs:1917-1922 | src/app/api/panes.rs:1935-1940 | src/app/api/panes.rs:2040-2045 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060PaneSendTextParams\u0060 in one and \u0060PaneSendInputParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"948fdf8fd2fe553223dd65db08eea3beb45dd9b3b02c0a20a059f68e0e49833f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/app/api/plugins/panes.rs:19-24 | src/app/api/plugins/panes.rs:52-57 | src/app/api/plugins/panes.rs:105-110 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/panes.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0255fd5dfd3f9a0bc53b2f6eed5fb489515fc3b5854f388ca16ab0c2853043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/client/shell/agent_sidebar.rs:209-213 | src/client/shell/endpoint_sidebar.rs:396-400 | src/client/shell/sidebar.rs:297-301 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/agent_sidebar.rs:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/agent_sidebar.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab4cdcfeb8d05cfcf5cc0cad95809fe9d18ddd0abd851afd52f8c8c005801ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/app/actions.rs:500-505 | src/app/actions.rs:566-571 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/actions.rs:500\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8576f840bac41be9b5d5d40af8cd1c56ccdbb197dbb9be5356f4f3f6dd0d5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/app/api/plugins/panes.rs:53-57 | src/app/api/plugins/panes.rs:204-208 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/panes.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a298feb008a34415cf1cd0432b567826295239a6fec5fc5d6883ac2d42dcb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/integration/config_edit.rs:119-123 | src/integration/config_edit.rs:303-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e574f47fd11a1b13398f75be3f2b17b7acf0a95266f2a0fef1a04cbc466f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pane/terminal.rs:2380-2390 | src/pane/terminal.rs:2670-2680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"2705679a449ef1dfc4c93375630af0d6f34f7705510016f00451836e5f1653af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/app/api/plugins/manifest.rs:517-525 | src/cli/plugin.rs:1287-1295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/manifest.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"968b966db9ef4b3337813d0805f5fc115858ecdda827699e7d85d46cca955f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/cli/pane/bindings.rs:45-51 | src/cli/plugin/bindings.rs:43-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane/bindings.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"811f97c023003ec9af06bb63129f762579da6f9437b825790773a447a76b53ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/cli/pane/bindings.rs:304-309 | src/cli/workspace_bindings.rs:62-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane/bindings.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9e97f991631ddc4de6ce32bd5534d473b8eb164427d467d6bb79d1693d4439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/platform/fallback.rs:168-173 | src/platform/linux.rs:306-311 | src/platform/macos.rs:201-206 \u2014 before extracting anything, compare \u0060src/platform/linux.rs\u0060 and \u0060src/platform/macos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce9d6a9f8200ad5155c5209fcad82554ff0891fc26972c322bb072740a4ae87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/platform/linux.rs:319-325 | src/platform/macos.rs:214-220 \u2014 before extracting anything, compare \u0060src/platform/linux.rs\u0060 and \u0060src/platform/macos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49f5b0550ff9728351c560d945912b3b5be7b85cfd9df1f78b786ae437619f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/product_announcements.rs:220-227 | src/release_notes.rs:164-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/product_announcements.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"54266cb362eed87b4be548301f7c7fb8df2766639c3b01d7d879658efba312f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/server/client_transport.rs:1211-1230 | src/server/client_transport.rs:1256-1275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/client_transport.rs:1211\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_transport.rs"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d568677e0620391ebf1eeb168b7387992f134b6fd6479be575eeb263b9a55ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/pane.rs:2435-2452 | src/pane.rs:2482-2499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pane.rs:2435\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c5e1cbe95a1137fc742702b317045dca15eb43580209c7e18a82adb2dfc274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/app/api/panes.rs:1826-1838 | src/app/api/workspaces.rs:287-301 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/workspaces.rs:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/app/api/panes.rs:1839\u0060 calls \u0060is_some_and\u0060 and \u0060src/app/api/workspaces.rs:301\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b1cd27e91426e7749605a4d5f17192ca00d2ed97e2f7404757441e80f77ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/api/wait.rs:116-130 | src/api/wait.rs:743-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/api/wait.rs:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/api/wait.rs:115\u0060 calls \u0060api_wait_timed_out\u0060 and \u0060src/api/wait.rs:742\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/wait.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8abb23ffccce61cd2d018b3784b841aa953868c7fc65ba9787ca690f9bc2b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/client/shell/overlays.rs:1128-1140 | src/client/shell/settings_overlay.rs:53-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:1128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e7b72616e15400e786b95e0d7d3630f5db0792d92487d5047c5bf11bc5c2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/client/shell/settings_overlay.rs:304-317 | src/client/shell/worktree_overlays.rs:10-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/settings_overlay.rs:304\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/settings_overlay.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d45c3d8a410867df177f27fc38242e780ee7977190b0661a8528e0c66d27d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/app/api/panes.rs:511-518 | src/app/api/panes.rs:580-587 | src/app/api/panes.rs:613-620 | src/app/api/panes.rs:669-680 | src/app/api/panes.rs:722-729 | src/app/api/panes.rs:790-802 | src/app/api/panes.rs:1411-1418 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/panes.rs:511\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn handle_pane_layout(\u0026mut\u0060 in one and \u0060super) fn handle_pane_neighbor( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba65e9f5f16e31cf4b02758ccfa9ab9f9a74c73b99cd1b80ae4ffa7700c5ac55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/client/shell/worktree_overlays.rs:10-20 | src/client/shell/worktree_overlays.rs:117-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/client/shell/worktree_overlays.rs:129\u0060 calls \u0060filtered_indices\u0060 and \u0060src/client/shell/worktree_overlays.rs:21\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktree_overlays.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ac3f0492015f45369a15447a6a6d20133ebf87813dc14244b184915a7ae275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/cli/plugin.rs:463-473 | src/cli/worktree.rs:18-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli/plugin.rs:463\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/plugin.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01ec0e0d4d3c70eb8e83ed04af75685f2a110af2d50817ff0bd9abc59840dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/app/mod.rs:1036-1044 | src/app/mod.rs:1048-1057 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/mod.rs:1048\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"99598b701c40c7b79178829c7a4ab1f979b9056779a932a97c68b8e4b4e761b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/headless.rs:2449-2457 | src/server/headless.rs:2538-2546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:2449\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":2449}}}],"partialFingerprints":{"codehealthFindingId/v1":"91040f5c92c7f568b4564d2b1862311b90b4f05b985a97f1229511ca4e2e3c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/integration/targets.rs:127-135 | src/integration/targets.rs:228-236 | src/integration/targets.rs:263-271 | src/integration/targets.rs:375-383 | src/integration/targets.rs:929-937 | src/integration/targets.rs:994-1002 | src/integration/targets.rs:1588-1596 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c44f3f6750acac6065633c6de66a041e6e16ac233fcde51342b7f42e5dfb174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/api/subscriptions.rs:596-603 | src/api/subscriptions.rs:636-643 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/api/subscriptions.rs:596\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/subscriptions.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab25bb324c692edf0b15e2740fb1c82a14b2ff167d3d05d61b98adabf6a2bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pty/actor/unix.rs:297-305 | src/pty/actor/unix.rs:349-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pty/actor/unix.rs:297\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"4133c1d1cc2b538b3908775d18ce6d2ea8b0b1d88bad92aeb8441d2ab680ccb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/config/io.rs:47-54 | src/config/io.rs:73-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/config/io.rs:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa51aa05a11694ffeb164c160cf13e81f79ab66fe8e1f361bfad28552e14645c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/headless.rs:2421-2427 | src/server/headless.rs:2512-2518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/headless.rs:2421\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"372ae062a8aa9ef7aeb0f0a55839b582de271dfaa7a12f7dddd2a9c0c1cfc329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/app/api/plugins/context.rs:260-264 | src/app/api/plugins/context.rs:285-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/app/api/plugins/context.rs:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/context.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5e5238406c5b794aca6ac7ea6309df538c15bce0ed699882441c9b6db080b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/client/shell/endpoint_sidebar.rs:456-460 | src/client/shell/sidebar.rs:308-312 \u2014 before extracting anything, compare \u0060src/client/shell/endpoint_sidebar.rs\u0060 and \u0060src/client/shell/sidebar.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2238e71e8a5f936e886a4d08eb460277de26e81999dc937232980f4e745245e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/client/shell/overlays.rs:661-666 | src/client/shell/worktree_overlays.rs:28-33 \u2014 before extracting anything, compare \u0060src/client/shell/overlays.rs\u0060 and \u0060src/client/shell/worktree_overlays.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/client/shell/overlays.rs:661\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"237e06d31f9646e622efa48a3d5b29cebcb41c6dc89952b20ee5b0e6c702cdd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/kitty_graphics/surface.rs:338-342 | src/kitty_graphics/surface.rs:495-499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn take_pending_cleanup(\u0026mut\u0060 in one and \u0060\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e80ea0441749ec72c43863d31f19ed51f272cbbdc3aa35742d0451a098c4915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): scripts/windows_input/Native.cs:345-355 | scripts/windows_input/Native.cs:356-377 \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":"scripts/windows_input/Native.cs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da02a58c59eee20f3289c066da766987782f032908a5f83c512932c593c0db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): scripts/capture_key_matrix.py:193-266 | scripts/verify_suspicious_keys.py:153-219 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/capture_key_matrix.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7ff609742e5d1d0230140bb9ebd4023de7986cdfe09428c288dd9a1ee8b41f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): scripts/changelog.py:194-209 | scripts/changelog.py:217-234 \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":"scripts/changelog.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c083b6401ae019f55b096b9590c93e7201387603f6c2fe78f79f82a4b97a1963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): scripts/capture_agent_screen.py:244-257 | scripts/capture_agent_screen.py:261-279 \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":"scripts/capture_agent_screen.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"00185b4fb65e62edab2c9625a1ae216bca8d5e06ddab16e19105ff9af74d0286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): scripts/changelog.py:511-523 | scripts/changelog.py:567-579 \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":"scripts/changelog.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6164568565a85aad776422c88d313b53ea63198fefa9d857bdcc39e0085ec527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): scripts/capture_agent_screen.py:324-332 | scripts/capture_agent_screen.py:336-345 \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":"scripts/capture_agent_screen.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a5bcda9e56dfd041cf98a90335947adfcc2754aaff25c99992147e4c5b59a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/capture_key_matrix.py:142-147 | scripts/verify_suspicious_keys.py:105-108 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9ecd182029557aae2f13b98d0097a497be8e96e319dd64bc197e2962c28299"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/capture_key_matrix.py:86-89 | scripts/verify_suspicious_keys.py:62-65 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f888d5a94141ed84e5cd7e47f34019d46e09fcd5b3c0655297caa0cf8d950686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): scripts/capture_key_matrix.py:151-159 | scripts/verify_suspicious_keys.py:112-120 \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":"scripts/capture_key_matrix.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccecf5295770fcca3c6204f8ebcf25ae45d46943bebcae1c76e05628426c86bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/capture_key_matrix.py:111-114 | scripts/verify_suspicious_keys.py:87-90 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffccee113dd437a6e85ca7a05bb65c8d1deab7324f989dcd3477182406dfba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/windows_input/Native.cs:346-352 | scripts/windows_input/Native.cs:357-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/windows_input/Native.cs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"90990fcbb6e3c74742e7484e5f31cb68fba3cb25e2266f7fd62d06899727d9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201343 lines \u00D7 2): scripts/capture_key_matrix.py:222-264 | scripts/verify_suspicious_keys.py:178-218 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5babbf639b8724b0917df1893e211e2ee126958921272982e5f4fb02943ac4c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): scripts/capture_key_matrix.py:66-82 | scripts/capture_keys.py:34-50 | scripts/verify_suspicious_keys.py:42-58 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"scripts/capture_key_matrix.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce174ec7cf7e03742890f1622d811882e5781fc50fe780b92e4cc06ea3812857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): scripts/capture_key_matrix.py:93-106 | scripts/capture_keys.py:54-67 | scripts/verify_suspicious_keys.py:69-82 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7da37069e27cb4cf5013d303337d92760fa09fa05bfdc605da978b95d2b8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): scripts/changelog.py:588-600 | scripts/changelog.py:614-627 | scripts/changelog.py:643-656 \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":"scripts/changelog.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d07b309d6640aaa5c8c5d5cb3726b7a1bcf4ac518e961fbd309c75bf595786c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/capture_agent_screen.py:244-255 | scripts/capture_agent_screen.py:261-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"scripts/capture_agent_screen.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"610031b7d45802f0bd486afebd5745c19d7f678c20767f9d2de10c81fdb63196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/changelog.py:511-519 | scripts/changelog.py:567-575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/changelog.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4c21b375d1dd3386dd56a80f2b520674cb50126e74d4df4caa1f5a6705c87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/capture_key_matrix.py:134-138 | scripts/verify_suspicious_keys.py:97-101 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d39db799571ff5b2a5d7f01088b8bcbba79647d33f1b2edd7767e7cc428bab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/capture_key_matrix.py:163-168 | scripts/verify_suspicious_keys.py:124-129 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/capture_key_matrix.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff323e574fee20dec7e893c818be0d5e9df1f20d3d3134f2aa86119339d90f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): scripts/capture_key_matrix.py:172-189 | scripts/verify_suspicious_keys.py:133-149 \u2014 before extracting anything, compare \u0060scripts/capture_key_matrix.py\u0060 and \u0060scripts/verify_suspicious_keys.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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":"scripts/capture_key_matrix.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8f33df9c5a294bf85ae509d31588c0a8338a2776a0f3bc6466c6b21dcf776e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): scripts/changelog.py:135-139 | scripts/changelog.py:145-151 | scripts/preview.py:36-42 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \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 \u0060source_path\u0060 to \u0060Path = PROTOCOL_SOURCE_PATH\u0060 in one and \u0060Path = ENDPOINT_PROTOCOL_SOURCE_PATH\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":"scripts/changelog.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adf64925c38b3e9c3e93d8e3a908848510b94a691b6c39fe212b7a890f2bbdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/package_windows_conpty.py:47-51 | scripts/package_windows_conpty.py:117-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/package_windows_conpty.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253e0150f90199baf4e26fc6eb43dcff65b2dc7b8e4ed05173ae830fa2d2bf9"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ghostty-vt: ghostty-vt: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c398aa169d161d71ae1054f00224084072b3ebcf6693e28495604245f5f9f36d"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: V2 resends the latest state after a failed delivery: This test starts work it did not wait for (\u0060resend\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 700))\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":"src/integration/assets/opencode/herdr-tui-session.test.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e4e8634b4d097839b1c6b3413dae57d4260813b1a2a0683037ab2bbb98baa3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/mod.rs: src/client/mod.rs changed 46 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 262 in herdr::client::run_client_loop at line 437. 35 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22f5295d77fa955f6a71934f755aa1967e8d8951b11bd2b5ef89af025216b35"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless.rs: src/server/headless.rs changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 133 in HeadlessServer::handle_server_event at line 1849. 33 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa3ce42f02315e1c40bb5a10480ec7fd9dee58505782f0e6d25bb9b7ba673d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/mouse.rs: src/client/shell/mouse.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 269 in ClientShellState::handle_mouse at line 683. 11 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/mouse.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mouse.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1a8d2ec333d11c4730d7866ff2eff1b965542a74e024c70bc9023d383ce138"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/config/model.rs: src/config/model.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 177 in KeysConfig::local_profile at line 718. 3 of those changes were fix/bug commits, and the other 17 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/config/model.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/model.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"247b557fa3cde6257db032549983cfd427478e81604c2c2daba6fc9068652d88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pane.rs: src/pane.rs changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in PaneRuntime::spawn_command_builder at line 2687. 39 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pane.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane.rs"},"region":{"startLine":2687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d145b4c8fb86677cf528f531cb55c54fe9309cecfc84eebf0a621a2a8f9cd9cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pane/terminal.rs: src/pane/terminal.rs changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in herdr::pane::terminal::ghostty_collect_dirty_patch at line 2617. 30 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pane/terminal.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1d3eaecfb65a51bed0e770c0020cdec8992bb6b76057177ca571082d5efcdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api.rs: src/app/api.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in App::handle_api_request_after_internal_events_drained at line 935. 16 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"5341cbc5135566b11dd3d0e6af6ce716241e5a2a24868bbf66d72d66f461df61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/state.rs: src/client/shell/state.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in ClientShellState::apply_active_snapshot at line 1299. 19 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/state.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/state.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae44a1f37d0fb411eeb0f87190aac50995096d0c877b379136ae43e93ea8414d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/mod.rs: src/app/mod.rs changed 45 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in App::apply_live_config at line 861. 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf83ff0d5abbc89ecdd954bf31b03a0fbd50a0e48941486a0e042e60c5d7d8ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/actions.rs: src/client/shell/actions.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in ClientShellState::handle_endpoint_result at line 499. 12 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/actions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/actions.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d180da71351a24e23bc2ddb690471c2f10c6a2daf9de4d140f3ada8232b2209"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/main.rs: src/main.rs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in herdr::main at line 511. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f4bd697ce412d5d6af59543f06e4a0481b7a56e4bd52631de4c8462fa4ed51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/overlay_input.rs: src/client/shell/overlay_input.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 127 in ClientShellState::route_overlay_key at line 479. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/overlay_input.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlay_input.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"844172b34195f95a063c1016c13a6e478ac226fc45375552e181df4403ba66df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/raw_input.rs: src/raw_input.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in RawInputByteFramer::flush_timeout at line 476. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/raw_input.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/raw_input.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d8c01921c01b8b4cc6d07e5d2a5858080c612f72df57186021d14080ce1e00"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/composition.rs: src/client/shell/composition.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in ClientShellState::compose 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/composition.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/composition.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e140680ccd4b87cbfabe8d809985d6835f7a520129a7af39804340bc2df913e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless/render.rs: src/server/headless/render.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in HeadlessServer::render_and_stream_with_graphics_limit at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/render.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd359b31e9f2c8f7a110741cb6d4a227c1e7d8c8b14a19723099f15ba1cc7bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/panes.rs: src/app/api/panes.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in App::handle_pane_move at line 947. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/panes.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ff8e53457196e64274f06b40ee733563d6ab8bdf2d0390cdc1ba750a26e8ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/actions.rs: src/app/actions.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in AppState::handle_app_event at line 1392. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/actions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/actions.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66b1f6033f63e54a2f334f82bc98eb4c2300e1bc8cfb6a6ea7fa27075baf555"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/terminal/state.rs: src/terminal/state.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in TerminalState::set_detected_state_with_screen_signals_at at line 359. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/terminal/state.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/state.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50d375a3608722ab200d873c06cdd290890c4bedf818d3fe644956c323385c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/client_transport.rs: src/server/client_transport.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in herdr::server::client_transport::client_read_loop_with_endpoint_controls at line 1002. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/client_transport.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_transport.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"d569f0de10b5dbb9b35f71cc7d76e10cd92b4cadd63f67ac15597b1ac94f65e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/config/keybinds.rs: src/config/keybinds.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in Config::validated_keybinds at line 499. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/config/keybinds.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/keybinds.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38f67675c5b5235992b723fb8341c4dba3ad39d6908aa71bd1b6bfdea32d013"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/input.rs: src/client/shell/input.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in ClientShellState::handle_raw_events at line 223. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/input.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/input.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbfd4266cde440fde5f64bad4c61ec362e78cc09c767a1145005f7672129445"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/input.rs: src/client/input.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in herdr::client::input::unix_stdin_reader_loop at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/input.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/input.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbddfe0e62005ea5001012bffdbc080a14ee345fc4a19a41e2eb8310c0fe780e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless/retained_surface.rs: src/server/headless/retained_surface.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in HeadlessServer::render_retained_pane_surface_and_stream at line 227. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/retained_surface.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/retained_surface.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6888870bc97a1cd010b6a05800db177928ece01d9db8b26db361962f32b321e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless/notifications.rs: src/server/headless/notifications.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in HeadlessServer::handle_internal_event_with_forwarding at line 301. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/notifications.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/notifications.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a8a88fb6603833b7479fccf3d66c41366ef2e1674a323fddf7a27a2ececea2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/remote/attach.rs: src/remote/attach.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in herdr::remote::attach::bridge_child at line 3287. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/remote/attach.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/attach.rs"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d877d210a43babfc47e3ea34c2058df9fc3feedfb0d01cdbbc4c2e2488d265df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/state.rs: src/app/state.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Palette::with_overrides at line 553. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/state.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/state.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cb76f2220981f35e0d80cf248c49948459a96c5f539c010ae5a987e87e0962"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ghostty-vt/src/lib.rs: crates/ghostty-vt/src/lib.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Terminal::viewport_link_regions at line 1442. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- crates/ghostty-vt/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ghostty-vt/src/lib.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b336f70ba7a062a259eda808b0477eaafd2df5ea7982e62f227d1e9de971d71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/windows_input/report.py: scripts/windows_input/report.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in report.verdict at line 166. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- scripts/windows_input/report.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/windows_input/report.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d577d4cf7b31bbbab64a4e417adccbfaa04367553bc588f8b7df861c784df1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/ui/sidebar.rs: src/ui/sidebar.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in herdr::ui::sidebar::resolved_token_spans at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/ui/sidebar.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/sidebar.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c447861fc9e3ed16870f49af048228e2bd39d72127d4c7fdf3240e09e972f7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/api/server.rs: src/api/server.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in herdr::api::server::handle_connection_with_stop at line 328. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/api/server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fcb6f384e3ffccc0d2e8daaa8e2cdc9b19fba4393bbe119268f57c4970afc6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/terminal_setup.rs: src/client/terminal_setup.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in herdr::client::terminal_setup::consume_host_keyboard_probe_responses at line 261. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/terminal_setup.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_setup.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedfdf4fa688d58c39e6ad5ebe6515213f4c264dccefbc08b9451caa161eebd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/overlays.rs: src/client/shell/overlays.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in herdr::client::shell::overlays::render_navigator_overlay at line 704. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/overlays.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/overlays.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2a258840c53750554c30da1459dd0c6d4a7a94f13d0ebc580bc27c52b2ad66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/integration/actions.rs: src/integration/actions.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in herdr::integration::actions::uninstall_target at line 326. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/integration/actions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/actions.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eebe2e82d3122d8841b57d1191071ee73caa82850580125458d8dd9bb058424"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/plugins/mod.rs: src/app/api/plugins/mod.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in App::handle_plugin_pane_open at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/plugins/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"908b2a7b79851523be560497bb0e1ba9519e59ed61eb56011b8bbb3e4dd467f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell_runtime.rs: src/client/shell_runtime.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in herdr::client::shell_runtime::begin_endpoint_activation at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell_runtime.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell_runtime.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efed81d90e461bbe05b37975e11ad34b6c1a90f5f362ce866da2e58507ae075"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/kitty_graphics/surface.rs: src/kitty_graphics/surface.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in herdr::kitty_graphics::surface::collect_scene at line 575. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/kitty_graphics/surface.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kitty_graphics/surface.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"881bbea88f1886636d622e9c653849f6a4c37d4cb2360f94ee58d68c51b8f921"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/endpoint_sidebar.rs: src/client/shell/endpoint_sidebar.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in herdr::client::shell::endpoint_sidebar::render_collapsed at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/endpoint_sidebar.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e05194bc6d4b0c9de9a2b7d3136bd01b01e18bace9972bc923e73110a15015"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/persist/restore.rs: src/persist/restore.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in herdr::persist::restore::restore_tab at line 491. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/persist/restore.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/restore.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0830e3b76bcb7ce1aff3a32b6dc25ebffb1dc440d8d6e3ff08e2967437deee25"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/mobile.rs: src/client/shell/mobile.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in herdr::client::shell::mobile::mobile_items at line 575. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/mobile.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/mobile.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba6eec35e144f7fd857b63fc3cee46453b0e39d77be9e904e70d95fad6a3f71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/worktrees.rs: src/client/shell/worktrees.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ClientShellState::handle_worktree_endpoint_result at line 368. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/worktrees.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/worktrees.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb94b7e3b5390745b51a40d41739e1527631e9468eccfefc643516cbd148b743"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/render.rs: src/client/shell/render.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in herdr::client::shell::render::render_mode_bar 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/render.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/render.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d355dffb4fdc02908fd44411ff254b3809faee63df87eda9d445197e8a5e98fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/endpoint_navigation.rs: src/client/shell/endpoint_navigation.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ClientShellState::handle_endpoint_navigation at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/endpoint_navigation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_navigation.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e890cdb049243efd4c1db58c77b25d6ab38b4cc134a06de1b4b8da183556445e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/endpoints.rs: src/client/shell/endpoints.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ClientShellState::cache_endpoint_snapshot_with_surface at line 543. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/endpoints.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoints.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a2a2cf76b5a3af0adebf44f0024c832cd72b6b5a854093e787c7b0a2892932"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/layouts.rs: src/app/api/layouts.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in App::handle_layout_apply at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/layouts.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/layouts.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"70572a4a86798caf0cfbe1816675736f4540f3df295734b97bd28c84c6ad101f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/changelog.py: scripts/changelog.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in changelog.manifest_from_release_payload at line 376. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- scripts/changelog.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/changelog.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"64572d248349e1b955126e40528dac398b3ccdda70c82af6f4adb6dbbdab33f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/aggregate_navigation.rs: src/client/shell/aggregate_navigation.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in herdr::client::shell::aggregate_navigation::navigator_rows at line 278. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/aggregate_navigation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/aggregate_navigation.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9dd2e19decd9c1939aba7db51d418383b012d4c1c102f47b5b0147419543bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/sidebar.rs: src/client/shell/sidebar.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in herdr::client::shell::sidebar::render_sidebar at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/sidebar.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/sidebar.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a0ac2b8c7199c43a595e82ca9aae8a7e9eb6c27bc4481210148e20f70eda34"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/client_shell.rs: src/server/client_shell.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in herdr::server::client_shell::render_pane_surface at line 286. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/client_shell.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_shell.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0399d9c6ac359ab47db02b77c1a406ab01cd6e777943c185d36370aab7403e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/cli/agent.rs: src/cli/agent.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in herdr::cli::agent::agent_start at line 253. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/cli/agent.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/agent.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12d6de0e4b77e5d7d8505a97054bbeed6a801e9d533318b4f5fbbfb10479d80"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pane/input.rs: src/pane/input.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in herdr::pane::input::ghostty_key_event_from_terminal_key at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pane/input.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/input.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c0cea44f4bf51b01ec282fd56305ee4dc94519ca671c8ca587aa7448877e54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless/lifecycle.rs: src/server/headless/lifecycle.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in HeadlessServer::perform_live_handoff at line 25. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/lifecycle.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d81150b3a4f3ce5ca63a19f6f9346a506b275d5e756ab5b34cf1f1c84eefc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pane/xtgettcap.rs: src/pane/xtgettcap.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in C1XtgettcapQueryTracker::observe at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pane/xtgettcap.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/xtgettcap.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9c9687e8c6249ba68f22c3effdcb3fe9dfbcf3943f3d2213d1ed91fcc95dec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/integration/assets/opencode/herdr-agent-state.js: src/integration/assets/opencode/herdr-agent-state.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in herdr-agent-state.HerdrAgentStatePlugin.event at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/integration/assets/opencode/herdr-agent-state.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/assets/opencode/herdr-agent-state.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e100879e7d39d50bf73471812445d239fceb8c7c139f169b5d86795e29c699e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pane/cursor.rs: src/pane/cursor.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CursorPositionSettleState::observe at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pane/cursor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/cursor.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d74a4b1a7ae0ca57a14890903397f963be1ef8919f3a511d07c53302b627654"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pty/actor/unix.rs: src/pty/actor/unix.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PtyIoActorRunner::run at line 512. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pty/actor/unix.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor/unix.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"48458d320c652d07815604ba16fef0805f08670d446cc4d2d4d94212337c59a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/docs/versions.mjs: scripts/docs/versions.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in versions.checkVersions at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- scripts/docs/versions.mjs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/docs/versions.mjs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb778502bc4b820c9d43c82549d43b181b4e4fe07fcf1d6ac3b6acb11626e4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/surface_patch.rs: src/client/shell/surface_patch.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ClientShellState::apply_pane_surface_patch at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/surface_patch.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/surface_patch.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b296380041afd75a67565db8c394b78a0867e5b87749ac2efb24b719bd98266a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/client/shell/tabs.rs: src/client/shell/tabs.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in herdr::client::shell::tabs::render_tab_bar at line 7. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/tabs.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/tabs.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"87869d92e6e966e95bd27572702df9aaddb87a3eb476f58ea1f3301c5ee0a671"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/integration/config_edit.rs: src/integration/config_edit.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in herdr::integration::config_edit::update_hermes_enabled_plugin at line 405. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/integration/config_edit.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/config_edit.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e184af0c4a60159384ee3e0ad49c9d4726251bfd4dbeed51eb3edf0c30264c0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/protocol/surface_reuse.rs: src/protocol/surface_reuse.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Decoder::decode at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/protocol/surface_reuse.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_reuse.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79fd6e797d59577feb98b90fe4f7579b2d0f2bfca1093cd35f3d17ea0420721"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/headless/surface_interest.rs: src/server/headless/surface_interest.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in HeadlessServer::set_client_shell_surface_active at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/surface_interest.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/surface_interest.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d964698f731368cbb96c5d448c84a2a654367117394d74c6b84489bc61718c86"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/windows.rs: src/platform/windows.rs changed 48 times in last 90 days and 41 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 herdr::platform::windows::write_clipboard at line 2807), 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: prevent windows ssh output from delaying typing (#5463)\u201D; \u201Cfix: recover endpoint connections promptly after wake (#5249)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: enforce handshake response deadlines (#5242)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/windows.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/windows.rs"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e22b09f458d89d4696d92ddfab650f456bb6304e5c271eb4d27ae1df4b9a7f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/mod.rs: src/platform/mod.rs changed 36 times in last 90 days and 30 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 herdr::platform::read_limited_reader at line 491), 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 the saved layout when panes die during host shutdown (#5510)\u201D; \u201Cfix: keep polling when a resize samples a zero-sized grid (#5310)\u201D; \u201Cfix: keep the macos server running when its terminal quits (#5236)\u201D; \u201Cfix: recover endpoint connections promptly after wake (#5249)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/mod.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f8fa4fc5385d69dc4e51bcd1f2826412ca246065d95ccc665892f75adc37f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/linux.rs: src/platform/linux.rs changed 25 times in last 90 days and 20 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 herdr::platform::linux::process_tree_pids at line 489), 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: bound clipboard helpers so a hung wl-copy or wl-paste can\u0027t freeze herdr (#5583)\u201D; \u201Cfix: recover blocked shared ssh connections (#5252)\u201D; \u201Cfix: recover endpoint connections promptly after wake (#5249)\u201D; \u201Cfix: keep agent sessions while the agent is suspended or backgrounded (#4964)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/linux.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bccda8282134447db365ae89ab04377e08282405a2a241df0d152a7aee30f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/unix_common.rs: src/platform/unix_common.rs changed 20 times in last 90 days and 17 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is herdr::platform::unix_common::create_remote_ssh_config_dir at line 439), 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 the saved layout when panes die during host shutdown (#5510)\u201D; \u201Cfix: recover blocked shared ssh connections (#5252)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: enforce handshake response deadlines (#5242)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/unix_common.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/unix_common.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c81ad7687b6eeb0f70c9503bf13dd9edf629573f153684924900fd73dcfef5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/macos.rs: src/platform/macos.rs changed 19 times in last 90 days and 16 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is herdr::platform::macos::process_argv0_name at line 561), 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 the macos server running when its terminal quits (#5236)\u201D; \u201Cfix: recover blocked shared ssh connections (#5252)\u201D; \u201Cfix: recover endpoint connections promptly after wake (#5249)\u201D; \u201Cfix: reject oversized canonical input on macos (#4988)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/macos.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/macos.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad9cb1c8292d7026ccbbacea361cf175223f68ffecede25b2b67617c2ebd883"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/detect/mod.rs: src/detect/mod.rs changed 21 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is herdr::detect::agent_name_from_known_package_path at line 705), 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: detect hermes started by the newer installer launcher (#5518)\u201D; \u201Cfix: keep agent sessions while the agent is suspended or backgrounded (#4964)\u201D; \u201Cfix: recognize Hermes launched through its Python wrapper (#4911)\u201D; \u201Cfix(windows): read agent command lines without PROCESS_VM_READ (#4708)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/detect/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/mod.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7512b25415ed7efbe27267c7416a15b999716b40de4f3d2ccb0184fba786166"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/terminal/runtime.rs: src/terminal/runtime.rs changed 24 times in last 90 days and 13 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is TerminalRuntime::screen_text_snapshot_with_seq at line 518), 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: reject oversized canonical input on macos (#4988)\u201D; \u201Cfix: keep offscreen kitty images loaded instead of resending them on scroll (#4686)\u201D; \u201Cfix: keep synchronized pane frames atomic (#4508)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/terminal/runtime.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal/runtime.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34f7e4f05b558400aca9576d71283615ca211c489e08826c2ee1ecdb8177e52"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/platform/fallback.rs: src/platform/fallback.rs changed 13 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is herdr::platform::fallback::create_remote_ssh_config_dir 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: keep agent sessions while the agent is suspended or backgrounded (#4964)\u201D; \u201Cfix: keep the server running on hangup and log why it stops (#4965)\u201D; \u201Cfix(windows): avoid redundant clipboard history entries (#4709)\u201D; \u201Cfix: clean up idle ssh bridges and back off flapping connections (#4083)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/platform/fallback.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/fallback.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a63df9c5f98e177719af8bf90d302a3ac4d87bf7642a79d924df1ecbca5ff0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/input/parse.rs: src/input/parse.rs changed 11 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is herdr::input::parse::parse_kitty_key_sequence at line 13), 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: map non-latin layout ctrl chords to their base keys (#4961)\u201D; \u201Cfix(input): accept parameterized CSI-tilde F1-F4 keys (#4067)\u201D; \u201Cfix: recognize kitty CSI-u codepoints for F1 through F12 (#2378)\u201D; \u201Cfix(input): accept WezTerm control key reports (#3592)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/input/parse.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/parse.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"513a305501d473bdffb3375c795e922904e1b48a6bbdd600bd4b3dce314d7055"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/protocol/wire.rs: src/protocol/wire.rs changed 14 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is ClientMouseKind::from_crossterm at line 284), 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: capture Windows host default colors at startup (#4710)\u201D; \u201Cfix: keep remote surface updates incremental (#4209)\u201D; \u201Cfix: avoid resending terminal cells for metadata updates (#4137)\u201D; \u201Cfix: suppress Windows dead-key fallback characters in remote panes (#3972)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/protocol/wire.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/wire.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaf50bcf0de00172b7640f876940dfb39937e4bcbe1fa3b13c0bf38662af9f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/integration/targets.rs: src/integration/targets.rs changed 12 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is herdr::integration::targets::install_droid at line 372), 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: drop codex turn status hooks (#5278)\u201D; \u201Cfix: report codex turn completion through hooks (#4756)\u201D; \u201Cfix: respect opencode tui.json registrations (#4250)\u201D; \u201Cfix: protect integration configs from failed writes (#3973)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/integration/targets.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/targets.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c667db2bfd9a11e2ad752b34f00a38727a6861f480881f0638d03f9b1d30c1e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/endpoint/supervisor.rs: src/client/endpoint/supervisor.rs changed 9 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is EndpointSupervisors::host_power_event at line 319), 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: prevent windows ssh output from delaying typing (#5463)\u201D; \u201Cfix: recover endpoint connections promptly after wake (#5249)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: allow busy servers time to become ready (#5241)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/endpoint/supervisor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/supervisor.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3f7663b445df62d8f3ed12503a83f238758640e93f609b7322082c3554ffb8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/server/headless/client_views.rs: src/server/headless/client_views.rs changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is HeadlessServer::handle_api_request_with_shutdown_check at line 810), 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: move worktree lookups async (#4492)\u201D; \u201Cfix: stagger restored agent startups (#4487)\u201D; \u201Cfix: keep remote surface updates incremental (#4209)\u201D; \u201Cfix: reconcile client locations after no-focus pane moves (#4171)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/client_views.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/client_views.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0cc9697246263f06693dfdda200a5144866cfba22fb55b045f2ddafae94f7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/runtime.rs: src/app/runtime.rs changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is App::expire_metadata_at at line 58), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: keep the server alive when thread spawns fail (#4958)\u201D; \u201Cfix: isolate hidden pane render cadence (#2892)\u201D; \u201Cfix: reap ctrl-click url openers (#2906)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/runtime.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/runtime.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d30b1f48878b08dea47d84989a21cb11529bcb2b8214e3026bc687652cc9dae"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/api/agents.rs: src/app/api/agents.rs changed 8 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is App::validate_agent_prompt at line 140), 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 the server alive when thread spawns fail (#4958)\u201D; \u201Cfix: keep an agent name through a process-exit observation (#3574)\u201D; \u201Cfix: flush Windows Codex paste burst before prompt submit (#3961)\u201D; \u201Cfix: make Windows Codex prompt delay size-aware (#3552)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/agents.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/agents.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d6f5fe435fb1b64fcc2093de121f3a94373b711ea20a8927e8e548bda85433"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/terminal_modes.rs: src/terminal_modes.rs changed 8 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is herdr::terminal_modes::set_direct_host_keyboard_protocol at line 74), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): preserve mouse capture during refresh (#4319)\u201D; \u201Cfix(windows): preserve sgr mouse encoding after native capture (#4195)\u201D; \u201Cfix(windows): restore mouse reporting when reattaching (#4080)\u201D; \u201Cfix(windows): disable host mouse reporting on terminal restore (#4055)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/terminal_modes.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal_modes.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1b96a34dab0c84520afe4db4fc8db19111dde76a85a4e597d9a64de15e82ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/handshake.rs: src/client/handshake.rs changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is herdr::client::handshake::do_handshake at line 172), 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: prevent windows ssh output from delaying typing (#5463)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: enforce handshake response deadlines (#5242)\u201D; \u201Cfix: keep sgr pixel mouse units consistent (#4971)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/handshake.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/handshake.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"750ec46321a1cc1d408ed2ddd1a3f2100bb1b63485a85ca3f1443defb3eb42d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/input/model.rs: src/input/model.rs changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is TerminalKey::with_text_commit at line 248), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: map non-latin layout ctrl chords to their base keys (#4961)\u201D; \u201Cfix: suppress Windows dead-key fallback characters in remote panes (#3972)\u201D; \u201Cfix(windows): preserve dead-key composition in kitty panes (#3548)\u201D; \u201Cfix(windows): preserve native pane key identity (#3503)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/input/model.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/model.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6a9ea9c8f67aabe8408ad0989e7dc894f6e6a027d86b78d04d90fdc88b5b0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/cli/pane.rs: src/cli/pane.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is herdr::cli::pane::run_pane_command at line 13), 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: default pane splits to the calling pane (#4123)\u201D; \u201Cfix(cli): accept reordered agent report arguments (#2928)\u201D; \u201Cfix(cli): accept --flag=value and reordered options in pane read/wait-output (#2183)\u201D; \u201Cfix(cli): resolve pane query --current from caller (#2298)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/cli/pane.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/pane.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4cc83ac70c137cf8fe3b382d76c9891b6aa0931ac939a8c6497626fc602b90"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/server/clients.rs: src/server/clients.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is ClientConnection::update_host_theme at line 377), 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: distinguish agent completion from startup and session changes (#4457)\u201D; \u201Cfix: keep remote surface updates incremental (#4209)\u201D; \u201Cfix: scope agent views to the selected machine (#3784)\u201D; \u201Cfix(windows): preserve native pane key identity (#3503)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/clients.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/clients.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"8def7672656335335fc1f733a3013c48c3a1eb49436dc0b6321792930d14f7df"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/ipc.rs: src/ipc.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is herdr::ipc::prepare_socket_path at line 128), 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 a slow server\u0027s socket instead of treating a connect timeout as stale (#5511)\u201D; \u201Cfix: prevent windows ssh output from delaying typing (#5463)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: allow same-user Windows clients to attach across elevation (#4777)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/ipc.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ipc.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72a9f542f391f40a7eaced6504e8cc106a1d629a463ba8fade11a98663a4180"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/server/headless/bootstrap.rs: src/server/headless/bootstrap.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is herdr::server::headless::bootstrap::run_server at line 4), 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 the macos server running when its terminal quits (#5236)\u201D; \u201Cfix: save sessions before agents die during macos restart (#5092)\u201D; \u201Cfix: keep the server running on hangup and log why it stops (#4965)\u201D; \u201Cfix: require opt-in for cross-elevation Windows access (#4779)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/server/headless/bootstrap.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/bootstrap.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baee01703a1d6eb498f1e1b7529356df7b7e65b935eba0c8c202101c4dcd1a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/api/worktrees/deferred.rs: src/app/api/worktrees/deferred.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is App::handle_api_worktree_remove_finished at line 520), 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 the server alive when thread spawns fail (#4958)\u201D; \u201Cfix: keep session restore responsive during git discovery (#4945)\u201D; \u201Cfix: move worktree lookups async (#4492)\u201D; \u201Cfix(windows): remove worktrees with active agent panes (#3532)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/worktrees/deferred.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/worktrees/deferred.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f75f9f9b6c33b7865d40777618de15caa39ed314c599927b0d74dc86b5e8bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/pty/actor.rs: src/pty/actor.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is PtyIoActor::spawn at line 205), 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 the server alive when thread spawns fail (#4958)\u201D; \u201Cfix(windows): bound queued Enter waits during pane shutdown (#4872)\u201D; \u201Cfix: make Windows Codex prompt delay size-aware (#3552)\u201D; \u201Cfix: reliably submit delayed agent prompts (#3506)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/pty/actor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pty/actor.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a6ca9073b047ee30ad699fab498040efd53f5f1028e6c3b329245076e0332f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/api/plugins/panes.rs: src/app/api/plugins/panes.rs changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is App::open_plugin_split_pane at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: hidden pane memory and new pane spawn size (#4873)\u201D; \u201Cfix: keep plugins working after client-only updates (#4077)\u201D; \u201Cfix: synchronize plugin pane pwd (#2985)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/plugins/panes.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/panes.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd843370a53d3d4c97ef9a9ed38a2a725e76ad9b869e6477adf53e8f8e3fa925"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/endpoint/writer.rs: src/client/endpoint/writer.rs changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is herdr::client::endpoint::writer::write_frame at line 218), 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: prevent windows ssh output from delaying typing (#5463)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: deflake windows endpoint flush drain test (#4021)\u201D; \u201Cfix: batch queued endpoint input frames (#4004)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/endpoint/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/endpoint/writer.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4e8f48da5fd3b60af31949c6e471afa955cf72dd0759f7a7faea0eb42703c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/terminal_geometry.rs: src/client/terminal_geometry.rs changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is herdr::client::terminal_geometry::resize_poll_loop_with at line 168), 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 polling when a resize samples a zero-sized grid (#5310)\u201D; \u201Cfix: capture Windows host default colors at startup (#4710)\u201D; \u201Cfix: map pixel mouse by integer cell pitch (#4140)\u201D; \u201Cfix: lint all targets on windows (#3963)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/terminal_geometry.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_geometry.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceceb1545b4b414a72c04433ccbc14719068f60c7dbddb1b0635932b2f7c577"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/agent_resume.rs: src/app/agent_resume.rs 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 11 (its worst body is App::start_pending_agent_resume at line 226), 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: stagger restored agent startups (#4487)\u201D; \u201Cfix: preserve session layouts across shutdown and restore failures (#4400)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/agent_resume.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agent_resume.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9656d79aa64196d1840687777f374bb9c9ffbc209c3c4cb941c8fd8f8f8817df"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/creation.rs: src/app/creation.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is App::collect_panes_for_workspace at line 163), 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: hidden pane memory and new pane spawn size (#4873)\u201D; \u201Cfix: preserve session layouts across shutdown and restore failures (#4400)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/creation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/creation.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacc303ec4ee95a2977eb70f6f2c8b27f32e0ca869955ef1b47b91e49c2efd65"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/detect/manifest.rs: src/detect/manifest.rs 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 11 (its worst body is herdr::detect::manifest::load_manifest_uncached at line 589), 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: restore codex idle detection and update codex and pi manifests\u201D; \u201Cfix: avoid inferring codex idle from terminal output (#4563)\u201D; \u201Cfix: detect codex activity with static titles and queued inputs (#4099)\u201D; \u201Cfix: refresh shared agent manifest caches (#3204)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/detect/manifest.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/detect/manifest.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"08aa69e6d28032d3b434fa119a249d866173c39259b2debda0727594f9c00661"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/remote.rs: src/remote.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is herdr::remote::shell_quote at line 81), 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: refresh forwarded ssh agents after reconnect (#4443)\u201D; \u201Cfix: clean up idle ssh bridges and back off flapping connections (#4083)\u201D; \u201Cfix: support preinstalled windows remote hosts (#3661)\u201D; \u201Cfix: show ssh errors during machine setup (#3733)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/remote.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b080132675c1d9f3876e3dc0654def742db3f7222e79470c964c0f2333b1d6b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/popup.rs: src/app/popup.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is App::spawn_popup_command at line 99), 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: hidden pane memory and new pane spawn size (#4873)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\u201D; \u201Cfix(input): preserve native key lifecycle across routing (#2142)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/popup.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/popup.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d1952b81c7bf5d6847a95c5e35b69819dc994e29d977cc2ced9d4732f32866"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/agents.rs: src/app/agents.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is App::start_agent at line 145), 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: reject oversized canonical input on macos (#4988)\u201D; \u201Cfix: distinguish agent completion from startup and session changes (#4457)\u201D; \u201Cfix: persist Codex resume sessions at launch (#3617)\u201D; \u201Cfix: wait for new pane shell readiness (#2774)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/agents.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/agents.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d2043012cc6d89f7723ae5ca546450c9c75949f3935f8d666e9a835a731ff1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/protocol/endpoint.rs: src/protocol/endpoint.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is EndpointClientHello::supports_required_codecs at line 142), 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: distinguish agent completion from startup and session changes (#4457)\u201D; \u201Cfix: keep remote surface updates incremental (#4209)\u201D; \u201Cfix: avoid resending terminal cells for metadata updates (#4137)\u201D; \u201Cfix: scope agent views to the selected machine (#3784)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/protocol/endpoint.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/endpoint.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf6d8816fd16f5f376f19b27db0ad4c367c82dcf08df4f607978d88412b437f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/cli/machine.rs: src/cli/machine.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is herdr::cli::machine::status at line 109), 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: reuse ssh authentication and add machine recovery commands (#4490)\u201D; \u201Cfix: cache saved machine connection metadata (#4256)\u201D; \u201Cfix: accept machine add options before the SSH target (#3897)\u201D; \u201Cfix: show ssh errors during machine setup (#3733)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/cli/machine.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/machine.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a367e7ee26b18a7aaef3faaf13807fe39d9a95dc82483f2e3159666d32903499"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/workspace.rs: src/workspace.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is Workspace::remove_pane at line 869), 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: scope window titles to each client view (#4130)\u201D; \u201Cfix: preserve workspace labels for root repositories (#2727)\u201D; \u201Cfix(layout): return focus to the pane a split was opened from (#2266)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/workspace.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb458794993b8dfd1ebabd7a1035a56fa034862fdceffa3593e5a0dd1c5b901"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/selection.rs: src/selection.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is Selection::contains at line 241), 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: bound clipboard helpers so a hung wl-copy or wl-paste can\u0027t freeze herdr (#5583)\u201D; \u201Cfix(windows): avoid redundant clipboard history entries (#4709)\u201D; \u201Cfix: hide only kitty image placements overlapping overlays (#4081)\u201D; \u201Cfix: route vscode remote copies through osc52 (#2173)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/selection.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/selection.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad722af7c5705d045637bf9c65cb3b2c6458cb97f637f3f1909a033cd6f58fe2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/api/tabs.rs: src/app/api/tabs.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is App::handle_tab_create 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix: keep session restore responsive during git discovery (#4945)\u201D; \u201Cfix: hidden pane memory and new pane spawn size (#4873)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/tabs.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/tabs.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17d6c294de34cf496228b2358fa5fa7ce91ddc5b535fbc9d144a5fa6fdda744"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/theme_sync.rs: src/app/theme_sync.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is App::set_host_terminal_state at line 31), 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: send pane appearance changes only after the matching background (#5517)\u201D; \u201Cfix(theme): skip host palette queries under wsl (#2852)\u201D; \u201Cfix(theme): refresh host appearance on focus (#2417)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/theme_sync.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/theme_sync.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd5d3a07c2b4c43910dd2fbb8b542cbb05411d6f9be0d772eb697d83f4c123f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/session.rs: src/app/session.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is App::start_background_session_save at line 62), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: keep the saved layout when panes die during host shutdown (#5510)\u201D; \u201Cfix: preserve session layouts across shutdown and restore failures (#4400)\u201D; \u201Cfix: preserve unloaded sessions before replacement (#4190)\u201D; \u201Cfix: preserve sessions after interrupted pane exits (#3418)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/session.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29f24a93ce0a7daaae94b842e059ae3369277fa75ea40651f78ef5dc10bc07d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/remote/saved.rs: src/remote/saved.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is SavedSshApiBridge::start at line 69), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: recover blocked shared ssh connections (#5252)\u201D; \u201Cfix: cancel and clean up endpoint connection attempts (#5247)\u201D; \u201Cfix: cache saved machine connection metadata (#4256)\u201D; \u201Cfix: require explicit consent for remote server replacement\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/remote/saved.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/saved.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d342b3db0bd68ab4bd7efacea052bd3b02fbcc8c98b64c0d44fbf07df10b93"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/shell/context_menu.rs: src/client/shell/context_menu.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ClientShellState::activate_pane_context_action at line 358), 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: confirm closing a workspace\u0027s last pane in the tui (#5173)\u201D; \u201Cfix: keep repository parents out of worktree children (#4772)\u201D; \u201Cfix: confirm closing the last tab in the tui (#4409)\u201D; \u201Cfix: collapse worktree groups with saved machines (#3781)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/context_menu.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/context_menu.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"233ded930bba524084cefb19201929f08e357d115dafe49442f1d3e7c974cf37"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/remote/host.rs: src/remote/host.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is herdr::remote::host::run_remote_client_bridge at line 6), 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: allow same-user Windows clients to attach across elevation (#4777)\u201D; \u201Cfix: refresh forwarded ssh agents after reconnect (#4443)\u201D; \u201Cfix: clean up idle ssh bridges and back off flapping connections (#4083)\u201D; \u201Cfix: support preinstalled windows remote hosts (#3661)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/remote/host.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/remote/host.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5196595bb811250099a57fa701b388f7da3f4f93a6ebec8375d4362f8d456352"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/worktrees.rs: src/app/worktrees.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is App::close_removed_linked_worktree_workspace at line 10), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): remove worktrees with active agent panes (#3532)\u201D; \u201Cfix: trust worktree repositories per request (#3344)\u201D; \u201Cfix: preserve focus after background worktree removal (#3099)\u201D; \u201Cfix(input): preserve native key lifecycle across routing (#2142)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/worktrees.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/worktrees.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8141337887a91775651765444c0479849c3ba67a4e3271daaa6f491e2de3b311"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/transport.rs: src/client/transport.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is herdr::client::transport::server_reader_thread at line 36), 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: enforce handshake response deadlines (#5242)\u201D; \u201Cfix: keep remote surface updates incremental (#4209)\u201D; \u201Cfix: avoid resending terminal cells for metadata updates (#4137)\u201D; \u201Cfix: reduce idle ssh cpu without dropping final output (#3728)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/transport.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/transport.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d414ef50242094bfb8f4a581a7484efc09967bc7ba53e21d96b3f97b438095cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/api/subscriptions.rs: src/api/subscriptions.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is ActiveSubscription::poll_batch at line 282), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve session layouts across shutdown and restore failures (#4400)\u201D; \u201Cfix: drain event subscriptions and report history loss (#4225)\u201D; \u201Cfix(api): start lifecycle subscriptions from live events (#3134)\u201D; \u201Cfix: read alternate-screen agent history\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/api/subscriptions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/subscriptions.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe0f7ad8de06bc82f34c87e73c68516fc5a38dde323f84cf16b91b788645bd9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/protocol/render_ansi.rs: src/protocol/render_ansi.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is herdr::protocol::render_ansi::modifier_to_sgr_parts at line 422), 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: reduce interactive pane echo latency (#5149)\u201D; \u201Cfix(render): compact large terminal redraws (#2675)\u201D; \u201Cfix(terminal): render halfwidth katakana voiced marks (#2257)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/protocol/render_ansi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/render_ansi.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff9223f3430fd1153d877ea48e6da20426100459895da7cdce75ef2f58414df"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/git_refresh.rs: src/app/git_refresh.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is App::start_git_status_refresh_if_due at line 109), 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 the server alive when thread spawns fail (#4958)\u201D; \u201Cfix: keep session restore responsive during git discovery (#4945)\u201D; \u201Cfix: preserve workspace labels for root repositories (#2727)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/git_refresh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/git_refresh.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c3c08217d0e1e35d3c68b1a8f6098c6387b2e5b4775aaf88b83a95a015c89d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/ui/tab_surface.rs: src/ui/tab_surface.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is herdr::ui::tab_surface::tab_surface_cursor at line 157), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(theme): keep default active rows subtle and add navigate cursor color (#2838)\u201D; \u201Cfix: keep active sidebar rows visible (#2794)\u201D; \u201Cfix: center tab labels for symmetric highlight padding (#2570)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/ui/tab_surface.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ui/tab_surface.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"931f602c2c00e1719326d1938188fd3312c3471cdff7e9aa9e711d950627b964"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/render_signal.rs: src/render_signal.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is RenderSignal::request_pty 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: reduce interactive pane echo latency (#5149)\u201D; \u201Cfix(perf): eliminate redundant terminal wake work (#2962)\u201D; \u201Cfix: isolate hidden pane render cadence (#2892)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/render_signal.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/render_signal.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98564bfed7d590d1a1385ecef60b7986838b80e08e2de95f3cea5b177f4f29"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/app/api/workspaces.rs: src/app/api/workspaces.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is App::handle_workspace_move_block at line 171), 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 session restore responsive during git discovery (#4945)\u201D; \u201Cfix: keep repository parents out of worktree children (#4772)\u201D; \u201Cfix: require explicit workspace group close (#3206)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/app/api/workspaces.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/workspaces.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b6629ebb9096454665064fe2df7fca04f6680147821a02c834f6d2a87feb62"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/config/io.rs: src/config/io.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is herdr::config::io::upsert_section_raw at line 690), 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(config): keep utf8 bom from breaking config reads and writes (#3962)\u201D; \u201Cfix(config): report unknown theme names (#2488)\u201D; \u201Cfix(config): accept retired agent panel scope (#2295)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/config/io.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/io.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"356a2a347cc148275bdf5314e1655a258406cfff804fe06e9f79eb20ec2dc836"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/cli/target.rs: src/cli/target.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is herdr::cli::target::parse_machine_prefix at line 216), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: recover blocked shared ssh connections (#5252)\u201D; \u201Cfix: reuse ssh authentication and add machine recovery commands (#4490)\u201D; \u201Cfix: cache saved machine connection metadata (#4256)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/cli/target.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli/target.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eb26d4b6ef719cea7430d5f63ba91eb1d708d9c2984f8e1ea3eae97cefdd98"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/persist/io.rs: src/persist/io.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is herdr::persist::io::load at line 94), 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: flush session saves before replacing persisted files (#5152)\u201D; \u201Cfix: preserve session layouts across shutdown and restore failures (#4400)\u201D; \u201Cfix: preserve unloaded sessions before replacement (#4190)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/persist/io.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/io.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ab2bf1319a0f6cc0217319cd3e69e38c2f4f17389c7031cc520c92888d614b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/client/shell/preferences.rs: src/client/shell/preferences.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is herdr::client::shell::preferences::path_for_local_endpoint at line 33), 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: retain remote sidebar preferences across attaches (#4536)\u201D; \u201Cfix: collapse worktree groups with saved machines (#3781)\u201D; \u201Cfix: run the full applicable test suite on windows (#3660)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/client/shell/preferences.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/preferences.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7e5cf98eb595dc2ea76ba7ac7735a0e83e235ad5b6ce0d68254e37699dfc52"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/worktree.rs: src/worktree.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is herdr::worktree::parse_worktree_list_porcelain at line 425), 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: move worktree lookups async (#4492)\u201D; \u201Cfix: offer forced removal for worktrees with submodules (#4238)\u201D; \u201Cfix: trust worktree repositories per request (#3344)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/worktree.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/worktree.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8630ef9e551c23dc1dd5b51dcb65823eae0f3b8fe2b29cb9e403eb2771d859f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/integration/opencode_config.rs: src/integration/opencode_config.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is herdr::integration::opencode_config::remove_plugin at line 133), 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: respect opencode tui.json registrations (#4250)\u201D; \u201Cfix: protect integration configs from failed writes (#3973)\u201D; \u201Cfix: opencode v2 lifecycle reporting (#3757)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/integration/opencode_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integration/opencode_config.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa48ff566503201b55461b6a08d589c04d6a2e26a42a50b2304ceae767536bbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/workspace/git/discovery.rs: src/workspace/git/discovery.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is herdr::workspace::git::discovery::read_git_ref_file_state at line 140), 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: retain double-click selections and make tests root-safe (#3854)\u201D; \u201Cfix: reject oversized git ref files in workspace status reads (#3373)\u201D; \u201Cfix: derive repo name for embedded bare layouts (#2660)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/workspace/git/discovery.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workspace/git/discovery.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d222ca9fce514b91c45bef7498e84b06b3c2bfcda365d0b8eeb045c0e6fbe3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/terminal_theme.rs: src/terminal_theme.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is herdr::terminal_theme::parse_rgb_color at line 135), 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(theme): skip host palette queries under wsl (#2852)\u201D; \u201Cfix(theme): refresh host appearance on focus (#2417)\u201D; \u201Cfix: propagate host color scheme to pane apps (#2214)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 15:56:49 \u002B03:00\u0027 --until=\u00272026-10-29 15:56:49 \u002B03:00\u0027 --full-history --no-merges -- src/terminal_theme.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/terminal_theme.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae4a0d236d14380d0769e5bcf8a8b3acf438022bd84ce3e82d38555cd6fec94"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 61 significant file(s) lose their only recent owner: src/kitty_graphics/surface.rs, src/workspace.rs, src/persist/snapshot.rs, src/pane/osc.rs, src/server/alt_screen_read.rs, crates/ghostty-vt/src/pane_graphics_files.rs, src/worktree.rs, src/api/schema/panes.rs (\u002B53 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aa8ae49154f1ac961da822012ab6440b9969445d8112b8ddb09806c764b747e4"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 4 significant file(s) lose their only recent owner: src/client/endpoint/registry.rs, scripts/package_windows_conpty.py, src/client/endpoint/health.rs, src/config/write.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a3bddd175737aa3b1d9466c9a4e253a54a5c9e87d01affec627ad34150511b1e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (68 single-owned of 333 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 333 of the 383 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/integration/claude_settings.rs, src/platform/macos/input.rs, src/cli/server_not_running.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060src/main.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9269d57ae2d0fdd9d36822295cd584b0a25a4bc0ab67d0b10f33f28c4e6b88"}},{"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":"9bb512ccf1660614e70373f136d01bf84f556e201558b11b7f2471ba5d3da7bb"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-88","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fc7d5b3faa78daecb26b9db39638e549752ae6c40193246f8613ccaa25039b0"},"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":"4da0d6b63078f5b01effcbd6231791d793a0089dc80258d5ef95f4a75c233ba0"},"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":"6c3846fbfdbb2dd0d13a0cb6f3e9e196597c539ff346a1dc7e940847d3067eff"},"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":"c2d7c3c1365db6b5de6515640a4b672fde3a1bc2c0300ce82ae0e2fd6adcbbfd"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"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":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4975822701b3b96654c82dada9bad969e348a6adefa52cd3bba1b6cfd71c3bb7"},"properties":{"dependency":{"package":"bincode","version":"2.0.1","advisory":"RUSTSEC-2025-0141","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"},"properties":{"dependency":{"package":"lru","version":"0.16.3","advisory":"RUSTSEC-2026-0253","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d44a25813d8a9e18eb42fa5350a972c298292d454155c6472f091bfb670363df"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.50.0","advisory":"RUSTSEC-2026-0386","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f6329e2b29fe1ee1dd724766af980b151618490b720201bbdc1839704210c3e"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.4","advisory":"RUSTSEC-2026-0371","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77d4d5d4357ce0a5ade8f6f76c84914f1a2c80f9fe7358d9854254b760de650a"},"properties":{"dependency":{"package":"zvariant","version":"5.15.0","advisory":"RUSTSEC-2026-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f67f0700e108bacf2f3dfd2008273e31f01b0ea1f2d5f9ef71c4f46ace73bbe9"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.15.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: agent_resume.rs \u2194 mod.rs: \u0060src/agent_resume.rs\u0060 and \u0060src/integration/mod.rs\u0060 change together 67% of the time (14 of the 21 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 14 shared commits counted here, the most recent 3 are \u00604b4705db\u0060 fix: report codex turn completion through hooks (#4756); \u0060e608a751\u0060 fix: make known-agent exit process-owned; \u006074fa90ce\u0060 fix: scope opencode hook to main agent and adopt new sessions \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agent_resume.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b1a282001341f4df73aa52e50217e0c3664f867153c1222db31da5610e3b6c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: creation.rs \u2194 tab.rs: \u0060src/app/creation.rs\u0060 and \u0060src/workspace/tab.rs\u0060 change together 60% of the time (9 of the 15 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 \u006010eb0bc7\u0060 fix: propagate host color scheme to pane apps (#2214); \u0060a02c3a69\u0060 refactor: centralize new terminal cwd selection; \u00604f7fcc48\u0060 fix: follow foreground cwd for new terminals \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/creation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13931c18b2e43c3232a14109dcd7b3a78952a872517524314af26aa409382eed"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: changelog.py \u2194 update.rs: \u0060scripts/changelog.py\u0060 and \u0060src/update.rs\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060322ab6a5\u0060 fix: verify stable release checksums; \u0060eac2314e\u0060 fix: handle package-manager remote updates; \u00603769dcbb\u0060 fix: version latest manifest metadata \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/changelog.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78949f89c863252c6d8b41bd555d7cb080ef59bfa2eb247131afd901904a5d6f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: api.rs \u2194 tab.rs: \u0060src/app/api.rs\u0060 and \u0060src/workspace/tab.rs\u0060 change together 53% of the time (8 of the 15 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 8 shared commits counted here, the most recent 3 are \u006010eb0bc7\u0060 fix: propagate host color scheme to pane apps (#2214); \u0060e27a4ea4\u0060 perf: skip rendering hidden pty updates; \u0060d35c642e\u0060 feat: add pane move api and cli \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea347b418ee3a6acf135a431208ace914b15c3b84316953452b4bc072d83e5f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 client_transport.rs: \u0060src/client/mod.rs\u0060 and \u0060src/server/client_transport.rs\u0060 change together 50% of the time (12 of the 24 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 \u0060ee731a22\u0060 fix: allow busy servers time to become ready (#5241); \u006080c0c072\u0060 perf: send scrolling pane output as row shifts and skip blank cells (\u2026; \u0060d8b36691\u0060 fix: avoid resending terminal cells for metadata updates (#4137) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c1a52cf6d8baa2d315ccf0daaed9d8c245a34ba39d856a6c5f8703bf3fb5c7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: autodetect.rs \u2194 update.rs: \u0060src/server/autodetect.rs\u0060 and \u0060src/update.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 6 shared commits counted here, the most recent 3 are \u006026db26e4\u0060 fix: keep remote sessions alive across disconnects; \u006077819797\u0060 fix: clarify update restart guidance; \u00601daf54ec\u0060 feat: show named session command hints \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/autodetect.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9ea0b34fb8e6a91b51969e7b05c08a1519bd90e01d1e45c757fa7f7f3d19f0"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.96: rust-toolchain.toml declares Rust 1.96 as this project\u0027s toolchain file, and Rust 1.96, superseded by 1.97 on 2026-07-09 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-07-09 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8e9b51cd4b2493b326110bfe409c9598039c510d25150fcc40f653a675ac1"}},{"ruleId":"AX2","level":"warning","message":{"text":"Process-global static state: Desktop: \u0060Desktop\u0060 keeps mutable \u0060static\u0060 state \u2014 one slot for the whole process, shared by every thread that reaches the type however its instances are created \u2014 and mutates it outside any lock (stopThread, stopThreadId, stopHook, stopError; e.g. \u0060stopThread\u0060 at line 46). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/windows_input/Native.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"936d4648dd2973115464abf883a289e44c9d0f881b08a53442e635b884b8869f"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: UpdateReady: \u0060UpdateReady\u0060 is an imperative name inside a domain-event set whose siblings are past-tense facts \u2014 it reads as an intent, not something that happened. Name new events for the fact that occurred (e.g. \u0060ItemAdded\u0060). Do not rename this one if it is already stored or published: its type name is written with every event recorded under it, so a rename can break replay of the stored stream and every subscriber that reads it, and a clearer name does not pay for that. If it has never been written or sent, renaming it now is safe."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/events.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e922646f211904fef700adaf0655227e271d9ceecc5594f37dbb6c362d9517"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch npm: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060npm\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":"da14c5e8fb421b8614b797a2517de829b3c94f3b85263a50e3283dfd26519afe"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060complete_shutdown\u0060 is async and calls thread::sleep \u2014 a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/lifecycle.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5d9ff9e8721b919e871d304b4c79a09db5d54ec794f85073ec149cc5096eb9"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: .pi/extensions/github-issues-autocomplete/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".pi/extensions/github-issues-autocomplete/package.json"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"449bd4018782261cdaad2349935b91548b054e7dada04cd6f2a9018fbc77520a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body.is_empty() \u0026\u0026 std::mem::take(state.reveal_focused_workspace)\u0060 appears character-identically in 2 files \u2014 src/client/shell/endpoint_sidebar.rs, src/client/shell/sidebar.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75c364fd95853dfe3f9e98a1e77651dae99210731c0090d6e96fbbb39dcece8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!client.is_active_shell_client() || client.writer.is_none()\u0060 appears character-identically in 2 files \u2014 src/server/headless/client_views.rs, src/server/headless/render.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/client_views.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9f7fff13afd19747571de78b7856bccf515053785eb625ba823a12c121a2e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!graphics.assets.is_empty() || !graphics.placements.is_empty() || !graphics.retained_assets.is_empty()\u0060 appears character-identically in 2 files \u2014 src/protocol/surface_delta/decode.rs, src/server/headless/render.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/protocol/surface_delta/decode.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ef580056e42895428ca76132f9c6712e2de86ecdf4f1425a4441d2cc1b8235"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060area.is_empty() || workspace_area.width == 0\u0060 appears character-identically in 2 files \u2014 src/client/shell/endpoint_sidebar.rs, src/client/shell/sidebar.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/endpoint_sidebar.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a73dd5a2fa97769dd4a07dd7486e6954fefd2d56a065302fb6fa68faa2bd98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060candidate.key == worktree.key \u0026\u0026 candidate.is_linked_worktree\u0060 appears character-identically in 2 files \u2014 src/client/shell/context_menu.rs, src/client/shell/sidebar.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/context_menu.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bb2692fce2fd6bbee92ca05eb9daeea4b5f08ba70cd1191e6981813198e5ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060client.is_active_shell_client() \u0026\u0026 client.outer_terminal_focus == Some(true)\u0060 appears character-identically in 2 files \u2014 src/server/headless.rs, src/server/headless/client_views.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"06de9e0db714a85444ca5dcaa83807e3e225142c0fab1ae1c6a2186c3d2db98f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cursor.visible \u0026\u0026 !crate::ui::pane_is_scrolled_back(runtime)\u0060 appears character-identically in 2 files \u2014 src/server/headless/retained_surface.rs, src/server/render_stream.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/retained_surface.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b003dd40f0e69c872405729a1114630b580e83bc3b72e621a9b7d641a2f4577f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extension.eq_ignore_ascii_case(\u0022jpg\u0022) || extension.eq_ignore_ascii_case(\u0022jpeg\u0022)\u0060 appears character-identically in 2 files \u2014 src/client/clipboard_images.rs, src/server/clipboard_image.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/clipboard_images.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"863b09be14e07b97f4739cf20b5529b88278213129d46519f22476656fe71da0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060handle.is_null() || handle == INVALID_HANDLE_VALUE\u0060 appears character-identically in 2 files \u2014 src/client/terminal_setup.rs, src/platform/windows.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/terminal_setup.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e7ac783318050d5b668991a1ccb87a9920e99fb95ff5381f710bdf7a5b7cd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.is_empty() || line.starts_with(\u0027#\u0027)\u0060 appears character-identically in 2 files \u2014 src/input/parse.rs, src/raw_input.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input/parse.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"343a3cec1f49c003bb5d0a43dc70d37ec39eb9bef4e709bcf4613a27671b4107"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metrics.max_offset_from_bottom \u003E 0 \u0026\u0026 body.width \u003E 1\u0060 appears character-identically in 3 files \u2014 src/client/shell/agent_sidebar.rs, src/client/shell/endpoint_sidebar.rs, src/client/shell/sidebar.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/agent_sidebar.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"befd9fdefb56b0f2d4b318d91e51e1faf77d99a8ef2a0b680c6f622860bb3662"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060native_upload.is_some() || self.native_graphics.is_pending(client_id)\u0060 appears character-identically in 2 files \u2014 src/server/headless/render.rs, src/server/headless/retained_surface.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/render.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d03780e5dbe3000fcccd1df9217c0a09205db7399a864b43349de878ba5a62c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.source_pane_id.is_some() || params.target_pane_id.is_some()\u0060 appears character-identically in 2 files \u2014 src/app/api/panes.rs, src/cli/pane.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9e8ce0a6769da479889313feb80d92c80fd6c1b025ac3a7c91e8e9d3b9b820"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060runtime.cwd() != Some(live_cwd.clone()) \u0026\u0026 std::time::Instant::now() \u003C deadline\u0060 appears character-identically in 2 files \u2014 src/app/api.rs, src/server/notifications.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"8beb865c65c815d582bdd31ee0aee98352e9a18f8f9a0f626d40c3b164a7fcf4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.pane_exit_checkpoint_pending \u0026\u0026 !self.state.session_dirty\u0060 appears character-identically in 2 files \u2014 src/app/mod.rs, src/app/session.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/mod.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eff72b9c0c85640f6451ecfa6b14c2af69cc811d0d049644acf1223ff100a67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060surface.boot_id == snapshot.boot_id \u0026\u0026 surface.projection_revision == snapshot.revision\u0060 appears character-identically in 2 files \u2014 src/client/shell/link_hover.rs, src/client/shell/state.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/shell/link_hover.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd458b45c22c9e96c0520d2dc2eb493d57eb6818a9a1a2bef9dbb07bdbd4e07"}},{"ruleId":"X5","level":"note","message":{"text":"Nullable reference types not enabled everywhere: 0/1 C# file(s) are in a nullable-enabled context. This repository commits no project file, so nothing sets \u003CNullable\u003Eenable\u003C/Nullable\u003E for it: a file is enabled only by its own \u0060#nullable enable\u0060, by a Unity \u0060csc.rsp\u0060 with \u0060-nullable:enable\u0060 for its assembly, or as a file-based app (\u0060#:\u0060 directives) whose \u0060#:property Nullable\u0060 does not turn it off. NRTs catch a whole class of null-deref bugs at compile time."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80b24de9378624a0ce4846d60457395befcaec8e109ea81d289a370c9f7bfd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060events_after\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/event_hub.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"729f9ab9665e9588f815759f2a21040e1143c7971b538cd339bcebc9d10a0eb6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060current_sequence\u0060 turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/event_hub.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac2afe55fe88f3ab23a20170c0b72096861c79c2772a9a15d7c4a13e7b48710"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060handle_pane_move\u0060 turns every \u0060Err\u0060 into \u0060\u0022/\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/panes.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf6c300eaa10ccff1c3c1dac9ccf0a261cd20a2b2b339cf85b202893f2c326"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060default_cwd_for_workspace\u0060 turns every \u0060Err\u0060 into \u0060\u0022/\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/plugins/context.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f6a3d8b923c0c274aee55947816ecdc31f847f4c4080847ba5f692cee0553b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060handle_api_request_after_internal_events_drained\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4ff3588f6f95fe8676514a43a2c77e66dd091b734b7c73929b02f0ac5c35d0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060resize\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pane/terminal.rs"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdccca203e44a3a55040c3587b0870f076c47c113a1bba8bd1751238ae3ca90"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060handle_notification_show_api\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless/notifications.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"208cd7247cfbcf69dae1b1520d050e1ae276fdabb62dd60572965834472b709e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060handle_client_window_title_api\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c52ff46a0bcb1fdb6afee4d0d784582f56b8e65b2aad2a2e775f24bc0574bb4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060handle_request\u0060 turns every \u0060Err\u0060 into \u0060r#\u0022{\u0022id\u0022:\u0022\u0022,\u0022error\u0022:{\u0022code\u0022:\u0022internal_error\u0022,\u0022message\u0022:\u0022failed to encode response\u0022}}\u0022#.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4c4e62520d62d0e310ddc5d3a085a3926cf28924b2e1d0ca2514d03d918ba2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060error_response_json\u0060 turns every \u0060Err\u0060 into \u0060r#\u0022{\u0022id\u0022:\u0022\u0022,\u0022error\u0022:{\u0022code\u0022:\u0022internal_error\u0022,\u0022message\u0022:\u0022failed to encode error response\u0022}}\u0022#.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/api/server.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"446c0353a00f75044b7bcc70bc29e49b7af2d807b3485906774c5afad61cf68d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060legacy_identity_cwd\u0060 turns every \u0060Err\u0060 into \u0060\u0022/\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/snapshot.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01a7c3d4efd1870bfa4188f73e5750227780ff11952f10b3b20b9209b98cd26"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060capture_tab\u0060 turns every \u0060Err\u0060 into \u0060\u0022/\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/persist/snapshot.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c16c5e7d85c940ca84cb2895f65258c8817885791a085dfb9834802085eced"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060process_task_children\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/platform/linux.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"491244f05976c24cc7c7d94b7b8d65ba2952b777df6985fb21ba14dee6e76093"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060error_response\u0060 turns every \u0060Err\u0060 into \u0060r#\u0022{\u0022id\u0022:\u0022\u0022,\u0022error\u0022:{\u0022code\u0022:\u0022serialization_error\u0022,\u0022message\u0022:\u0022failed to serialize endpoint response\u0022}}\u0022#.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/client_commands.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"92126114f7940b1c5f74128db18ea6439a7e7ed83594a5ca7d5a0dc6ee989ce1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060notification_show_result\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/headless.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced7ede362c23553d7927ebd057a301186aa710996e48a062ac329db93da0b81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_shell\u0060 turns every \u0060Err\u0060 into \u0060\u0022%CompSpec%\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/portable-pty/src/cmdbuilder.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"0886788984d52ea8ab0d0a43a2e3d8c889deda81a623ff17b326a9b913741633"}}],"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-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-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-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-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-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-88","guid":"32dec161-013d-ac58-8599-1309e12e67f5","name":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/88.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"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-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":17,"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."]}]}