mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: use message field for Codex permission card subtitle
Codex elicitation requests from MCP use the 'message' field (from ElicitRequest schema), not 'command' or 'cwd'. Update the permission handler to extract and pass this field, and display it as the card subtitle with fallback to command.
This commit is contained in:
@@ -143,7 +143,7 @@ export const knownTools: Record<string, {
|
||||
const tool = getInputStringAny(opts.input, ['tool'])
|
||||
return tool ? `Permission: ${tool}` : 'Permission request'
|
||||
},
|
||||
subtitle: (opts) => getInputStringAny(opts.input, ['command']) ?? null,
|
||||
subtitle: (opts) => getInputStringAny(opts.input, ['message', 'command']) ?? null,
|
||||
minimal: true
|
||||
},
|
||||
shell_command: {
|
||||
|
||||
Reference in New Issue
Block a user