Commit 0b64492
committed
fix(pi-plugin): retrospective provider uses correct pi-coding-agent API (#201)
loadDefaultPiSessionDeps() looked for SessionManager.listSessions and a
public loadEntriesFromFile export, neither of which pi-coding-agent provides:
the class exports the static listAll() (verified in session-manager.ts), and
loadEntriesFromFile is internal (not re-exported from the package index).
So the retrospective dream task threw "Pi session APIs unavailable" and
silently reported "Skipped (no work)".
Use SessionManager.listAll, and derive entry loading from the public
parseSessionEntries + readFileSync when loadEntriesFromFile is absent (kept as
an optional path so a future public export still works).
Extracted from @kachook's PR #201 (the two real-code changes only; the PR
branch predated the v0.30.2 WebSocket migration and carried a stale revert +
version churn). Co-authored-by: kachook <kachook@users.noreply.github.com>1 parent 952be13 commit 0b64492
1 file changed
Lines changed: 16 additions & 8 deletions
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
| 198 | + | |
197 | 199 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 200 | + | |
| 201 | + | |
204 | 202 | | |
205 | | - | |
| 203 | + | |
206 | 204 | | |
207 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | 217 | | |
210 | 218 | | |
| |||
0 commit comments