ralph-claude-code/tests/unit
Frank Bria 9110e3d3ad
feat(session): implement session expiration with configurable timeout (#83)
- Add CLAUDE_SESSION_EXPIRY_HOURS configuration variable (default: 24)
- Add get_session_file_age_hours() helper with cross-platform stat support
- Modify init_claude_session() to check session age and remove expired sessions
- Add --session-expiry CLI flag to configure expiration (positive integers only)
- Update help text with new option and example
- Add 10 new tests for session expiration (TDD approach)

Closes #51

Test count: 276 → 286 (100% pass rate)

Co-authored-by: Test User <test@example.com>
2026-01-10 19:10:29 -07:00
..
test_cli_modern.bats fix(loop): replace non-existent --prompt-file with -p flag 2026-01-09 13:44:50 -07:00
test_cli_parsing.bats test(cli): add --allowed-tools test and code review report 2026-01-08 22:42:50 -07:00
test_exit_detection.bats Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00
test_json_parsing.bats fix(analyzer): address code review feedback 2026-01-09 17:59:08 -07:00
test_rate_limiting.bats Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00
test_session_continuity.bats feat(session): implement session expiration with configurable timeout (#83) 2026-01-10 19:10:29 -07:00