get_agent_conversation_details cuts input messages at 4,000 chars and doesn't say lookups are limited to 30 days
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 40/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- api, observability-sre
調査の方向性
Start in packages/mcp-core/src/tools/catalog/get-agent-conversation-details.ts, around the GenAI attribute handling (roughly lines 237-250 and 363-375) and the start/end parameter descriptions (lines 689-698). Check how truncatedFields is reported and whether get_span_details could return gen_ai.input.messages. Done means the 30-day limit is stated in the param descriptions and the truncated output points to a way to read the full value.
索引モデルが issue の本文から書いたものです。
説明
What happens
An agent reviewing flagged agent conversations needed the earlier user messages in each LLM call's input (prior customer-facing messages). get_agent_conversation_details didn't give it a way to read them:
-
Input messages are cut at 4,000 characters, with no way to read the rest.
buildGenAIAttributestruncatesgen_ai.input.messages(and the other raw GenAI fields) toMAX_RAW_GEN_AI_ATTRIBUTE_LENGTHand appends... [truncated]. The timelineusermessage only carries the last user message from the input (extractUserContentusesfindLast), so earlier messages exist only in the truncatedgenAi.inputMessages. I found no tool that returns the full value:get_span_detailsfetches the trace without requestingadditional_attributes, so it likely doesn't includegen_ai.input.messages, and the result doesn't say where to read the rest.- get-agent-conversation-details.ts#L237-L250
- get-agent-conversation-details.ts#L363-L375
- get-agent-conversation-details.ts#L414-L418
- The Sentry endpoint returns the recorded strings in full ("Message, tool, and response attributes contain their recorded string values"): organization_ai_conversation_details.py#L417-L429
-
start/enddon't say the lookup is limited to the last 30 days. The agent passed a ~99-day window (startabout 3 months back), and Sentry returned the documented 400 (start time cannot be older than 30 days). The param descriptions only say "Start of the lookup window; requires end."- get-agent-conversation-details.ts#L689-L698
- Limit:
MAX_RETENTION_DAYS = 30andget_time_range_errorin ai_monitoring/utils.py#L22, #L58-L77
Evidence
- Feedback MCP-SERVER-GWN (kind
missing, impactblocked, toolget_agent_conversation_details, server 0.42.0). - Session (sentry/mcp-server spans, 2026-11-27 ~14:09–14:10 UTC): 27 ok + 3 errored
get_agent_conversation_detailscalls, no other tools. Errored call: tracebdb9d347c8e743179cae0587c8f2eb30, upstreamGET /api/0/organizations/<org>/agents/conversations/<id>/?per_page=1000&start=2026-08-20T00:00:00Z&end=2026-11-27T14:08:39Z&project=-1→ 400. Successful calls used the defaultstatsPeriod=30d→ 200.
Possible fixes
- Let the agent read a truncated GenAI field in full, e.g. a
spanId+ field option on this tool, or includegen_ai.input.messagesinget_span_detailsoutput, and say which tool to use next totruncatedFields. - Say "within the last 30 days" on
start/end(and/or reject older bounds before the call with that message).
Not verified: whether the customer's SDK recorded the full message history on the spans (SDKs can trim gen_ai.input.messages before sending). Conversations older than 30 days are a documented Sentry product limit (owner: @getsentry/agent-tracing), not an MCP bug.
Reports: 1
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_0ce51fdd7c171412b78ad27ec7509ae1.
--
- 主要言語
- TypeScript
- スター
- 975
- フォーク
- 189
- 平均マージ
- 19時間 57分
- マージ済み PR(30日)
- 542
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/toolkit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
getsentry/toolkit#2583 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
getsentry/toolkit#2531 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp-feedback-pattern
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
getsentry/toolkit#2458 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/toolkit#2444 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp-feedback-pattern
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
getsentry/toolkit#2362 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/toolkit の issue をすべて見る
似ている issue
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFD対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing対応中かも @chaitanya0305 が今日担当しました。 オープンbug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BaaRai/ARTEX#652 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineオープンbug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#4556 ·
メンテナーはふだん 1 日以内に返信