Files
DeepSeek-Reasonix/internal/nilutil
Sivan b7e7f11067 fix(control): harden interface boundaries against typed-nil panics (#2607)
A nil *ProviderAutoPlanClassifier assigned to an interface field passed
the != nil guard and panicked on its nil receiver (auto-plan classifier,
desktop). Harden the whole class: add nilutil.IsNil to detect interfaces
wrapping a typed nil, and normalize optional-interface inputs at their
constructor/update boundaries — agent sink/gate/hooks, coordinator and
controller sinks, the classifier, job-manager sink, and event sinks.
provider.New now rejects a factory that returns a typed-nil provider so
bad setup fails early instead of crashing later. No provider-visible
prompt, tool-schema, or serialization changes.
2026-06-01 08:52:28 -07:00
..