gemini-cli - 💡(How to fix) Fix Infinite wait pm2 logs [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25792Fetched 2026-04-23 07:45:16
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

> /about
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

whenever the cli tries to run pm2 logs it runs infinitely unless i break the prompt and tell it to use pm2 logs --nostream command so it doesn't stay opened infinitely in the shell

What did you expect to happen?

either stop the shell if its looking infinite to the cli or use --nostream argument

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Using the --nostream argument with pm2 logs may prevent the command from running infinitely.

Guidance

  • The issue seems to be related to the default behavior of pm2 logs command, which may be waiting for new log entries, causing it to run indefinitely.
  • To verify this, try running pm2 logs with the --nostream argument, as you've already done, to see if it exits as expected.
  • Consider adding the --nostream argument to your pm2 logs command by default to prevent infinite runs.
  • If the issue persists, investigate the pm2 configuration to see if there are any settings that could be causing this behavior.

Notes

The provided information does not give a clear indication of the root cause, so these suggestions are based on the observed behavior and the effect of the --nostream argument.

Recommendation

Apply workaround: using pm2 logs --nostream to prevent infinite runs, as it has already been shown to resolve the issue in the given context.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix Infinite wait pm2 logs [1 participants]