multica/server
yushen 96cfdc2e27 fix(agent): fix data races, add tests, and fix raw protocol detection
- Fix data race on output strings.Builder in codex backend by adding
  mutex and waiting for reader goroutine before reading final output
- Fix data race on onTurnDone by initializing it before reader starts
- Fix bug where notificationProtocol zero value "" never matched
  "unknown", silently dropping all raw v2 notifications from codex
- Add round-robin polling to prevent runtime starvation in poll loop
- Log errors in claude handleControlRequest instead of silently dropping
- Add 35 tests for pkg/agent covering claude parsing, codex JSON-RPC,
  protocol detection, event handling, and helper functions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 14:21:10 +08:00
..
cmd fix(agent): fix data races, add tests, and fix raw protocol detection 2026-03-24 14:21:10 +08:00
internal feat(runtime): add local codex daemon pairing 2026-03-24 12:03:14 +08:00
migrations feat(runtime): add local codex daemon pairing 2026-03-24 12:03:14 +08:00
pkg fix(agent): fix data races, add tests, and fix raw protocol detection 2026-03-24 14:21:10 +08:00
go.mod feat(server): implement full REST API with JWT auth and real-time WebSocket 2026-03-22 11:50:03 +08:00
go.sum feat(server): implement full REST API with JWT auth and real-time WebSocket 2026-03-22 11:50:03 +08:00
sqlc.yaml feat: pivot to AI-native task management platform (#232) 2026-03-20 17:55:49 +08:00