Skip to content

fix: clearer MOSTRO_PUBKEY setup error for first-time users - #189

Open
VedantMadane wants to merge 1 commit into
MostroP2P:mainfrom
VedantMadane:fix/issue-184
Open

fix: clearer MOSTRO_PUBKEY setup error for first-time users#189
VedantMadane wants to merge 1 commit into
MostroP2P:mainfrom
VedantMadane:fix/issue-184

Conversation

@VedantMadane

@VedantMadane VedantMadane commented Aug 25, 2026

Copy link
Copy Markdown

Summary

Clearer MOSTRO_PUBKEY setup error

Changes

  • Expand MOSTRO_PUBKEY missing error with ~/.config/mostro setup hint
  • Clarify that the config directory is not auto-created

Fixes #184

Summary by CodeRabbit

  • Bug Fixes
    • Improved configuration error guidance for missing MOSTRO_PUBKEY.
    • Added instructions for creating and sourcing ~/.config/mostro/env.sh, including a note that the directory must be created manually.

- Expand MOSTRO_PUBKEY missing error with ~/.config/mostro setup hint
- Clarify that the config directory is not auto-created

Fixes MostroP2P#184

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7ffa3ffc-1dd7-49d1-af63-9dc4a27c9071

📥 Commits

Reviewing files that changed from the base of the PR and between 2c7a670 and ff7f4a2.

📒 Files selected for processing (1)
  • src/cli.rs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The MOSTRO_PUBKEY configuration error now documents ~/.config/mostro/env.sh and states that the configuration directory must be created manually.

Changes

Configuration guidance

Layer / File(s) Summary
Expand MOSTRO_PUBKEY setup guidance
src/cli.rs
The error message now includes environment-file setup instructions and the manual directory-creation requirement.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to ff7f4

This is a localized clarification to the MOSTRO_PUBKEY setup error, with no actionable merge-blocking risk remaining beyond normal checks and review.

Suggested reviewers: grunch

Poem

A rabbit found a key in the shell,
And wrote its path where env vars dwell.
The folder waits for paws to make,
Then MOSTRO_PUBKEY guides the wake.
Setup now hops clear as day.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: improving the MOSTRO_PUBKEY setup error for first-time users.
Linked Issues check ✅ Passed The change addresses issue #184 by clarifying MOSTRO_PUBKEY setup, retaining the supported key-provision methods, and explaining that ~/.config/mostro is not created automatically.
Out of Scope Changes check ✅ Passed The pull request changes only the MOSTRO_PUBKEY configuration error message. No unrelated changes are present.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Initial setup: MOSTRO_PUBKEY not set.

1 participant