Skip to content

fix(agentsight): restore interruption resolution callback and fix conversation_id usage#1

Open
Daydreamer-Li wants to merge 1 commit into
mainfrom
feat/agentsight/detect-agent-task-interruption
Open

fix(agentsight): restore interruption resolution callback and fix conversation_id usage#1
Daydreamer-Li wants to merge 1 commit into
mainfrom
feat/agentsight/detect-agent-task-interruption

Conversation

@Daydreamer-Li

Copy link
Copy Markdown
Owner

Summary

This PR fixes webpack build errors and restores the interruption resolution real-time update feature that was broken by a previous commit.

Changes

  • Restore ResolvedEventInfo import and handleResolvedEvent callback

    • Enables real-time badge count updates when users resolve interruption events
    • Updates total count, severity breakdown, type stats, session-level and conversation-level counts
  • Fix InterruptionPanel to use conversationId instead of deprecated traceId

    • trace_id is deprecated and semantically identical to conversation_id
    • Changed InterruptionPanel prop from traceId to conversationId
  • Fix incorrect API imports

    • Removed non-existent fetchInterruptionTraceCounts import
    • Using correct fetchInterruptionConversationCounts and ConversationInterruptionCount types
  • Add onResolvedEvent prop to TraceSubTable

    • Passes resolution callback through component hierarchy
    • Ensures UI updates immediately without page refresh

Impact

  • ✅ Fixes webpack compilation error
  • ✅ Restores real-time interruption badge updates
  • ✅ Removes usage of deprecated trace_id in favor of conversation_id
  • ✅ Improves user experience (no page refresh needed after resolving interruptions)

Testing

  • Verified webpack builds successfully without errors
  • Confirmed interruption panel uses conversation_id correctly
  • Validated resolution callback updates all relevant state maps

- Add fetchTokenSavings import and savingsMap state
- Fetch token savings data in parallel with other queries (7 total)
- Display '节省 Token' column with clickable links to savings detail page
- Update table colSpan from 8 to 10 to accommodate new column
- Pass session_id, time range, and agent params to savings page

Closes alibaba#363
@Daydreamer-Li Daydreamer-Li force-pushed the feat/agentsight/detect-agent-task-interruption branch from efb9e03 to 8300c93 Compare April 25, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant