fix: code review fixes from gt-2tp and gt-y0t

- Replace custom contains() with strings.Contains in init.go
- Make session stop --force flag actually work
- Update session.Manager.Stop() to accept force parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-16 13:56:32 -08:00
parent eef28f3ee5
commit 29e4436891
5 changed files with 32 additions and 35 deletions

View File

@@ -105,7 +105,7 @@ func TestStopNotFound(t *testing.T) {
}
m := NewManager(tmux.NewTmux(), r)
err := m.Stop("Toast")
err := m.Stop("Toast", false)
if err != ErrSessionNotFound {
t.Errorf("Stop = %v, want ErrSessionNotFound", err)
}