Skip to content

Keep interactive stdin runtime alive after turn failures #3573

@njfio

Description

@njfio

Problem statement

When interactive runtime is running in stdin mode (used by tau-tui subprocess orchestration), a single turn failure currently bubbles as an error and terminates the process with exit status 1.

This causes Tau TUI to exit entirely on provider/turn errors such as:

  • invalid response: codex cli failed with status 1
  • warning: no last agent message

TTY mode already reports turn errors and continues. Stdin mode should match this non-fatal behavior for turn-level failures.

Acceptance criteria

  1. Turn-level failures during interactive stdin mode do not terminate the runtime process.
  2. Failure is still surfaced via existing error reporting (stderr + turn.failed event).
  3. Runtime continues accepting subsequent prompts after a failed turn.
  4. Regression test(s) cover non-fatal behavior for turn failure handling path.

Non-goals

  • Changing hard-fail behavior for startup/configuration errors.
  • Altering provider/tool error semantics.
  • Redesigning TUI layout/output formatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions