Skip to content

feat: manual thread close via slash command - #78

Merged
IceRhymers merged 1 commit into
masterfrom
issue-77-manual-close
Mar 31, 2026
Merged

feat: manual thread close via slash command#78
IceRhymers merged 1 commit into
masterfrom
issue-77-manual-close

Conversation

@IceRhymers

Copy link
Copy Markdown
Owner

Summary

• Add CLAW_CLOSE_COMMANDS config setting with close_commands property that parses CSV into a set[str]
• Add _close_thread method to SlackPoller — cancels pending task, disconnects client, closes DB session, sends farewell
• Intercept close commands in _handle_message before agent dispatch so no agent work is triggered

Test plan

test_close_command_closes_session/close triggers close_session in DB
test_close_command_disconnects_client — client .disconnect() called and removed from registry
test_close_command_sends_farewellreply_to_thread called with farewell text
test_close_command_does_not_run_agentcreate_client/send_message NOT called
test_non_close_message_runs_agent — normal message still dispatches agent
• Full suite: 290 passed, 0 failures (baseline was 285)

Closes #77

Add CLAW_CLOSE_COMMANDS config with close_commands property, and
_close_thread method in SlackPoller that cancels pending tasks,
disconnects the client, closes the DB session, and sends a farewell.
Close command detection runs in _handle_message before agent dispatch.

Closes #77

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IceRhymers
IceRhymers merged commit fa08765 into master Mar 31, 2026
1 check passed
@IceRhymers
IceRhymers deleted the issue-77-manual-close branch April 3, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: manual thread close via slash command

1 participant