Skip to content

The storage format of Claude Session is inconsistent, but it has no substantial impact at the moment. #123

@zylc369

Description

@zylc369

ralph_loop.sh save_claude_session:

CLAUDE_SESSION_FILE="$RALPH_DIR/.claude_session_id" # Session ID persistence file

save_claude_session() {
    ......
            echo "$session_id" > "$CLAUDE_SESSION_FILE"
    ......
}

response_analyzer.sh store_session_id:

SESSION_FILE="$RALPH_DIR/.claude_session_id"

store_session_id() {
    ......
    jq -n \
        --arg session_id "$session_id" \
        --arg timestamp "$(get_iso_timestamp)" \
        '{
            session_id: $session_id,
            timestamp: $timestamp
        }' > "$SESSION_FILE"
    ......
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions