Skip to content

feat(ui): add rain session logger and selector log panel#14

Merged
bschellenberger2600 merged 1 commit into
mainfrom
feat/tui-status-log-export
May 3, 2026
Merged

feat(ui): add rain session logger and selector log panel#14
bschellenberger2600 merged 1 commit into
mainfrom
feat/tui-status-log-export

Conversation

@bschellenberger2600
Copy link
Copy Markdown
Member

@bschellenberger2600 bschellenberger2600 commented Apr 19, 2026

Summary

  • add internal/sessionlog JSONL logger with git-fire-compatible structured event fields and subscribe hooks for UI projection
  • wire runRainTUIStream to initialize session logger, pass it into selector, and preserve existing TUI-then-CLI handoff to runRainOnRepos
  • add selector status strip, toggleable log panel (Shift+L), and text export (e), plus README docs for new controls

Test plan

  • go test ./internal/sessionlog -count=1
  • go test ./internal/ui -run 'StatusGlyph|RenderLogExport|ToggleLogPanel|RepoSelector' -count=1
  • go test ./cmd -run 'runRainTUIStream|RunRain|Root' -count=1
  • go test ./...

Made with Cursor


Note

Medium Risk
Adds new session log file writing and expands TUI behavior/state (status strip, log panel, export), which could affect interactive runs and filesystem permissions/paths, but does not change core git fetch/sync logic.

Overview
Introduces a new internal/sessionlog JSONL session logger (git-fire-compatible LogEntry shape) that writes start/end markers, supports local subscribers, and sanitizes error text.

Wires the --rain streaming TUI (runRainTUIStreamRunRepoSelectorStream) to create/close a session logger and record scan/progress/completion events, and extends the selector UI with a status strip plus a toggleable in-TUI log panel (Shift+L) and log export to ~/.cache/git-rain/exports/ (e). README docs and unit tests are added for the new logging/export behavior.

Reviewed by Cursor Bugbot for commit d43d0b6. Bugbot is set up for automated code reviews on this repo. Configure here.

Preserve rain selector-to-CLI flow while adding structured session logging,
an in-TUI status/log surface, and text export so operators and agents get
consistent audit trails without forcing TUI-only execution.

Made-with: Cursor
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

Warning

Rate limit exceeded

@bschellenberger2600 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0bf10bd1-ee9b-4ec8-b6db-1d5740cf1f60

📥 Commits

Reviewing files that changed from the base of the PR and between 692d726 and d43d0b6.

📒 Files selected for processing (8)
  • README.md
  • cmd/root.go
  • internal/sessionlog/logger.go
  • internal/sessionlog/logger_test.go
  • internal/ui/repo_selector.go
  • internal/ui/status_log.go
  • internal/ui/status_log_test.go
  • internal/ui/view_layout.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/tui-status-log-export

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bschellenberger2600 bschellenberger2600 merged commit 3b65f5e into main May 3, 2026
11 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.

1 participant