Skip to content

Bug: session_terminated event is emitted but never surfaced in CLI or Web UI, causing silent agent death#345

Description

@Ojas025

agent/core/agent_loop.py emits Event("session_terminated", ...) when context compaction fails, however this event type is not handled in any consumer:

  • agent/main.py contains no case for "session_terminated" and falls through to the silent catch-all
  • No existing event type definition for "session_terminated" in frontend/src/types/events.ts

The event is emitted correctly, the gap being purely in the consumer layers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions