Repository navigation
Python: Improve DevUI, add Context Inspector view as new tab under traces - #2742
Merged
Eduard van Valkenburg (eavanvalkenburg) merged 13 commits intoJan 7, 2026
Merged
Conversation
Contributor
MCP tools can become stale when HTTP streaming responses end - the underlying stdio streams close but `is_connected` remains True. This causes subsequent requests to fail with `ClosedResourceError`. Add `_ensure_mcp_connections()` to detect and reconnect stale MCP tools before agent execution. This is a workaround for an upstream Agent Framework issue where connection state isn't properly tracked. Fixes MCP tools failing on second HTTP request in DevUI. fixes #1476 #1515 #2865
…non streaming mode in devui . Fixes .NET: [Python] DevUI tool call rendering in non-streaming mode?
… timelien, also ensure magentic final output shows correctly
…i_context_inspector
…framework into devui_context_inspector
Evan Mattson (moonbox3)
approved these changes
Dec 17, 2025
…entation and type/instance check fixes
Victor Dibia (victordibia)
requested review from
Tao Chen (TaoChenOSU),
Copilot and
Eduard van Valkenburg (eavanvalkenburg)
January 6, 2026 20:20
Eduard van Valkenburg (eavanvalkenburg)
approved these changes
Jan 7, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jan 7, 2026
Motivation and Context
This PR adds a new Context Inspector feature to DevUI for visualizing token usage and context composition, along with comprehensive TypeScript type safety improvements to address
anytype errors across the frontend codebase.Context Inspector
A new tab in the Debug Panel that provides:
Tracing Improvements
NoOpSpanExporter,NoOpLogExporter,NoOpMetricExporter) to prevent console spam when tracing is enabled locally without an OTLP endpointsession_idtoresponse_idfor better per-turn organizationType Safety Improvements
Addressed 36
@typescript-eslint/no-explicit-anyerrors by adding proper types:Fixed React Rules of Hooks violations in
OpenAIContentRenderer.tsxby moving hooks before early returns.Other Changes
Contribution Checklist