Skip to content

fix: prevent CLI from hanging after successful file upload - #93

Merged
anoncam merged 2 commits into
mainfrom
feature/preserve-file-extensions
Oct 7, 2025
Merged

anoncam merged 2 commits into
mainfrom
feature/preserve-file-extensions

Conversation

@anoncam

@anoncam anoncam commented Oct 7, 2025

Copy link
Copy Markdown
Owner

Add process.exit(0) after successful paste creation in all upload code paths. Previously, the CLI would output the URL but hang indefinitely, requiring Ctrl+C to terminate.

Root cause: Node.js event loop remained active due to open stdin handle and pending async operations, even though the upload was complete.

Fixed in three locations:

  • Send command upload (~line 1230)
  • Default command encrypted upload (~line 1812)
  • Default command non-encrypted upload (~line 1887)

Resolves hanging behavior reported in feature/preserve-file-extensions testing.

🤖 Generated with Claude Code

anoncam and others added 2 commits October 7, 2025 10:06
Add process.exit(0) after successful paste creation in all upload
code paths. Previously, the CLI would output the URL but hang
indefinitely, requiring Ctrl+C to terminate.

Root cause: Node.js event loop remained active due to open stdin
handle and pending async operations, even though the upload was
complete.

Fixed in three locations:
- Send command upload (~line 1230)
- Default command encrypted upload (~line 1812)
- Default command non-encrypted upload (~line 1887)

Resolves hanging behavior reported in feature/preserve-file-extensions
testing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@anoncam
anoncam merged commit c696da0 into main Oct 7, 2025
2 checks passed
@anoncam
anoncam deleted the feature/preserve-file-extensions branch October 7, 2025 17:08
github-actions Bot added a commit that referenced this pull request Oct 7, 2025
Version bump type: patch
PR: #93
Title: fix: prevent CLI from hanging after successful file upload
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