Repository navigation
Conversation
agents.sessions.setStatus (Agent Sessions API, slack-sdk 3.44+) takes a closed
enum (active|processing|suspended|closed) with no free-text field, so Hermes'
free-text status verbs ("is thinking...", "still working… (2m03s)") and the
empty-string clear all fail with invalid_arguments and the status line silently
never renders. Route only the title through agents.sessions.rename; keep the
status line on assistant.threads.setStatus, which accepts free text and is
supported until the Feb 2027 assistant-view deprecation.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since the Agent Sessions API routing landed (commit
a5522f69c0), the Slack"thinking" status line silently stopped rendering. On slack-sdk 3.44+, the adapter
prefers
agents.sessions.setStatus, but that endpoint'sstatusparameter is aclosed enum (
active|processing|suspended|closed) with no free-text field.Hermes sends free text ("is thinking...", "still working… (2m03s)") and
""toclear, so every call returns
invalid_arguments: must be a valid enum value [json-pointer:/status], which_set_thread_statusswallows atlogger.debug.Repro (live bot token):
agents.sessions.setStatus(status="is thinking...")->invalid_argumentsagents.sessions.setStatus(status="")->invalid_arguments(the clear path)agents.sessions.setStatus(status="processing")-> okassistant.threads.setStatus(status="is thinking...")-> ok:true (legacy accepts free text)Fix
Keep the status line on the legacy
assistant.threads.setStatus(free-textcapable, supported until the Feb 2027 assistant-view deprecation). Route only the
title through
agents.sessions.rename.plugins/platforms/slack/adapter.py:_session_status_methodnow always returnsclient.assistant_threads_setStatus, with a comment stating the WHY (enum-only API).tests/gateway/test_slack.py: the two Agent-Sessions status tests now assert thestatus stays on the legacy method even when the SDK exposes agent sessions (red on
base, green with the fix). Title-via-rename tests unchanged.
website/docs/user-guide/messaging/slack.md: corrected the two places that claimedthe status call routes through
agents.sessions.setStatus.Test plan
scripts/run_tests.sh tests/gateway/test_slack.py— 244 passed, 0 failed, 1 skipped.