Commit graph

4 commits

Author SHA1 Message Date
Ubuntu
d4260f71b4 chore(gitignore): ignore built binary and .security-reviewed marker
Le commit precedent a accidentellement inclus le binaire compile et le
marker de security review. Ces fichiers ne doivent jamais etre versionnes.
2026-04-15 00:00:23 +00:00
Ubuntu
978b60ccf7 feat: SessionLifecycleManager — auto-detect and repair dead tmux sessions
- Add internal/lifecycle/manager.go with Manager struct, Run() ticker loop
  (15s interval), EnsureAllSessions() for boot-time session creation, and
  reconcile() that recreates idle sessions and recovers working ones via
  SetFailed + CreateSession
- Add state.SetFailed() to record crash timestamp on SessionState
- Add internal/lifecycle/manager_test.go with mock tmux client and 3 tests:
  TestReconcileCreatesDeadSession, TestReconcileRecoversCrashedSession,
  TestEnsureAllSessions — all pass
- Wire lifecycle.Manager into cmd/claude-failover/main.go after state init

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 18:02:25 +00:00
Ubuntu
2d43580c18 chore: add CLAUDE.md and update gitignore 2026-04-14 17:55:29 +00:00
cf4957010f feat: initial project structure 2026-04-14 13:29:24 +00:00