Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions backend/core/ouroboros/battle_test/serpent_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
from rich.status import Status
from rich.syntax import Syntax

from backend.core.ouroboros.governance.inline_prompt_gate_renderer import (
attach_phase_boundary_renderer,
)


# ═══════════════════════════════════════════════════════════════════════════
# UI Slice 8 — Ouroboros snake-eating-tail spinner
Expand Down Expand Up @@ -428,6 +432,10 @@ def __init__(
# as non-terminal and falls back to plain text.
self.console = Console(emoji=True, highlight=False, force_terminal=True)

self._unsub_inline_prompt_renderer = attach_phase_boundary_renderer(
self.console.print
)

# Execution masking (rich.Status)
self._active_status: Optional[Status] = None

Expand Down Expand Up @@ -559,6 +567,7 @@ async def start(self) -> None:

async def stop(self) -> None:
"""Print the shutdown summary."""
self._unsub_inline_prompt_renderer()
self._stop_status()
self.show_streaming_end()
elapsed = time.time() - self._started_at
Expand Down
Loading