Skip to content

fix(rl): whitespace-only API logs show placeholder, not blank#477

Draft
willccbb wants to merge 1 commit intocursor/prime-rl-logs-timeout-2d2efrom
cursor/log-display-whitespace-issue-0d41
Draft

fix(rl): whitespace-only API logs show placeholder, not blank#477
willccbb wants to merge 1 commit intocursor/prime-rl-logs-timeout-2d2efrom
cursor/log-display-whitespace-issue-0d41

Conversation

@willccbb
Copy link
Copy Markdown
Member

Summary

When prime rl logs runs without --follow, the API can return a response that is only whitespace. Previously, raw mode (--raw) treated that string as truthy and printed it, so users saw a blank screen instead of the yellow "No logs available yet." message.

Changes

  • Poll for up to 30 seconds (5 second intervals) until log text has non-whitespace content, matching the wait behavior described for this flow.
  • Use raw_logs.strip() for the raw-mode display branch so whitespace-only responses are handled like empty logs.

Formatted mode was already correct because clean_logs strips empty lines; the mismatch was between polling semantics and raw display.

Open in Web Open in Cursor 

Poll up to 30s for non-whitespace log content before displaying, and use
raw_logs.strip() for the raw-mode print check so API responses that are
only whitespace show the same message as truly empty logs.

Co-authored-by: will brown <willccbb@users.noreply.github.com>
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.

2 participants