Skip to content

bug: unexpected daemon process #128

@WilliamBergamin

Description

@WilliamBergamin

Description

When using the Slack CLI to run a bolt for python project, the CLI process will sometimes terminate without cleaning up the Bolt Python process. This leaves a daemon type python process running on my machine.

This can be a pain point, I've accidentally created multiple instances of socket mode apps leaving the Slack to dispatch events randomly between them.

Version

Using lack v3.3.0

OS Info

ProductName: macOS
ProductVersion: 15.5
BuildVersion: 24F74
Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000

Steps to reproduce:

  1. slack create my-test-app -t https://github.com/slack-samples/bolt-python-starter-template
  2. slack run
  3. Once the app is running, quickly disconnect and reconnect your machine from the internet
  4. The Slack CLI process will terminate with the following error
🚫 Failed to stream the most recent activity logs (streaming_activity_logs_error)
   HTTP request failed (http_request_failed)
  1. The python process should reconnect the socket connection
  2. Triggering an event to be dispatch to your app like loading the app_home will log messages in the terminal
  3. You can use the activity monitor to clean up the demon process

Expected result:

When the Slack CLI process terminates I expect that child processes it created are cleaned up as well

Actual result:

Its seems like some child processes created by the CLI are not clean up properly

Note

This may also be an issue with the hooks implementations

Requirements

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions