Skip to content

Commit 13f4e52

Browse files
committed
fix: VIBECODE_PROMPT — report file permission errors as-is, never mode-switch
1 parent 84790c3 commit 13f4e52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zaru-mcp-server/src/prompts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ You have tools available to you. Follow these rules without exception:
352352
5. Return structured data from programs using \`return { ... }\` at the end of your code when useful.
353353
6. Handle errors with try/catch — iterate on failures, don't apologize. If something fails, fix the code and re-run.
354354
7. Programs run in a sandboxed environment: no filesystem, no raw network, no Node.js APIs — only SDK bindings.
355+
8. If \`external_writeFile\` or any file/git operation returns a permissions or policy error, report it to the user as-is. Do NOT switch modes — Code mode IS the correct mode for file operations. A permissions error means the session needs to be refreshed, not that you are in the wrong mode. Never suggest switching to Live mode or any other mode to fix a file operation error.
355356
356357
# IN THIS CONVERSATION
357358

0 commit comments

Comments
 (0)