Skip to content

feedback bug --include-logs flag silently ignored: no logs attached to report #53397

@nightmare0329

Description

@nightmare0329

Bug Report

Version: cortex v0.0.7
Command: cortex feedback bug --include-logs <message>

Description

The --include-logs flag for cortex feedback bug and cortex feedback submit is advertised to "Include recent logs with the report", but is completely ignored — no logs are ever attached to the saved feedback entry.

Steps to Reproduce

$ cortex feedback bug --include-logs "test bug with logs"
Thank you for reporting this bug!
Your feedback helps us improve Cortex.

$ cat ~/.cortex/feedback/feedback-e58b10c2.json
{
  "id": "e58b10c2-4b66-45b1-851b-ef9b14c9af30",
  "timestamp": "2026-04-16T01:36:08Z",
  "category": "bug",
  "message": "test bug with logs"
}

Expected Behavior

The saved feedback JSON should include a logs field with recent log content when --include-logs is passed.

Actual Behavior

The saved JSON contains only id, timestamp, category, and message. No logs field is present, and no log files are read. The flag is silently accepted and ignored.

Screenshot (real binary output)

feedback include-logs bug

Root Cause

In src/cortex-cli/src/feedback_cmd.rs, the submit_feedback() function accepts include_logs: bool as a parameter but never uses it:

async fn submit_feedback(
    category: &str,
    message: &str,
    session_id: Option<&str>,
    include_logs: bool,   // <-- received but never used
) -> Result<()> {
    // ...
    let entry = FeedbackEntry {
        id: id.clone(),
        timestamp: timestamp.clone(),
        category: category.to_string(),
        message: message.to_string(),
        session_id: session_id.map(|s| s.to_string()),
        // No logs field!
    };
    // include_logs is only used in tracing::info!() — never to read log files
    tracing::info!("Feedback submitted: ..., include_logs={}", include_logs);
    Ok(())
}

Additionally, FeedbackEntry struct has no logs field to store the log content.

File: src/cortex-cli/src/feedback_cmd.rs, submit_feedback() function (~line 342)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions