What changed
- traceOpenCodeWindow keeps the latest main sessions. A child is not
exported, so it no longer takes one of the Limit places. Limit newer
children were filling the window and the parent was not read. The JSON
store and the SQLite store share that window.
Run
- TestOpenCodeChildrenDoNotEvictParentTrace failed on a15e576 plus the
test (sqlite and json: parent dropped behind 200 newer children, no
spans) and passes with the window. go test -tags nogui -count=1 -p 2
./internal/sessions/ passed in a sandbox home (648s). gofmt -l on the
three files printed nothing. go vet -tags nogui and go build -tags
nogui with CGO_ENABLED=0 passed for windows, linux and darwin.
- Not run: the rest of the module, -race, a real OpenCode database, or
a Langfuse server.
Full suite: go test -tags nogui -timeout 45m ./... (pipefail, suite-lock) at the four #2494/#2504/#2505/#2490 commits on origin/main a751f5282: 65 packages ok, among them internal/agent (2124s), internal/gateway (1845s) and internal/sessions (148s). internal/gui was red on TestSetAnswersWhileDevinAndProvidersHang alone (the state after a set took 11.5s at load ~250; #1375); internal/gui run again alone: ok (206s).
Generated-by: Grok 4.7 (Cursor)