Skip to content

Commit 35e5d7f

Browse files
committed
Fix profile artifact validation: add missing field allowlist entries (v3.1.6)
Fixes #46 — "profile contains unknown field(s): inputStack" The hardware profile artifact validator (hardwareProfileArtifact.ts) has a strict field allowlist for profile persistence. Four fields added in recent versions were missing from this allowlist: audioCodec, nicChipset, wifiChipset, inputStack. When the scanner produced a profile with these fields, the artifact normalizer threw "profile contains unknown field(s): inputStack", causing the scan-hardware IPC handler to fail. This happened on EVERY scan, not just edge cases. Fix: Add all four missing fields to the assertNoUnknownKeys allowlist.
1 parent 0bc9df8 commit 35e5d7f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

electron/hardwareProfileArtifact.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ export function normalizeHardwareProfile(value: unknown): HardwareProfile {
139139
'bootArgs',
140140
'isLaptop',
141141
'isVM',
142+
'audioCodec',
142143
'audioLayoutId',
144+
'nicChipset',
145+
'wifiChipset',
146+
'inputStack',
143147
'strategy',
144148
'scanConfidence',
145149
], 'profile');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opcore-oneclick",
33
"private": true,
4-
"version": "3.1.5",
4+
"version": "3.1.6",
55
"description": "OpCore-OneClick deployment utility",
66
"author": "OpCore-OneClick contributors",
77
"main": "dist-electron/electron/main.js",

0 commit comments

Comments
 (0)