Skip to content

fix(pi-extension): allow plan submission device through planning write guard - #1547

Open
FNDEVVE wants to merge 1 commit into
backnotprop:mainfrom
FNDEVVE:fix/1466-omp-submit-device
Open

FNDEVVE wants to merge 1 commit into
backnotprop:mainfrom
FNDEVVE:fix/1466-omp-submit-device

Conversation

@FNDEVVE

@FNDEVVE FNDEVVE commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

In Oh My Pi planning mode the agent must submit its plan by writing JSON to the xd://plannotator_submit_plan device URI, but the planning-phase tool_call gate validated every write/edit path with isPlanWritePathAllowed, which rejects the URI as a non-markdown path. Plan submission was impossible: the planning contract demands a call the guard blocks.

This change allowlists exactly that device URI (derived from PLAN_SUBMIT_TOOL, exact match only) in the gate. Everything else is unchanged: other device URIs such as xd://report_issue stay blocked, filesystem writes stay limited to in-cwd markdown, and the submit tool's own plan-file validation keeps rejecting device URIs as file paths.

Testing: bun test apps/pi-extension/tool-scope.test.ts (16 pass), full bun run typecheck clean.

Closes #1466.

…e guard

The planning-phase tool_call gate rejected xd://plannotator_submit_plan as a non-markdown path, making plan submission impossible.

Allowlist exactly that device URI; all other device URIs, non-markdown writes, and the submit tool's file validation are unchanged.

Closes backnotprop#1466.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Oh My Pi planning mode blocks xd://plannotator_submit_plan

1 participant