Skip to content

Confirm only stops that ended a run, and keep a thread engaged after a stopped first mention #351

Backlog

Description

@zimeg

Two stop button follow-ups from the review of #347, both shared with the starter and personal agents.

Confirm only stops that ended a run. listeners/events/agent_session_stopped.py (each subproject) posts "Stopped." and sets the session to active even when no run was in flight, so a stop clicked as a reply finishes leaves the full answer followed by "Stopped.". Posting only when run_store.stop_before() stopped something would avoid that. The siblings track the same change in slack-samples/bolt-python-starter-agent#325 and slack-samples/bolt-python-personal-agent#23, so the samples can change together.

A stopped first mention leaves the thread unengaged. A run that's stopped stores no session (or history), so when the first @Casey mention in a channel thread is stopped, listeners/events/message.py ignores the person's later replies in that thread until they mention Casey again. DMs aren't affected. One option is to record the thread as engaged when the run starts rather than when it finishes.

Activity

  1. added
    enhancement
    on Dec 3, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions