[GH-ISSUE #4124] [Other] Escalation denied in Plan mode is reported as a rejection by the user #1804

Closed
opened 2026-11-04 01:54:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @WolleGeee on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4124

Area

[Other] (anything else, including setup and installation)

Desktop app, Terminal or source?

Desktop app (Windows, Linux or Mac)

What happened

In Plan mode (read-only sandbox, approval policy "never") a file write is
denied with:

[sandbox: file access denied under read-only mode]

The tool result then advertises an escalation retry. When the agent retries the
same call with sandbox_permissions: workspace-write and a justification, it
fails with:

Error: the user rejected escalating this operation to "workspace-write"; it
stays denied, so stop and explain instead of working around it

No approval dialog appeared and nothing was shown to me. The message states
that the user rejected the request.

Expected: The operation remains denied, but the error message clearly states
that escalation is unavailable because approval prompts are disabled in Plan
mode. It should not attribute the rejection to the user.

The harness already tells the model that prompts are disabled:

"Approval prompts are disabled in this session: actions that require approval
are rejected automatically - do not request sandbox escalation"

Under the "never" policy, approval requests are automatically rejected.
However, the escalation hint still suggests that an approval prompt will
appear, and the resulting error attributes the rejection to the user.

Relevant files in the bundled Harness:

  • dsh-user-approval/src/index.ts
  • dsh-sandbox/src/escalation.ts

Related: #4120 (configurable permission presets).

This report concerns the error message only. It does not request approval
prompts in Plan mode.

Smallest steps or command that reproduce it

  1. Start a chat in Plan mode.
  2. Ask the agent to create a short text file in the workspace.
  3. The write is denied with the read-only marker.
  4. The agent retries the same call with sandbox_permissions: workspace-write
    and a justification.
  5. The result reads "the user rejected escalating this operation ...",
    although no prompt was shown.

Reproduction status

Reproduced locally

Strata version

0.2.5 (Settings > About). Version 0.2.6 is available but has not been tested.

Graphics card, memory and system

macOS 27.0.1 (Darwin 27.0.0, arm64).

The approval gate is host-side and does not involve the GPU.

Model, size and settings

Qwen3.8-Flash-Next, Q2_0 quantization (GSQ-RCO),
131072 context, vision enabled.

The approval gate and approval policy are host-side and do not depend
on the model.

Logs

~/.strata/data/agent/harness.log contains no entry for the escalation.
The denial appears only as a tool result in the chat.

Originally created by @WolleGeee on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4124 ### Area [Other] (anything else, including setup and installation) ### Desktop app, Terminal or source? Desktop app (Windows, Linux or Mac) ### What happened In Plan mode (read-only sandbox, approval policy "never") a file write is denied with: [sandbox: file access denied under read-only mode] The tool result then advertises an escalation retry. When the agent retries the same call with sandbox_permissions: workspace-write and a justification, it fails with: Error: the user rejected escalating this operation to "workspace-write"; it stays denied, so stop and explain instead of working around it No approval dialog appeared and nothing was shown to me. The message states that the user rejected the request. Expected: The operation remains denied, but the error message clearly states that escalation is unavailable because approval prompts are disabled in Plan mode. It should not attribute the rejection to the user. The harness already tells the model that prompts are disabled: "Approval prompts are disabled in this session: actions that require approval are rejected automatically - do not request sandbox escalation" Under the "never" policy, approval requests are automatically rejected. However, the escalation hint still suggests that an approval prompt will appear, and the resulting error attributes the rejection to the user. Relevant files in the bundled Harness: - dsh-user-approval/src/index.ts - dsh-sandbox/src/escalation.ts Related: #4120 (configurable permission presets). This report concerns the error message only. It does not request approval prompts in Plan mode. ### Smallest steps or command that reproduce it 1. Start a chat in Plan mode. 2. Ask the agent to create a short text file in the workspace. 3. The write is denied with the read-only marker. 4. The agent retries the same call with sandbox_permissions: workspace-write and a justification. 5. The result reads "the user rejected escalating this operation ...", although no prompt was shown. ### Reproduction status Reproduced locally ### Strata version 0.2.5 (Settings > About). Version 0.2.6 is available but has not been tested. ### Graphics card, memory and system macOS 27.0.1 (Darwin 27.0.0, arm64). The approval gate is host-side and does not involve the GPU. ### Model, size and settings Qwen3.8-Flash-Next, Q2_0 quantization (GSQ-RCO), 131072 context, vision enabled. The approval gate and approval policy are host-side and do not depend on the model. ### Logs ~/.strata/data/agent/harness.log contains no entry for the escalation. The denial appears only as a tool result in the chat.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660047715 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1804
No description provided.