Skip to content

fix(tui): investigate log generation on Ctrl+C exit #131

Description

@cyfyifanchen

Problem

Every time the user exits Raven with Ctrl+C, Raven appears to generate or update a log. We need to determine whether this is intentional best practice, necessary TUI hygiene, or noisy behavior that should be changed.

Current context

The TUI startup path redirects loguru output to ~/.raven/logs/tui.log before launching the full-screen Ink UI. Ctrl+C is also handled in both the Python parent process and the TUI input path, depending on whether a turn is active.

Relevant questions:

  • Is the log file merely opened/updated because the TUI always routes logs there?
  • Is Ctrl+C writing an expected shutdown line, a warning, or an exception?
  • Does a normal user exit create misleading error-looking logs?
  • Should Raven suppress normal-exit noise while preserving real crash diagnostics?

Acceptance criteria

  • Reproduce Ctrl+C exit and inspect the exact log lines written.
  • Classify the current behavior as expected, noisy, or incorrect.
  • If normal Ctrl+C writes error-looking logs, change the wording/severity or suppress it.
  • If keeping the log is intentional, document why and make sure /logs or user-facing copy does not imply a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions