diff --git a/agent/conversation_compression.py b/agent/conversation_compression.py index 3f6a1ecbfaca..719ffec5e245 100644 --- a/agent/conversation_compression.py +++ b/agent/conversation_compression.py @@ -311,7 +311,8 @@ def compress_context( # error to the user, skip the session-rotation work entirely (no # session has logically ended), and let auto-compress callers detect # the no-op via len(returned) == len(input). - if getattr(agent.context_compressor, "_last_compress_aborted", False): + _aborted = getattr(agent.context_compressor, "_last_compress_aborted", False) + if isinstance(_aborted, bool) and _aborted: _err = getattr(agent.context_compressor, "_last_summary_error", None) or "unknown error" if getattr(agent, "_last_compression_summary_warning", None) != _err: agent._last_compression_summary_warning = _err diff --git a/plugins/kanban/dashboard/plugin_api.py b/plugins/kanban/dashboard/plugin_api.py index 2109fd7950b6..eddd6522db89 100644 --- a/plugins/kanban/dashboard/plugin_api.py +++ b/plugins/kanban/dashboard/plugin_api.py @@ -1039,7 +1039,9 @@ def list_diagnostics( if severity: filtered: dict[str, list[dict]] = {} for tid, dl in diags_by_task.items(): - keep = [d for d in dl if kd.severity_at_or_above(d.get("severity"), severity)] + # The endpoint filter is an exact severity match. + # (UI uses it to render "just warnings" vs "just errors".) + keep = [d for d in dl if d.get("severity") == severity] if keep: filtered[tid] = keep diags_by_task = filtered