Skip to content

Add macOS log viewer support with OS-aware log path selection#239

Merged
clcollins merged 1 commit into
mainfrom
srepd/macos-log-viewer
May 30, 2026
Merged

Add macOS log viewer support with OS-aware log path selection#239
clcollins merged 1 commit into
mainfrom
srepd/macos-log-viewer

Conversation

@clcollins
Copy link
Copy Markdown
Owner

Summary

  • logFilePathForOS() selects log path by OS: Linux ~/.config/srepd/debug.log, macOS ~/Library/Logs/srepd.log
  • Fixed InitialModelWithConfig missing logViewer/logFilePath init
  • 3 new tests

Closes #196

🤖 Generated with Claude Code

Set logFilePath based on runtime.GOOS so the log viewer pane reads from
the correct platform-specific location: ~/Library/Logs/srepd.log on
macOS and ~/.config/srepd/debug.log on Linux. Also fixes
InitialModelWithConfig missing logViewer and logFilePath initialization.

Closes #196

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.74%. Comparing base (0d0986a) to head (f056f2e).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/tui/model.go 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #239      +/-   ##
==========================================
+ Coverage   67.73%   68.74%   +1.01%     
==========================================
  Files          26       26              
  Lines        3790     3750      -40     
==========================================
+ Hits         2567     2578      +11     
+ Misses       1088     1036      -52     
- Partials      135      136       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clcollins clcollins merged commit 5d46436 into main May 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS log viewer support

2 participants