Skip to content

fix(claude-trace): prevent hang when calling Claude CLI for indexing#47

Open
peak-flow wants to merge 1 commit intobadlogic:mainfrom
peak-flow:fix/claude-trace-index-hang
Open

fix(claude-trace): prevent hang when calling Claude CLI for indexing#47
peak-flow wants to merge 1 commit intobadlogic:mainfrom
peak-flow:fix/claude-trace-index-hang

Conversation

@peak-flow
Copy link

Description

Fixes the indefinite hang when running claude-trace --index to generate conversation summaries.

Changes

Changed stdin from "pipe" to "ignore" when spawning the Claude CLI process in apps/claude-trace/src/index-generator.ts (line 240).

Root Cause

When stdin is set to "pipe", the Claude CLI waits for input on stdin even though the prompt is passed as a command-line argument. This causes the process to hang indefinitely.

Testing

  • Verified claude-trace --index completes successfully and generates summary files
  • Tested on macOS Sequoia 15.6.1 with Node.js v22.20.0

Fixes #46

Change stdin from 'pipe' to 'ignore' when spawning Claude CLI process.
When stdin is set to 'pipe', the Claude CLI waits for input even though
the prompt is passed as a command-line argument, causing indefinite hang.

Fixes badlogic#46
@peak-flow peak-flow force-pushed the fix/claude-trace-index-hang branch from 15690e6 to a462e85 Compare October 11, 2025 21:51
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.

claude-trace --index hangs indefinitely when summarizing conversations

1 participant