Repository navigation
Description
Desktop version: 26.1013.40934, build 20770, macOS.
A selected named permission profile is lost in two stages:
- 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 anonymoussandboxPolicybut omitspermissions. The local permission state still contains the profile name, masking the discrepancy. - After restarting the app/Mac, resume converts the anonymous workspace policy into the
workspace-writemode 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