Skip to content

feat(run): preamble streaming + docs (Customization)#91

Open
flyingrobots wants to merge 3 commits intomainfrom
pr/feat-run-preamble-attach
Open

feat(run): preamble streaming + docs (Customization)#91
flyingrobots wants to merge 3 commits intomainfrom
pr/feat-run-preamble-attach

Conversation

@flyingrobots
Copy link
Owner

Adds TTY preamble streaming (🚢🪵🎬 … 🚢🪵✅/❌). Updates docs Customization. Tests for attach/warnings will land in a follow-up.

…end 🚢🪵✅/🚢🪵❌; prefix console lines with ' | ' while keeping raw logs
- Add preamble and confirmation controls to env reference
- Update run/write/command-reference with preamble, glyph defaults, quiet mode
- Note default --no-verify pushes in write/publish docs
- Link env reference from docs index
…s, auto-push notes) and link to env reference
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2025

Warning

Rate limit exceeded

@flyingrobots has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 21 seconds before requesting another review.

⌛ 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.

📥 Commits

Reviewing files that changed from the base of the PR and between c3bab18 and 6f105b4.

⛔ Files ignored due to path filters (1)
  • README.md is excluded by !*.md
📒 Files selected for processing (6)
  • docs/README.md (1 hunks)
  • docs/features/command-reference.md (2 hunks)
  • docs/features/run.md (3 hunks)
  • docs/features/write.md (2 hunks)
  • docs/reference/env.md (2 hunks)
  • lib/commands.sh (1 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pr/feat-run-preamble-attach

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.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 655 to +661
set +e
"${run_argv[@]}" > >(tee -a "$log_path") 2> >(tee -a "$log_path" >&2)
if [ $preamble -eq 1 ]; then
# Prefix console output with " | " while keeping raw logs in $log_path
"${run_argv[@]}" \
> >(tee -a "$log_path" | sed 's/^/ | /') \
2> >(tee -a "$log_path" >&2 | sed 's/^/ | /')
else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Prefix stderr through preamble pipeline

When the preamble is enabled, the stderr stream is redirected with 2> >(tee -a "$log_path" >&2 | sed 's/^/ | /'). Because stdout is redirected to >&2 before the pipe, sed never receives the bytes, so stderr is emitted to the console without the | prefix while stdout is prefixed. Users enabling the feature will see inconsistent formatting and missed prefixes for warnings/errors. Redirect tee’s output through sed and back to stderr (e.g. 2> >(tee -a "$log_path" | sed 's/^/ | /' >&2)) so both streams are formatted consistently while logs remain raw.

Useful? React with 👍 / 👎.

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

Comments