Skip to content

feat: add one-per-thread trace listing#145

Draft
Paarth Ahuja (paarth-a) wants to merge 1 commit into
mainfrom
paarth/lsen-32-one-trace-per-thread-cli
Draft

feat: add one-per-thread trace listing#145
Paarth Ahuja (paarth-a) wants to merge 1 commit into
mainfrom
paarth/lsen-32-one-trace-per-thread-cli

Conversation

@paarth-a
Copy link
Copy Markdown
Member

@paarth-a Paarth Ahuja (paarth-a) commented May 28, 2026

Adds --one-per-thread to langsmith trace list. The command already queries root runs (is_root=true), so this flag asks the server to return at most one matching root run, i.e. trace, per non-empty thread_id; unthreaded traces remain individually listed.

Linear: LSEN-32

Release Note

Add --one-per-thread to langsmith trace list to request one trace per conversation thread.

Test Plan

  • Added unit coverage for the flag and one_per_thread request body behavior.
  • mise exec go@1.25.9 -- go test ./internal/cmd
  • mise exec go@1.25.9 -- go test ./...

@paarth-a Paarth Ahuja (paarth-a) marked this pull request as ready for review May 28, 2026 20:20
@paarth-a Paarth Ahuja (paarth-a) force-pushed the paarth/lsen-32-one-trace-per-thread-cli branch from 7e18d5a to 354b47b Compare May 28, 2026 20:28
@paarth-a Paarth Ahuja (paarth-a) marked this pull request as draft May 28, 2026 20:37
@paarth-a Paarth Ahuja (paarth-a) force-pushed the paarth/lsen-32-one-trace-per-thread-cli branch from 354b47b to f9f1407 Compare May 28, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant