Skip to content

feat: add agent_session_stopped and agent_session_title_changed events - #1635

Draft
zimeg wants to merge 1 commit into
mainfrom
clack/agent-session-events
Draft

feat: add agent_session_stopped and agent_session_title_changed events#1635
zimeg wants to merge 1 commit into
mainfrom
clack/agent-session-events

Conversation

@zimeg

Copy link
Copy Markdown
Member

Adds Events API support for the two agent session events an agent app receives, mirroring the existing assistant event pattern (event model + payload wrapper + handler base class per event).

Events

  • agent_session_stopped — the user clicked the native stop button while the agent session was processing.
    • type, channel, user, thread_ts, streaming_message_ts (list), event_ts
  • agent_session_title_changed — the user renamed the session.
    • type, channel, user, team_id, thread_ts, title, previous_title, event_ts

What's included

  • Event models: AgentSessionStoppedEvent, AgentSessionTitleChangedEvent (slack-api-model)
  • Payload wrappers: AgentSessionStoppedPayload, AgentSessionTitleChangedPayload (slack-app-backend)
  • Handler base classes: AgentSessionStoppedHandler, AgentSessionTitleChangedHandler
  • Deserialization tests for both models

No central registry to edit — event routing is by reflection over the event type, so app.event(AgentSessionStoppedEvent.class, handler) self-registers (consistent with the other event types).

Notes

Category

  • slack-api-model / slack-app-backend

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

Adds event models, payload wrappers, and handler base classes for the
two agent session events an agent app receives, mirroring the assistant
event pattern. Payload fields captured from live events.
- agent_session_stopped: type, channel, user, thread_ts,
streaming_message_ts (array), event_ts
- agent_session_title_changed: type, channel, user, team_id, thread_ts,
title, previous_title, event_ts
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimegzimeg added enhancement M-T: A feature request for new functionality semver:minor labels Aug 22, 2026
@zimegzimeg self-assigned this Aug 22, 2026
@zimegzimeg added this to the 1.50.1 milestone Aug 22, 2026
@codecov

codecovBot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.85%. Comparing base (b7562e3) to head (7017b90).
✅ All tests successful. No failed tests found.

Files with missing linesPatch %Lines
...end/events/handler/AgentSessionStoppedHandler.java0.00%2 Missing ⚠️
...vents/handler/AgentSessionTitleChangedHandler.java0.00%2 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #1635 +/- ##
============================================
- Coverage 72.87% 72.85% -0.03% 
Complexity 4522 4522 ============================================
Files 479 481 +2 Lines 14390 14394 +4 Branches 1503 1503 ============================================
Hits 10487 10487 - Misses 3013 3017 +4 
Partials 890 890 
FlagCoverage Δ
jdk-1472.85% <0.00%> (-0.03%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

Labels

enhancementM-T: A feature request for new functionalityproject:slack-api-modelproject:slack-api-modelproject:slack-app-backendsemver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@zimeg