Skip to content

fix: pass custom instructions to agent when rejecting tool permissions#1390

Open
CaioDGallo wants to merge 1 commit intoPostHog:mainfrom
CaioDGallo:fix/custom-instructions-ignored
Open

fix: pass custom instructions to agent when rejecting tool permissions#1390
CaioDGallo wants to merge 1 commit intoPostHog:mainfrom
CaioDGallo:fix/custom-instructions-ignored

Conversation

@CaioDGallo
Copy link
Copy Markdown
Contributor

@CaioDGallo CaioDGallo commented Mar 31, 2026

Problem

  • When rejecting tool permission with custom instructions, the agent was not receiving the custom input. Because of this, it completely ignored any instructions passed and sent them later as a queued message.

Closes #1368

Changes

  • Route reject-with-instruction custom input through the permission response instead of sending it as a separate prompt
  • Extract and include user feedback in the tool denial message so the agent can act on it

How did you test this?

  • Manually
image image

@CaioDGallo CaioDGallo force-pushed the fix/custom-instructions-ignored branch 2 times, most recently from a0ca788 to 51a7936 Compare March 31, 2026 14:40
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.

Custom instruction being completely ignored on "Type here to tell is what to do differently"

1 participant