Files
start-os/core/src
Matt Hill bb745c43cc fix: createTask with undefined input values fails to create task
Bug: Setting a task input property to undefined (e.g. { prune: undefined })
to express "this key should be deleted" resulted in no task being created.
JSON.stringify strips undefined values, so { prune: undefined } serialized
as {}, and is_partial_of({}, any_config) always returns true — meaning
input-not-matches saw a "match" and never activated the task.

Fix (two parts):
- SDK: coerce undefined to null in task input values before serialization,
  so they survive JSON.stringify and reach the Rust backend
- Rust: treat null in a partial as matching a missing key in the full
  config, so tasks correctly deactivate when the key is already absent

Assumption: null and undefined/absent are semantically equivalent for
StartOS config values. Input specs produce concrete values (strings,
numbers, booleans, objects, arrays) — null never appears as a meaningful
distinct-from-absent value in real-world configs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 14:28:04 -06:00
..
2025-12-22 13:39:38 -07:00
2025-12-22 13:39:38 -07:00
2025-12-22 13:39:38 -07:00
2026-01-27 14:44:41 -08:00
2026-03-18 23:49:29 -06:00
2025-12-22 13:39:38 -07:00
2026-01-27 14:44:41 -08:00
2025-12-22 13:39:38 -07:00
2025-12-22 13:39:38 -07:00