fix(MESHAGEN-004-2): CU-86akn96pm 3 review findings across 2 files - #150
flamingo[bot] wants to merge 2 commits into
Conversation
| @@ -1,6 +1,5 @@ | |||
| /* | |||
There was a problem hiding this comment.
🦩 🔴 win-utils.js missing canonical Apache 2.0 header form / has non-standard author tag
Removed the non-canonical @author Bryan Roe line from the Apache 2.0 header block at the top of modules/win-utils.js, leaving the rest of the license text unchanged and matching the canonical format used elsewhere in modules/.
🤖 Prompt for AI agents
In modules/win-utils.js around line 1, review and complete this code-review fix: win-utils.js missing canonical Apache 2.0 header form / has non-standard author tag.
What the draft fix changed: Removed the non-canonical `@author Bryan Roe` line from the Apache 2.0 header block at the top of modules/win-utils.js, leaving the rest of the license text unchanged and matching the canonical format used elsewhere in modules/.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer
| // Windows will automatically restart explorer if you kill it | ||
| process.kill(pids[0]); | ||
| } | ||
| return (this.autoHide(tsid)); | ||
| return (rv[8] == 3); | ||
| } | ||
| } | ||
| }; | ||
| } | ||
|
|
||
|
|
||
| module.exports = new winutils(); No newline at end of file | ||
| module.exports = new winutils(); |
There was a problem hiding this comment.
🦩 🟠 autoHide setter branch recurses without terminating condition on repeated null-check
In the autoHide setter branch (taskBar.autoHide function), replaced the recursive return (this.autoHide(tsid)); call with a direct computed return return (rv[8] == 3);, using the already-set value in rv[8] to determine the boolean result instead of re-querying the registry via recursion.
🤖 Prompt for AI agents
In modules/win-utils.js around line 36, review and complete this code-review fix: autoHide setter branch recurses without terminating condition on repeated null-check.
What the draft fix changed: In the `autoHide` setter branch (taskBar.autoHide function), replaced the recursive `return (this.autoHide(tsid));` call with a direct computed return `return (rv[8] == 3);`, using the already-set value in `rv[8]` to determine the boolean result instead of re-querying the registry via recursion.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer
| @@ -1,5 +1,5 @@ | |||
| /* | |||
There was a problem hiding this comment.
🦩 🔴 bundle_detection.c has an incomplete/non-standard Apache 2.0 header (missing Intel copyright)
Changed the license header at the top of meshcore/MacOS/bundle_detection.c from "Copyright 2025" to "Copyright 2025 Intel Corporation", matching the Apache 2.0 header convention used elsewhere in meshcore/ (e.g. ILibProcessPipe.c). No other content in the file was modified.
🤖 Prompt for AI agents
In meshcore/MacOS/bundle_detection.c around line 1, review and complete this code-review fix: bundle_detection.c has an incomplete/non-standard Apache 2.0 header (missing Intel copyright).
What the draft fix changed: Changed the license header at the top of meshcore/MacOS/bundle_detection.c from "Copyright 2025" to "Copyright 2025 Intel Corporation", matching the Apache 2.0 header convention used elsewhere in meshcore/ (e.g. ILibProcessPipe.c). No other content in the file was modified.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟢 98 high — react 👍/👎 to teach the reviewer
Closes 3 review findings across 2 files.
Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.
modules/win-utils.js:1modules/win-utils.js:36meshcore/MacOS/bundle_detection.c:1What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.
Run: https://product-hub.flamingo.so/admin/code-review
Run id:
06986371-2b8e-4388-aee4-5d1dc04f8838Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.
ClickUp task: CU-86akn96pm MeshAgent review findings sweep (12 PRs)