Clear stale Guardian reviews when turns end (#34371)

## Why

Pending Guardian review state could outlive an interrupted or completed turn,
leaving stale review details visible during a following goal turn.

## What changed

- Clear pending Guardian reviews during both turn completion and finalization.
- Restore an active MCP startup header after cleanup, falling back to `Working`
  when no MCP server is starting.

## Testing

Added coverage for interrupted and completed turns, including goal continuation
and overlapping MCP startup status.

GitOrigin-RevId: a15ed81a5d6005e9294089f4424a8dedbc6e9cb5
This commit is contained in:
Eric Traut authored and copyberry committed 2026-07-20 16:05:14 +00:00
1 parent b6de5b524c
commit 5c18cc0acc
5 files changed
+163 -104

No files matched your search

@@ -63,6 +63,10 @@ impl PendingGuardianReviewStatus {
self.entries.len() != original_len
}
pub(super) fn clear(&mut self) {
self.entries.clear();
}
pub(super) fn is_empty(&self) -> bool {
self.entries.is_empty()
}