Repository navigation
Commit 627eaaa
fix(session): wire SessionGoal/SessionLedger into the httpapi app node list (#9)
session.goal.* and session.ledger.* routes were 500ing with "Service not
found" from cold boot on merged dev: the app's LayerNode.group in
packages/opencode/src/server/routes/instance/httpapi/server.ts (the V1
HttpApiApp -- what test:httpapi and the live server actually build
against, not packages/server/routes.ts) never listed SessionGoal.node /
SessionLedger.node after they landed in #7 (TKT-317).
Found while working TKT-315, extracted standalone per Ethan's
sequencing call: this is a live defect on merged dev, not scoped to
TKT-315's own PR, and TKT-315's own gate should not hold Gemma's
slice-5 gate hostage (test:httpapi effect mode is what catches this
class of bug).
Validation: bun typecheck 30/30. test:httpapi mode=coverage 221/0,
mode=auth 221/0 (both were crashing on every goal/ledger scenario
before this fix). mode=effect 220/1 -- the crash is gone; the one
remaining failure (v2.session.goal.get, "a session with no goal set
should report no data") is TKT-317's own pre-existing assertion bug,
now reachable for the first time instead of masked by the crash. Filed
as feedback anomalyco#145, documented as a named exception in FORK.md's
known-red table, matching the TKT-305 convention.
Co-authored-by: Felicity <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 064bbdd commit 627eaaa
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
| |||
0 commit comments