Home

mweinbach / agent-coworker

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

refactor: split AgentSession lazy imports and session test suite

4 months ago

f1c712a
Authored
mweinbach5/21/2026, 11:59:32 PM
Extract sidecar-safe dynamic imports into AgentSessionLazyImports and
replace the 7k-line session.test.ts monolith with a shared harness plus
14 topic-focused test files under test/session/.

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

Parent6874e62

18 files changed
  • src/server/session/AgentSession.ts+8−60
  • src/server/session/AgentSessionLazyImports.ts+69−0
  • test/session.test.ts+2−7446
  • test/session/agentSession.backups.test.ts+277−0
  • test/session/agentSession.core.test.ts+187−0
  • test/session/agentSession.errors.test.ts+380−0
  • test/session/agentSession.harness.ts+408−0
  • test/session/agentSession.harnessObservability.test.ts+93−0
  • test/session/agentSession.lifecycle.test.ts+698−0
  • test/session/agentSession.mcp.test.ts+173−0
  • test/session/agentSession.messaging.test.ts+2442−0
  • test/session/agentSession.model.test.ts+315−0
  • test/session/agentSession.plugins.test.ts+138−0
  • test/session/agentSession.provider.test.ts+478−0
  • test/session/agentSession.settings.test.ts+814−0
  • test/session/agentSession.skills.test.ts+248−0
  • test/session/agentSession.todos.test.ts+118−0
  • test/session/agentSession.usage.test.ts+1315−0