Skip to content

feat(sight): improve interruption detection and visualization#808

Open
Daydreamer-Li wants to merge 1 commit into
alibaba:mainfrom
Daydreamer-Li:feature/sight/interruption-improvements
Open

feat(sight): improve interruption detection and visualization#808
Daydreamer-Li wants to merge 1 commit into
alibaba:mainfrom
Daydreamer-Li:feature/sight/interruption-improvements

Conversation

@Daydreamer-Li

@Daydreamer-Li Daydreamer-Li commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Improve the interruption detection system with three key enhancements: dashboard agent filtering, ATIF trace visualization, and dead_loop threshold tuning.

Changes

  • Dashboard interruption count agent filtering

    • Fix interruption_count and interruption_stats API handlers to respect agent_name query parameter
    • Add stats_filtered() method to InterruptionStore supporting optional agent_name filter
    • Fix SQL GROUP BY to include severity column
    • Update frontend fetchInterruptionStats to pass agentName parameter
  • ATIF trace interruption marking

    • Embed call_id in ATIF step extra field (converter.rs) for precise matching
    • Frontend loads interruptions in parallel with ATIF document
    • Match interruptions to steps via call_id (primary) or timestamp ±30s (fallback)
    • Visual indicators: red pulsing timeline dot, severity-colored border, type badges, expandable detail panel
  • DeadLoop detection threshold tuning

    • Increase tool_sequence_repeat_threshold: 3 → 5
    • Increase similar_output_repeat_threshold: 3 → 5
    • Increase window_size: 10 → 12
    • Update unit tests to use explicit thresholds

Impact

  • Dashboard now correctly shows interruption counts per selected agent
  • Users can identify problematic steps directly in the ATIF trace viewer
  • Reduced false positives in dead_loop detection

Related Issue

closes #809

Testing

  • cargo check passes
  • cargo test — 539 tests pass, 0 failures
  • TypeScript compilation (tsc --noEmit) passes

Type of Change

  • Bug fix (agent filter not applied)
  • New feature (ATIF interruption marking)
  • Improvement (threshold tuning)

Scope

  • sight (agentsight)

Checklist

  • Code follows project conventions
  • Self-review completed
  • Comments added for complex logic
  • Tests added/updated
  • Compilation and test suite verified

- Fix interruption count not filtering by agent selection in dashboard
- Add interruption marking in ATIF trace viewer (red pulse dot, severity
  border, type badges, expandable detail panel)
- Tune dead_loop detection thresholds from 3 to 5 consecutive repeats
- Add stats_filtered() to support agent_name filtering in interruption API
- Embed call_id in ATIF step extra for precise interruption-to-step matching

Signed-off-by: liyuqing <liyuqing@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:sight src/agentsight/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sight] feat(sight): improve interruption detection and visualization

1 participant