Skip to content

t3 thread show --json does not say why the latest run failed #39839

Closed

Description

@juliusmarminge

What is missing

t3 thread show <thread> --json reports that a thread's latest run ended as failed, but not why. The error is on the thread (the run's error item, shown in the UI), and thread send --wait --json already prints it as error. A script that started the run without --wait, or that looks at the thread later, has no way to get it from the CLI.

Steps

  1. Start a thread whose turn fails (for example a provider instance whose account is over its limit): t3 thread start --provider <instance> --model <model> --json <project> "hello".
  2. After the run ends: t3 thread show <threadId> --json.

Now: thread.status is "failed"; messages holds only user and assistant messages; nothing in the output carries the failure message.

Expected: when the latest run did not complete, the JSON also carries that run's last error text, the same value thread send --wait --json prints as error (and null or absent when the run completed or is still going). The plain-text output can print it on one line.

Where

apps/server/src/cli/thread.ts: threadShowCommand reads only the messages view through readLatestMessages; runResultText(tools, threadId, runId, "error") already finds the error in the activity view for thread send --wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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