Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor: split google unit tests, AgentSession modules, and feed mapping tests

4 months ago

a2509ae
Authored
mweinbach5/22/2026, 12:03:21 AM
Break the google-native interactions unit suite into focused files under
test/runtime/google-native/, extract AgentSession manager/persist/system-prompt
and cost-tracking modules, and split the desktop feed-mapping test monolith
into reasoning, transcript, and stream replay files.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parentf1c712a

18 files changed
  • apps/desktop/test/store-feed-mapping.reasoning.test.ts+593−0
  • apps/desktop/test/store-feed-mapping.stream.test.ts+1869−0
  • apps/desktop/test/store-feed-mapping.test.ts+2−2788
  • apps/desktop/test/store-feed-mapping.transcript.test.ts+353−0
  • src/server/session/AgentSession.ts+106−431
  • src/server/session/AgentSessionCostTracking.ts+97−0
  • src/server/session/AgentSessionFromPersisted.ts+191−0
  • src/server/session/AgentSessionManagerRegistry.ts+190
−0
  • src/server/session/AgentSessionSystemPrompt.ts+113−0
  • test/runtime/google-native-interactions.unit.test.ts+2−1841
  • test/runtime/google-native/unit.apiKey.test.ts+42−0
  • test/runtime/google-native/unit.mapping.test.ts+377−0
  • test/runtime/google-native/unit.messages.test.ts+380−0
  • test/runtime/google-native/unit.request.test.ts+360−0
  • test/runtime/google-native/unit.stream.test.ts+376−0
  • test/runtime/google-native/unit.streamThoughts.test.ts+157−0
  • test/runtime/google-native/unit.streamTools.test.ts+232−0
  • test/runtime/google-native/unit.tools.test.ts+74−0