Skip to content

Desktop loses named permission profile on a projectless turn, then drops network/workspace settings on resume #55238

Open

Description

@tetsu19841125-web

Desktop version: 26.1013.40934, build 20770, macOS.

A selected named permission profile is lost in two stages:

  1. A projectless thread has a selected named profile, e.g. work-profile, extending :workspace. On an ordinary continuation, the server-default branch of the turn request builder sends an anonymous sandboxPolicy but omits permissions. The local permission state still contains the profile name, masking the discrepancy.
  2. After restarting the app/Mac, resume converts the anonymous workspace policy into the workspace-write mode string. Its network flag and additional writable roots are omitted; the response has narrower permissions. The next turn then explicitly sends :workspace.

The first profile-identity loss was observed before restart and without a preceding request_permissions call in the available transcript. This is not adequately explained by a temporary grant expiring.

Expected: Preserve the selected persistent profile identifier through request construction, stored thread state and resume, while retaining runtime workspace roots separately. Continue to enforce managed policy and the expiration of temporary grants.

Candidate source changes, evaluated offline against the installed bundle:

  • Resolve the selected profile outside the server-default-only guard, preserving explicit changes, clears, raw-policy requests and the permission-selection path.
  • Keep the local active profile consistent with an explicit request change; otherwise the local cache can restore the old profile on a later request.
  • During resume retain a known profile identifier, reject mismatched identifiers, and refuse a lossy conversion of an anonymous workspace policy. Migration of older anonymous sessions needs an explicit, authorized path; do not guess a profile from effective access.

The candidate passed ten synthetic turn-construction cases and four resume boundary checks. It changes only a source string in an isolated VM. The installed app, configuration, database and effective permissions were not modified. App-server enforcement, actual restart behavior and legacy-session migration still need upstream integration and tests.

Installed bundle entry: .vite/build/src-DsLVGakC.js.
Original entry SHA-256: 28a0918f01c50b0eb17676e894998ad7182f119d978adf0467ccaac3583f259c.
The failing request builder is fj; the resume path is OT in this build. These names are build-specific. Please investigate both request serialization and resume restoration, rather than adding a broad network exception or repeatedly asking users to reselect permissions.

Activity

  1. added
    bug
    app
    app-server
    sandbox
    on Oct 19, 2026
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

    appapp-serverbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions