[Other] Escalation denied in Plan mode is reported as a rejection by the user
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
dsh-user-approval/src/index.ts と dsh-sandbox/src/escalation.ts から始め、「never」承認ポリシーがエスカレーションの再試行をどのように処理するかを追ってください。ヒントとエラーメッセージが、自動拒否とユーザーの判断を区別しつつ、操作を拒否したままにすることを確認してください。メッセージが Plan モードでは承認プロンプトが無効であると説明し、ユーザーを責めていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- Start a chat in Plan mode.
- Ask the agent to create a short text file in the workspace.
- The write is denied with the read-only marker.
- The agent retries the same call with sandbox_permissions: workspace-write
and a justification. - 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.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
espressif/esp-matter#1913 ·
-
bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
chipsalliance/verible#2644 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
grafana/pyroscope-dotnet#470 ·
メンテナーはふだん 1 日以内に返信
-
documentation P5 XS
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-astro/AlpacaBridge#1848 ·
メンテナーはふだん 1 日以内に返信