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:
weishu
2026-01-13 11:06:50 +08:00
parent 41d8844c00
commit 251b04ec2d
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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: {