Skip to content

Fix tail path in script/macos/run --open_with_launchd for OSS channel#10140

Open
sebryu wants to merge 1 commit intowarpdotdev:masterfrom
sebryu:sebryu/fix-launchd-log-path
Open

Fix tail path in script/macos/run --open_with_launchd for OSS channel#10140
sebryu wants to merge 1 commit intowarpdotdev:masterfrom
sebryu:sebryu/fix-launchd-log-path

Conversation

@sebryu
Copy link
Copy Markdown
Contributor

@sebryu sebryu commented May 5, 2026

Summary

./script/run --open_with_launchd (macOS, OSS channel) ends with:

tail: /Users/.../Library/Logs/warp_local.log: No such file or directory

The script hardcodes tail -f ~/Library/Logs/warp_local.log, but the OSS binary writes to ~/Library/Logs/warp-oss.log (see app/src/bin/oss.rslogfile_name: "warp-oss.log"). External contributors who can't install warp-channel-config always build the OSS channel and so always hit this.

This branches on $WARP_CHANNEL so:

  • OSS tails ~/Library/Logs/warp-oss.log (verified path).
  • Local keeps tailing ~/Library/Logs/warp_local.log (unchanged — local channel logfile_name lives in the closed warp-channel-config repo, so I didn't touch it).

Also swaps tail -ftail -F so the tail survives the brief window before launchd has created the log file.

Test plan

  • ./script/run --open_with_launchd on OSS channel → app launches and warp-oss.log is tailed correctly.
  • Internal: ./script/run --open_with_launchd on local channel → unchanged behavior, still tails warp_local.log.

The script hardcoded `tail -f ~/Library/Logs/warp_local.log`, which only
exists for the internal local channel. External contributors who build
the OSS channel got `tail: ... No such file or directory` even though
the app launched successfully.

Branch on $WARP_CHANNEL so OSS tails warp-oss.log (verified in
app/src/bin/oss.rs) and the local channel keeps its existing path.
Also use `tail -F` so the tail survives the brief window before launchd
creates the log file.
@cla-bot cla-bot Bot added the cla-signed label May 5, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 5, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 5, 2026

@sebryu

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @warpdotdev/oss-maintainers.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR updates script/macos/run --open_with_launchd to tail the OSS log file for OSS builds while preserving the existing local-channel log path, and switches to tail -F so tailing survives log creation/rotation.

Concerns

  • No correctness or security concerns found in the changed lines.
  • The changed path only matches the catch-all stakeholder team in .github/STAKEHOLDERS; no single eligible human reviewer could be identified from the provided rules.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot requested review from a team and peicodes and removed request for a team May 5, 2026 10:16
Comment thread script/macos/run
tail -f ~/Library/Logs/warp_local.log
if [ "$WARP_CHANNEL" = "local" ]; then
LOG_FILE=~/Library/Logs/warp_local.log
else
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would prefer we elif here and be specific about the OSS channel, and in the else case log a warning that the channel is unrecognized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants