Skip to content

Commit 24b8969

Browse files
authored
fix: avoid ralph crash after a task is completed (#256)
1 parent 2265569 commit 24b8969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ralph_loop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ execute_claude_code() {
15991599
# Extract session ID from stream-json output for session continuity
16001600
# Stream-json format has session_id in the final "result" type message
16011601
# Keep full stream output in _stream.log, extract session data separately
1602-
if [[ "$CLAUDE_USE_CONTINUE" == "true" && -f "$output_file" ]]; then
1602+
if [[ -f "$output_file" ]]; then
16031603
# Preserve full stream output for analysis (don't overwrite output_file)
16041604
local stream_output_file="${output_file%.log}_stream.log"
16051605
cp "$output_file" "$stream_output_file"

0 commit comments

Comments
 (0)