Skip to content

create: Keep cleaning up after Ctrl-C while deleting wallet files - #160

Closed
BenWestgate wants to merge 1 commit into
claude/core-entropyfrom
claude/cleanup-interrupts
Closed

BenWestgate wants to merge 1 commit into
claude/core-entropyfrom
claude/cleanup-interrupts

Conversation

@BenWestgate

@BenWestgate BenWestgate commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Ctrl-C, SIGHUP or SIGTERM during wallet-folder deletion or macOS RAM-disk detach used to escape before the other cleanup step ran and before the user was told what remained.

Catch interruption in both steps so cleanup finishes and any remaining resource is named in the creation-stopping error. Two tests interrupt each cleanup step.

Stacked on #201.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

AI-assisted current-head review.

Code ACK 539e08f (static). Catching an interrupt at folder removal or RAM-disk detach lets the remaining cleanup run, then reports any leftover path; tests cover both interruption points. Keep stacked on #145; exercise real Tails/macOS cleanup before release.

@BenWestgate
BenWestgate marked this pull request as ready for review October 22, 2026 10:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T11:18:37.509821Z
We couldn’t complete this review. Comment @codex review to try again.
3d5f877 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BenWestgate
BenWestgate marked this pull request as draft October 22, 2026 11:09
@BenWestgate
BenWestgate added this pull request to stack #163 October 22, 2026 14:07
@BenWestgate
BenWestgate marked this pull request as ready for review October 22, 2026 14:07

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

crACK

@BenWestgate
BenWestgate force-pushed the claude/cleanup-interrupts branch 2 times, most recently from 539e08f to 3e5b1f0 Compare October 22, 2026 14:56

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

AI-assisted incremental review of 3e5b1f0: Concept ACK. Interrupted file removal and RAM-disk detachment now continue other cleanup and fail closed if anything remains. Independently reran the Core/CLI/public-API unit tests: 314 passed. Bitcoin Core 32 integration/signal tests remain outstanding; not a runtime security ACK.

Copy link
Copy Markdown
Owner Author

AI-assisted integration follow-up for 3e5b1f0: Bitcoin Core 32.0rc4 Linux regtest: 22/22 wallet lifecycle, signal, and cleanup checks passed. 10 focused unit tests passed, including injected interrupts during file removal and disk detach. Actual macOS detach and Tails runtime behavior remain untested.

@BenWestgate

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 3e5b1f0a9d

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

Ctrl-C during the folder delete or the macOS RAM disk detach escaped
before the other step ran and before the user was told what was left.
Both steps now catch it like the RPC steps do, so cleanup finishes and
anything still on disk is named in the error that stops creation.

Claude-Session: https://claude.ai/code/session_01T233rKgZqE5wzDm3EVTHL1
@BenWestgate
BenWestgate force-pushed the claude/cleanup-interrupts branch from 3e5b1f0 to 3d5f877 Compare October 24, 2026 11:18
@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.

@BenWestgate BenWestgate reopened this Oct 24, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #203. GitHub would not retarget this stacked PR after the #145 split; #203 preserves this rebased one-commit diff on #201.

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.

1 participant