Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
This repository was archived by the owner on Sep 14, 2026. It is now read-only.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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