Commit Graph
2 Commits
Author SHA1 Message Date
ggbdpq ee2a7c7e86 sessions: OpenCode child rows no longer crowd the parent out of the trace window
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)
2026-10-17 00:39:35 +08:00
mofelee 38b4a9d984 feat: export gateway and agent conversation waterfalls to Langfuse (#581) 2026-10-03 01:43:32 +08:00