Files
pi/packages/coding-agent/src/core
T
Mario Zechner b1fb910625 refactor(coding-agent): unify tool and event handler context creation
Tools now use ExtensionRunner.createContext() instead of a separate
inline context factory. This ensures tools and event handlers share
the same context, fixing ctx.shutdown() and other context methods.

- Made ExtensionRunner.createContext() public
- Changed wrapRegisteredTools to accept ExtensionRunner instead of getContext callback
- Create ExtensionRunner when SDK custom tools are present (not just extensions)
- Removed redundant inline context factory from sdk.ts
b1fb910625 ยท 2026-01-08 03:45:39 +01:00
History
..
2025-12-24 22:45:19 +01:00
2025-12-22 19:28:26 +01:00