[Bug]: Managed Python 3.12.13 is not runnable after tool installation on Kysec-restricted systems

Author: SiinXuCreated Aug 31, 2026Updated Sep 29, 2026
Labelsbugp1agentneeds-info

Background

Two screenshots recovered from the local WeCom attachment cache show the same managed-runtime failure path:

  • An Agent cannot finish extracting XLSX content because Python is blocked by a Kysec security policy.
  • Installing babeledoc-stream fails its post-install health check with Managed Python is not runnable after install: 3.12.13.

The screenshots were deduplicated into one runtime-health issue. The encrypted WeCom message database is not currently readable, so the exact Cherry Studio version and surrounding group text still need confirmation.

Reproduction candidate

  1. Run Cherry Studio on a Kysec-restricted Linux environment.
  2. Start an Agent task that needs managed Python, such as XLSX extraction, or install babeledoc-stream.
  3. Let Cherry Studio install/select Managed Python 3.12.13.
  4. The runtime health check fails or Python execution is blocked, and the task cannot continue.

Expected behavior

  • Managed Python should pass an executable health check after installation.
  • If an OS security policy blocks execution, Cherry Studio should surface the blocked path/policy and offer a repair or environment-selection action.
  • Tool installation must not report a usable runtime when the interpreter cannot execute.

Acceptance criteria

  • Add a regression test or platform check for the managed Python executable after installation.
  • Preserve and show the actionable failure cause when execution is denied by the host policy.
  • babeledoc-stream installation and a basic XLSX read can complete on a supported restricted Linux setup, or the UI clearly marks that setup unsupported before starting the task.

Evidence

Both evidence files have external access disabled. The source is a local WeCom attachment-cache audit dated 2026-08-31.