You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t3 thread show --json does not say why the latest run failed #39839
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
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".
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.
Activity