Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Other] Escalation denied in Plan mode is reported as a rejection by the user

オープン 初心者向け
#4,124 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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
  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.

主要言語
C++
スター
11.6k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Niko1221/Strata のほかの issue

Niko1221/Strata の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。