Skip to content

Add unit tests for context-detector module #367

@nikolasdehor

Description

@nikolasdehor

Description

The context-detector module in .aios-core/core/session/context-detector.js implements hybrid session type detection but has no test coverage.

Proposed Changes

  • Add 34 unit tests covering:
    • Hybrid detection (conversation vs file-based)
    • Command extraction from message content
    • Workflow pattern matching (story, epic, backlog)
    • Session state persistence and directory creation
    • Expired session cleanup
    • Session ID generation

Acceptance Criteria

  • All 34 tests pass
  • No external dependencies required

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions