Skip to content

cli: Name the real Bitcoin Core requirement when it is missing - #99

Open
BenWestgate wants to merge 3 commits into
30-recorded-fingerprint-gatefrom
claude/new-issue-fixes-fvhbl3-84
Open

BenWestgate wants to merge 3 commits into
30-recorded-fingerprint-gatefrom
claude/new-issue-fixes-fvhbl3-84

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Requested by Ben · project thread

Before: without bitcoin-cli, ms32 secret, share, correct, wallet and create all said "Install a reviewed bitcoin-cli before creating a backup." The codex32 <command> hint didn't say what it leaves out, and ms32 correct searched for up to ten seconds before failing.

After:

ms32: bitcoin-cli was not found. Install a reviewed Bitcoin Core 32 or newer and run it with RPC enabled. An unsynced regtest or signet node is enough for practice.
This command uses Bitcoin Core to show the master fingerprint and rank corrections. 'codex32 secret' works without Core but doesn't show the fingerprint.

create and wallet say "This command gives Bitcoin Core the master key." with no fallback. The no-RPC-server message also names Core 32. ms32 correct connects before searching.

How: _bitcoin_core.py gets the new messages and _connected_core() in cli.py adds the second line. In _correct, the Core connection moves from after the search to just after the "already valid" check. Tests cover all three fallbacks (with the search forbidden for correct) and the no-fallback wallet path.

Budget: 5192 of < 5200 (#57 is 5189). 927 tests pass; ruff, mypy and the touched files under -O are clean.

Based on #57 because it changes the same connection path. Closes #84

🤖 Generated with Claude Code

https://claude.ai/code/session_015CuLXqAvAovfoVcUmmogwa


Generated by Claude Code

@BenWestgate BenWestgate self-assigned this Oct 1, 2026
@BenWestgate
BenWestgate marked this pull request as ready for review October 1, 2026 13:54

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

Copy link
Copy Markdown

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.

Reviewed commit: 3b738eb71e

ℹ️ 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 thread src/codex32/cli.py
Comment thread src/codex32/cli.py
@BenWestgate
BenWestgate force-pushed the 30-recorded-fingerprint-gate branch 2 times, most recently from a7efaae to 054e8d9 Compare October 1, 2026 22:02
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@BenWestgate
BenWestgate force-pushed the 30-recorded-fingerprint-gate branch from 054e8d9 to 115f2c2 Compare October 2, 2026 08:57
claude added 2 commits October 2, 2026 12:15
Without bitcoin-cli every ms32 command said "Install a reviewed
bitcoin-cli before creating a backup", even commands that create
nothing, and the codex32 hint didn't say what it leaves out.

Say that Bitcoin Core 32 or newer must run with RPC enabled and that an
unsynced regtest or signet node is enough for practice. Then say what
the command uses Core for: the master fingerprint and correction ranking
for secret, share and correct (with the codex32 fallback and what it
omits), or giving Core the master key for create and wallet.

ms32 correct now connects before its search instead of after it, so a
missing Core no longer costs up to ten seconds of discarded work.

Closes #84

Claude-Session: https://claude.ai/code/session_015CuLXqAvAovfoVcUmmogwa
Connecting before the search made two problems easier to hit. With
damaged input piped to `ms32 correct` and two Core networks running,
the network prompt read the exhausted pipe forever. With stderr
redirected, "Using Bitcoin Core on ..." and a blank line came before
`interactive confirmation required`, which the security model says
must be the only message.

Ask for a network only when stdin is a terminal; a pipe now gets "More
than one local Bitcoin Core network is running." Print Core's messages
only when stderr is a terminal. The gate test's fake now reports like
the real one, so it catches the extra output.

Claude-Session: https://claude.ai/code/session_015CuLXqAvAovfoVcUmmogwa
@BenWestgate
BenWestgate force-pushed the claude/new-issue-fixes-fvhbl3-84 branch from d422478 to c583b24 Compare October 2, 2026 17:16
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Ben authorized raising the budget so #91 fits. The stack tip with the
open fix PRs was at 5,197 of 5,200, and #91 adds 26 lines. Update the
enforcing test and both places that document the number.

Claude-Session: https://claude.ai/code/session_015CuLXqAvAovfoVcUmmogwa
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@BenWestgate

Copy link
Copy Markdown
Owner Author

@codex review

@BenWestgate

Copy link
Copy Markdown
Owner Author

CACK, will review the code after the bots say it is ready for me.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 256998066e

ℹ️ 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".

This branch has not been deployed

No deployments
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.

2 participants