File tree Expand file tree Collapse file tree
apps/code/src/renderer/features/sessions/components
packages/agent/src/adapters/claude/permissions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,7 +252,10 @@ export function SessionView({
252252 }
253253
254254 if ( customInput ) {
255- if ( isOtherOption ( optionId ) ) {
255+ if (
256+ isOtherOption ( optionId ) ||
257+ selectedOption ?. _meta ?. customInput === true
258+ ) {
256259 await getSessionService ( ) . respondToPermission (
257260 taskId ,
258261 firstPendingPermission . toolCallId ,
Original file line number Diff line number Diff line change @@ -388,12 +388,14 @@ async function handleDefaultPermissionFlow(
388388 updatedInput : toolInput as Record < string , unknown > ,
389389 } ;
390390 } else {
391- const message = "User refused permission to run tool" ;
391+ const feedback = (
392+ response . _meta ?. customInput as string | undefined
393+ ) ?. trim ( ) ;
394+ const message = feedback
395+ ? `User refused permission to run tool with feedback: ${ feedback } `
396+ : "User refused permission to run tool" ;
392397 await emitToolDenial ( context , message ) ;
393- return {
394- behavior : "deny" ,
395- message,
396- } ;
398+ return { behavior : "deny" , message, interrupt : ! feedback } ;
397399 }
398400}
399401
You can’t perform that action at this time.
0 commit comments