Greptile P1: the patch-then-Update path in TestRestoreRoundTrip was discarding GetSession's ok/err. A missed row would have handed UpdateSession a zero-value SessionRecord (ID==""), which matches zero rows and returns nil — Phase B then fails with the misleading "agent session id lost across restart" instead of the real cause. Fixed at the patch site (the only write path that could swallow the error) and at the two read-then-assert sites in TestDetectingPersistsAcrossRestart for consistency. Downstream assertions there would already fail loudly, but the explicit ok/err check makes the failure mode unambiguous. All 219 tests still pass under -race. |
||
|---|---|---|
| .. | ||
| internal | ||
| cdc_wiring.go | ||
| go.mod | ||
| go.sum | ||
| lifecycle_wiring.go | ||
| main.go | ||
| sqlc.yaml | ||
| wiring_test.go | ||