docs(coding-agent): document async extension factories closes #3469

This commit is contained in:
Mario Zechner
2026-04-20 21:45:17 +02:00
parent 029a6e54be
commit ed89480f20
4 changed files with 85 additions and 1 deletions

View File

@@ -335,6 +335,8 @@ export default function (pi: ExtensionAPI) {
}
```
The default export can also be `async`. pi waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling `pi.registerProvider()`.
**What's possible:**
- Custom tools (or replace built-in tools entirely)
- Sub-agents and plan mode