Skip to content

feat: add sentry conversation command group#1020

Open
sergical wants to merge 17 commits into
mainfrom
feat/ai-conversations-command
Open

feat: add sentry conversation command group#1020
sergical wants to merge 17 commits into
mainfrom
feat/ai-conversations-command

chore: regenerate docs

eb249d0
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed May 24, 2026 in 11m 34s

3 issues

find-bugs: Found 3 issues (3 low)

Low

Transcript view silently truncates message content at 600 characters - `src/app.ts:87`

appendContentBlock in src/lib/formatters/conversation.ts calls truncate(content, 600) when rendering the human-readable transcript, silently cutting off user and assistant message content at 600 characters. LLM responses routinely exceed this length, so sentry conversation view cannot show complete transcripts in its default output despite being advertised as a full-transcript viewer. (JSON output likely retains the full content, which limits impact.)

Tool spans starting before the first `ai_client` span are silently dropped from the transcript - `src/app.ts:87`

In extractTurns (src/lib/formatters/conversation.ts), tool spans are assigned to a turn only when t >= span["precise.start_ts"] of that turn's ai_client span. Any tool span whose precise.start_ts precedes the first ai_client span fails this predicate for every turn and is omitted from the rendered transcript with no warning. While uncommon (tools usually run after an LLM call), agent setup or pre-LLM tool invocations would be invisible in sentry conversation view.

`orgOrConversationId` typed as required `string` but is actually optional and can be `undefined` at runtime - `src/commands/conversation/view.ts:69`

The parameter is declared optional: true in the positional spec but typed as non-optional string in the function signature — TypeScript won't catch undefined access in future code. Compare with src/commands/org/view.ts which correctly uses orgSlug?: string.


⏱ 11m 2s · 3.0M in / 136.7k out · $4.27