Skip to content

feat(tool-approval): add user approval flow for unsafe tool execution - #652

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/support-tools-approval
Aug 20, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/support-tools-approval

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator
  • Add ToolApprovalRequest DTO and pendingToolApproval state in ViewModel
  • Update ChatView to display approval dialog with approve/deny buttons
  • Extend McpInstanceService to honor ToolApprovalPolicy
  • Add i18n messages for approval prompts and results
  • Bump langchain4j dependency to 1.19.0
  • Adjust SessionManager to handle approval policy changes and timeout handling
  • Update ChatRequestTransformers to throw ToolExecutionException on denial or timeout

- Add ToolApprovalRequest DTO and pendingToolApproval state in ViewModel
- Update ChatView to display approval dialog with approve/deny buttons
- Extend McpInstanceService to honor ToolApprovalPolicy
- Add i18n messages for approval prompts and results
- Bump langchain4j dependency to 1.19.0
- Adjust SessionManager to handle approval policy changes and timeout handling
- Update ChatRequestTransformers to throw ToolExecutionException on denial or timeout
- Remove deprecated McpClientFactory logic that bypasses tool config lookup
- Minor refactor: normalize JSON field types to use JsonElement

BREAKING CHANGE: None.
@haiphucnguyen
haiphucnguyen merged commit b5cb9f4 into main Aug 20, 2026
10 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/support-tools-approval branch August 20, 2026 21:39
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.

1 participant