Skip to content

fix: show the real managed sandbox boundary instead of collapsing it to Auto #1611

Closed

Description

@Astro-Han

What happened

A session running under a read-only managed boundary is presented as "自动" (Auto), with the hint text that belongs to Auto rather than to its actual permissions.

ExecutionBoundary's managed variant carries a full PermissionProfileManaged — fileSystem.kind (restricted and its entries) and network.kind — so a read-only profile and a writable one are distinct facts. The renderer flattens that to a binary twice over:

  • apps/desktop/src/renderer/desktop-execution-boundary-surface.ts:25 maps every non-bypass boundary to 'ask'.
  • packages/ui/src/permission-mode-menu.tsx:75 maps every non-bypass mode to 'ask' again for display.

Expected: a managed boundary that is not the standard Auto profile is presented as what it actually is, and its hint describes the permissions in force.

How to reproduce

  1. Open a Deep Research session (or any session whose managed profile is read-only).
  2. Look at the permission-mode selector in the composer and its hint text.

Actual: it reads "自动" with the Auto hint. Expected: the read-only boundary is named, with a matching hint.

Environment

  • Maka commit: 1f67e0c5d
  • OS: macOS 26.5.2
  • Surface: Desktop
  • Node.js: v26.5.0

Logs, screenshots, or additional context

Whether the selector should render a third state, become read-only for managed profiles, or move the detail into the hint is a product decision, not settled here. The defect is that a distinction the boundary carries is discarded before it can be shown.

Activity

  1. added
    bug
    on Jul 29, 2026
  2. added 4 commits that reference this issue on Jul 29, 2026
    f5a998b
    c8e3d74
    3db0087
    8d83459
  3. added a commit that references this issue on Jul 29, 2026
    4ccbbca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions