Skip to content

test: unit tests for agent SDK transport, session store, and hook log #186

@justrach

Description

@justrach

Summary

Add unit tests for the new Agent SDK integration layer.

Test targets

src/agent_sdk.zig

  • test: agent_sdk falls back to codex_appserver when SDK not found
  • test: agent_sdk buildAgentArgs serialises allowed_tools array correctly
  • test: agent_sdk buildAgentArgs serialises mcp_servers map correctly

src/sessions.zig

  • test: session store evicts LRU when capacity exceeded
  • test: session store touch updates last_used timestamp
  • test: session store list returns all active sessions

src/tools.zig (hook log)

  • test: hook log serialises to valid JSON array
  • test: hook log block action prevents tool call entry

Files

  • src/agent_sdk.zig: test block
  • src/sessions.zig: test block
  • src/tools.zig: test block

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:p0Highest prioritystatus:blockedWork item is blocked by dependency

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions