fix(mcp): add OAuth skip endpoint and streamline in-chat interaction cards
Add a dedicated cancel route so users can skip mid-conversation OAuth without token verification, and restyle OAuth/approval cards to match AgentStreamDisplay with compact inline actions.
This commit is contained in:
@@ -5035,11 +5035,17 @@ export default {
|
||||
agentStream: {
|
||||
toolApproval: {
|
||||
banner: 'This MCP tool requires human approval. Review parameters before execution.',
|
||||
waiting: 'Awaiting review · {target}',
|
||||
targetWithTool: '{service} › {tool}',
|
||||
titleWithTarget: 'Review · {service} › {tool}',
|
||||
resolvedApproved: 'Approved · {target}',
|
||||
resolvedRejected: 'Rejected · {target}',
|
||||
service: 'Service',
|
||||
tool: 'Tool',
|
||||
argsLabel: 'Arguments',
|
||||
argsModified: 'Modified',
|
||||
countdown: 'About {seconds}s remaining',
|
||||
countdownShort: '{seconds}s',
|
||||
approve: 'Approve & run',
|
||||
reject: 'Reject',
|
||||
approvedTag: 'Approved',
|
||||
@@ -5051,15 +5057,25 @@ export default {
|
||||
},
|
||||
mcpOAuth: {
|
||||
banner: 'This MCP service requires OAuth authorization before it can be used',
|
||||
waiting: 'Awaiting authorization · {target}',
|
||||
targetWithTool: '{service} › {tool}',
|
||||
titleWithService: 'OAuth · {service}',
|
||||
titleWithTool: 'OAuth · {service} › {tool}',
|
||||
resolvedAuthorized: 'Authorized · {target}',
|
||||
resolvedTimedOut: 'Timed out · {target}',
|
||||
resolvedCanceled: 'Skipped · {target}',
|
||||
desc: 'Authorizing opens a new window to sign in. The tool call resumes automatically once authorization succeeds.',
|
||||
authorize: 'Authorize',
|
||||
skip: 'Skip',
|
||||
countdown: 'About {seconds}s remaining',
|
||||
countdownShort: '{seconds}s',
|
||||
authorizedTag: 'Authorized',
|
||||
timedOutTag: 'Authorization timed out',
|
||||
canceledTag: 'Canceled',
|
||||
authorizedToast: 'Authorized, resuming',
|
||||
authorizedToast: 'Authorized. Resuming…',
|
||||
startFailed: 'Failed to start authorization',
|
||||
resumeFailed: 'Failed to resume execution, please retry',
|
||||
resumeFailed: 'Failed to resume. Please try again.',
|
||||
skipFailed: 'Failed to skip. Please try again.',
|
||||
},
|
||||
tools: {
|
||||
searchKnowledge: 'Knowledge Search',
|
||||
|
||||
Reference in New Issue
Block a user