Skip to content

tests

230b94d
Select commit
Loading
Failed to load commit list.
Closed

fix: Stringify gen_ai.tool.output attribute #6086

tests
230b94d
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Apr 17, 2026 in 3m 23s

1 issue

Medium

safe_repr with set_data_normalized double-quotes string tool outputs - `sentry_sdk/integrations/langchain.py:691-693`

Using safe_repr(output) when output is a string adds Python repr quotes (e.g., "hello" becomes "'hello'"). The existing test at line 736 of test_langchain.py expects to call int() on the tool output - this will fail if the output "5" becomes "'5'". Other integrations use safe_repr directly with span.set_data(), not with set_data_normalized() which already handles type conversion.

4 skills analyzed
Skill Findings Duration Cost
code-review 1 2m 56s $1.21
find-bugs 0 2m 22s $2.65
skill-scanner 0 44.1s $0.48
security-review 0 3m 20s $0.81

Duration: 9m 22s · Tokens: 3.0M in / 35.4k out · Cost: $5.16 (+fix_gate: $0.00, +extraction: $0.00)