feat(agent): add configurable MCP OAuth wait timeout per agent
Allow agents to set how long in-conversation OAuth prompts wait before auto-skipping, with UI in the agent editor and bounded gate behavior.
This commit is contained in:
@@ -32,6 +32,10 @@ type AgentConfig struct {
|
||||
// MCP service selection
|
||||
MCPSelectionMode string `json:"mcp_selection_mode"` // MCP selection mode: "all", "selected", "none"
|
||||
MCPServices []string `json:"mcp_services"` // Selected MCP service IDs (when mode is "selected")
|
||||
// MCPAuthWaitTimeout is how many seconds an agent run waits for
|
||||
// in-conversation OAuth authorization before skipping. <=0 falls back to
|
||||
// the gate's configured timeout. The wait is always bounded (no leak).
|
||||
MCPAuthWaitTimeout int `json:"mcp_auth_wait_timeout,omitempty"`
|
||||
// Whether to enable thinking mode (for models that support extended thinking)
|
||||
Thinking *bool `json:"thinking"`
|
||||
// Whether to retrieve knowledge base only when explicitly mentioned with @ (default: false)
|
||||
|
||||
@@ -135,6 +135,9 @@ type CustomAgentConfig struct {
|
||||
MCPSelectionMode string `yaml:"mcp_selection_mode" json:"mcp_selection_mode"`
|
||||
// Selected MCP service IDs (only used when MCPSelectionMode is "selected")
|
||||
MCPServices []string `yaml:"mcp_services" json:"mcp_services"`
|
||||
// MCPAuthWaitTimeout is how many seconds to wait for in-conversation OAuth
|
||||
// authorization before skipping. <=0 uses the gate's configured timeout.
|
||||
MCPAuthWaitTimeout int `yaml:"mcp_auth_wait_timeout,omitempty" json:"mcp_auth_wait_timeout,omitempty"`
|
||||
|
||||
// ===== Skills Settings (only for smart-reasoning mode) =====
|
||||
// Skills selection mode: "all" = all preloaded skills, "selected" = specific skills, "none" = no skills
|
||||
|
||||
Reference in New Issue
Block a user