diff --git a/session.go b/session.go index 4dd81cc..197a861 100644 --- a/session.go +++ b/session.go @@ -188,7 +188,7 @@ func FindSessionForProcess(claudeDir string, proc Process) (string, []JSONLMessa }) newest := topLevel[0] - messages, err := TailReadJSONL(newest, 5) + messages, err := TailReadJSONL(newest, 200) if err != nil { return "", nil, err } diff --git a/state.go b/state.go index 5cf1035..2fc520e 100644 --- a/state.go +++ b/state.go @@ -63,8 +63,8 @@ func DetectState(messages []JSONLMessage, now time.Time) SessionState { return Unknown } -// ExtractPreview finds the last assistant text content and returns the first -// 5 lines, truncated to 300 characters. +// ExtractPreview finds the last assistant text content and returns +// the first 5 lines, truncated to 300 characters. func ExtractPreview(messages []JSONLMessage) string { for i := len(messages) - 1; i >= 0; i-- { msg := messages[i]