mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
d9326fcf21
Extensions were being loaded automatically by SetupAgent but the context was never initialized unless the SDK user explicitly called SetExtensionContext. This left extensions with a zero-value Context where all function fields are nil. Now kit.New() automatically calls SetExtensionContext with minimal defaults (CWD, Model, Interactive=false) when extensions are loaded. SDK users can still call SetExtensionContext to override with richer implementations (TUI callbacks, prompts, etc.). Combined with the normalizeContext() safety net in the runner, extensions are now guaranteed to work in SDK mode without explicit context wiring.