| … | … | @@ -0,0 +1,355 @@ | |
| 315 | + | if (Array.isArray(value)) { | |
| 316 | + | return `${indent}<array>\n${value.map((item) => plistValue(item, inner)).join("\n")}\n${indent}</array>`; | |
| 317 | + | } | |
| 318 | + | const entries = Object.entries(value as Record<string, unknown>); | |
🟠 High policy/policyTemplates.ts:318
t3 policy templates --policy ... throws and writes no templates when a valid policy contains a nullable setting such as worktreeCleanup: { value: null, locked: true }. plistValue falls through to Object.entries(value) for null; handle null using a representation the macOS policy reader can round-trip.
No longer relevant as of 0271d7cd9c31b9a6577ba4c0570fe97f8e8eea9e
Fixed in 0271d7cd9c: a null value is refused with an error naming the setting instead of crashing. A plist has no null, so there is no representation to round-trip.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.