Skip to content

fix: prompt when network argument is empty - #410

Open
ayaanoncrypto wants to merge 1 commit into
genlayerlabs:v0.40-devfrom
ayaanoncrypto:fix/empty-network-prompt-clean
Open

fix: prompt when network argument is empty#410
ayaanoncrypto wants to merge 1 commit into
genlayerlabs:v0.40-devfrom
ayaanoncrypto:fix/empty-network-prompt-clean

Conversation

@ayaanoncrypto

Copy link
Copy Markdown

Summary

Closes #306.

An empty string passed to genlayer network set "" now follows the interactive network selector path. The CLI no longer emits a malformed Network not found error for an empty argument.

How did you test your changes?

  • git diff --check
    • Updated the focused setNetwork test to cover empty-string input.
    • Local formatting and Vitest execution were unavailable because dependencies were not installed in the sandbox.

@github-actions
github-actions Bot changed the base branch from main to v0.40-dev August 19, 2026 20:42
@github-actions

Copy link
Copy Markdown

This PR targeted main, which is only the default/static branch.

I retargeted it to v0.40-dev, the active development branch. Pushes to v0.40-dev automatically fast-forward main.

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ayaanoncrypto, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 992f4e61-ea9a-4b6c-9514-d11e505dd891

📥 Commits

Reviewing files that changed from the base of the PR and between 3396474 and 3320b3e.

📒 Files selected for processing (2)
  • src/commands/network/setNetwork.ts
  • tests/actions/setNetwork.test.ts

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.

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.

[Bug] setNetwork treats empty string argument as valid input bypassing interactive prompt

1 participant