mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: implement permission handler callbacks and add CodexPermission UI support
Adds onRequest and onComplete callbacks to CodexPermissionHandler to track permission request/response lifecycle. Includes helper functions to normalize command and cwd inputs, and displays permission requests in the web UI.
This commit is contained in:
@@ -248,7 +248,7 @@ export class CodexMcpClient {
|
||||
const toolCallId = extractToolCallId(params) ?? randomUUID();
|
||||
const command = extractCommand(params);
|
||||
const cwd = extractCwd(params);
|
||||
const toolName = 'CodexBash';
|
||||
const toolName = 'CodexPermission';
|
||||
|
||||
// If no permission handler set, deny by default
|
||||
if (!this.permissionHandler) {
|
||||
|
||||
Reference in New Issue
Block a user