Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: Support unlimited Agent confirmation wait https://github.com/siyuan-note/siyuan/issues/18932

Daniele397e3c9a239
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.json
index 165c7f6eec..0a83f8eed0 100644
--- a/app/appearance/langs/ar.json
+++ b/app/appearance/langs/ar.json
@@ -688,7 +688,7 @@
"agentTimeout": "المهلة",
"agentTimeoutTip": "إجمالي مهلة جلسة الوكيل، 0 = بلا حد",
"agentConfirmTimeout": "مهلة التأكيد",
- "agentConfirmTimeoutTip": "الرفض التلقائي بعد انتهاء المهلة",
+ "agentConfirmTimeoutTip": "الرفض التلقائي بعد انتهاء المهلة، 0 = انتظار بلا حد",
"agentMaxRetries": "الحد الأقصى للمحاولات",
"agentMaxRetriesTip": "الحد الأقصى لمحاولات إعادة طلب API عند الفشل",
"agentMaxToolCallRounds": "الحد الأقصى لجولات استدعاء الأدوات",
diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.json
index 397a24fb1d..b68c6bd07f 100644
--- a/app/appearance/langs/de.json
+++ b/app/appearance/langs/de.json
@@ -688,7 +688,7 @@
"agentTimeout": "Timeout",
"agentTimeoutTip": "Gesamt-Timeout der Agent-Sitzung, 0 = kein Limit",
"agentConfirmTimeout": "Bestätigungs-Timeout",
- "agentConfirmTimeoutTip": "Nach Timeout automatisch ablehnen",
+ "agentConfirmTimeoutTip": "Nach Timeout automatisch ablehnen, 0 = unbegrenzt warten",
"agentMaxRetries": "Maximale Wiederholungen",
"agentMaxRetriesTip": "Maximale API-Wiederholungsversuche bei Fehler",
"agentMaxToolCallRounds": "Max. Werkzeugaufruf-Runden",
diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.json
index a1bb1c1fa1..3584f00389 100644
--- a/app/appearance/langs/en.json
+++ b/app/appearance/langs/en.json
@@ -688,7 +688,7 @@
"agentTimeout": "Timeout",
"agentTimeoutTip": "0 = no limit",
"agentConfirmTimeout": "Confirm Timeout",
- "agentConfirmTimeoutTip": "Auto reject after timeout",
+ "agentConfirmTimeoutTip": "Auto reject after timeout, 0 = wait indefinitely",
"agentMaxRetries": "Max Retries",
"agentMaxRetriesTip": "Max API retry attempts on failure",
"agentMaxToolCallRounds": "Max Tool Call Rounds",
diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.json
index cf90d031fe..0ccbbc0157 100644
--- a/app/appearance/langs/es.json
+++ b/app/appearance/langs/es.json
@@ -688,7 +688,7 @@
"agentTimeout": "Tiempo de espera",
"agentTimeoutTip": "Tiempo de espera total de la sesión del agente, 0 = sin límite",
"agentConfirmTimeout": "Tiempo de espera de confirmación",
- "agentConfirmTimeoutTip": "Rechazo automático tras agotar el tiempo",
+ "agentConfirmTimeoutTip": "Rechazo automático tras agotar el tiempo, 0 = esperar sin límite",
"agentMaxRetries": "Reintentos máximos",
"agentMaxRetriesTip": "Reintentos máximos de la API en caso de error",
"agentMaxToolCallRounds": "Máx. rondas de llamadas a herramientas",
diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.json
index 3d5e044390..4a159d83c3 100644
--- a/app/appearance/langs/fr.json
+++ b/app/appearance/langs/fr.json
@@ -688,7 +688,7 @@
"agentTimeout": "Délai d'expiration",
"agentTimeoutTip": "Délai d'expiration total de la session de l'agent, 0 = sans limite",
"agentConfirmTimeout": "Délai de confirmation",
- "agentConfirmTimeoutTip": "Rejet automatique après expiration",
+ "agentConfirmTimeoutTip": "Rejet automatique après expiration, 0 = attente illimitée",
"agentMaxRetries": "Nombre max. de tentatives",
"agentMaxRetriesTip": "Nombre max. de tentatives API en cas d'échec",
"agentMaxToolCallRounds": "Nombre max. de tours d'appels d'outils",
diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.json
index 2a677040d9..fc62acd265 100644
--- a/app/appearance/langs/he.json
+++ b/app/appearance/langs/he.json
@@ -688,7 +688,7 @@
"agentTimeout": "זמן קצוב",
"agentTimeoutTip": "זמן קצוב כולל להפעלת הסוכן, 0 = ללא הגבלה",
"agentConfirmTimeout": "פג זמן אישור",
- "agentConfirmTimeoutTip": "דחייה אוטומטית לאחר פקיעת זמן",
+ "agentConfirmTimeoutTip": "דחייה אוטומטית לאחר פקיעת הזמן, 0 = המתנה ללא הגבלה",
"agentMaxRetries": "מקסימום ניסיונות חוזרים",
"agentMaxRetriesTip": "מקסימום ניסיונות חוזרים של API בכשלון",
"agentMaxToolCallRounds": "מקסימום סיבובי קריאת כלים",
diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.json
index deec6dde19..785408a9be 100644
--- a/app/appearance/langs/hi.json
+++ b/app/appearance/langs/hi.json
@@ -688,7 +688,7 @@
"agentTimeout": "समय सीमा",
"agentTimeoutTip": "एजेंट सत्र की कुल समय सीमा, 0 = कोई सीमा नहीं",
"agentConfirmTimeout": "पुष्टि समय समाप्ति",
- "agentConfirmTimeoutTip": "ऑपरेशन पुष्टिकरण समय समाप्त होने पर स्वचालित रूप से अस्वीकार कर दिया जाएगा",
+ "agentConfirmTimeoutTip": "ऑपरेशन पुष्टिकरण समय समाप्त होने पर स्वचालित रूप से अस्वीकार कर दिया जाएगा, 0 = असीमित प्रतीक्षा",
"agentMaxRetries": "अधिकतम पुनः प्रयास",
"agentMaxRetriesTip": "API अनुरोध विफल होने पर अधिकतम पुनः प्रयास की संख्या",
"agentMaxToolCallRounds": "अधिकतम टूल कॉल राउंड",
diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.json
index 49bef4016c..c948e4abdc 100644
--- a/app/appearance/langs/id.json
+++ b/app/appearance/langs/id.json
@@ -688,7 +688,7 @@
"agentTimeout": "Batas waktu",
"agentTimeoutTip": "Batas waktu total sesi agen, 0 = tanpa batas",
"agentConfirmTimeout": "Batas waktu konfirmasi",
- "agentConfirmTimeoutTip": "Tolak otomatis setelah waktu habis",
+ "agentConfirmTimeoutTip": "Tolak otomatis setelah waktu habis, 0 = tunggu tanpa batas",
"agentMaxRetries": "Percobaan maksimum",
"agentMaxRetriesTip": "Percobaan ulang API maksimum saat gagal",
"agentMaxToolCallRounds": "Maks. putaran panggilan alat",
diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.json
index 4c64ea800d..04a6bc74e5 100644
--- a/app/appearance/langs/it.json
+++ b/app/appearance/langs/it.json
@@ -688,7 +688,7 @@
"agentTimeout": "Timeout",
"agentTimeoutTip": "Timeout totale della sessione agente, 0 = nessun limite",
"agentConfirmTimeout": "Timeout conferma",
- "agentConfirmTimeoutTip": "Rifiuto automatico dopo scadenza",
+ "agentConfirmTimeoutTip": "Rifiuto automatico dopo la scadenza, 0 = attesa illimitata",
"agentMaxRetries": "Tentativi massimi",
"agentMaxRetriesTip": "Tentativi massimi API in caso di errore",
"agentMaxToolCallRounds": "Massimo round di chiamate strumento",
diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.json
index 37ee7666d3..d42f573b57 100644
--- a/app/appearance/langs/ja.json
+++ b/app/appearance/langs/ja.json
@@ -688,7 +688,7 @@
"agentTimeout": "タイムアウト",
"agentTimeoutTip": "エージェント セッション全体のタイムアウト、0 は制限なし",
"agentConfirmTimeout": "確認タイムアウト",
- "agentConfirmTimeoutTip": "タイムアウト後に自動的に拒否",
+ "agentConfirmTimeoutTip": "タイムアウト後に自動的に拒否、0 は無制限に待機",
"agentMaxRetries": "最大リトライ回数",
"agentMaxRetriesTip": "API リクエスト失敗時の最大リトライ回数",
"agentMaxToolCallRounds": "最大ツール呼び出しラウンド数",
diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.json
index 7a56d99a7f..6c1c013bf7 100644
--- a/app/appearance/langs/ko.json
+++ b/app/appearance/langs/ko.json
@@ -688,7 +688,7 @@
"agentTimeout": "시간 초과",
"agentTimeoutTip": "에이전트 세션 전체 시간 초과, 0 은 제한 없음",
"agentConfirmTimeout": "확인 시간 초과",
- "agentConfirmTimeoutTip": "시간 초과 후 자동 거부",
+ "agentConfirmTimeoutTip": "시간 초과 후 자동 거부, 0 은 무제한 대기",
"agentMaxRetries": "최대 재시도 횟수",
"agentMaxRetriesTip": "API 요청 실패 시 최대 재시도 횟수",
"agentMaxToolCallRounds": "최대 도구 호출 라운드",
diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.json
index 10e5672e12..4dbaed156b 100644
--- a/app/appearance/langs/nl.json
+++ b/app/appearance/langs/nl.json
@@ -688,7 +688,7 @@
"agentTimeout": "Time-out",
"agentTimeoutTip": "Totale time-out van de agentsessie, 0 = geen limiet",
"agentConfirmTimeout": "Bevestigingstime-out",
- "agentConfirmTimeoutTip": "Automatisch afwijzen na time-out",
+ "agentConfirmTimeoutTip": "Automatisch afwijzen na time-out, 0 = onbeperkt wachten",
"agentMaxRetries": "Max. pogingen",
"agentMaxRetriesTip": "Max. API-herhalingspogingen bij fout",
"agentMaxToolCallRounds": "Max. toolaanroep-rondes",
diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.json
index 0a21ae88ec..e44e299ccb 100644
--- a/app/appearance/langs/pl.json
+++ b/app/appearance/langs/pl.json
@@ -688,7 +688,7 @@
"agentTimeout": "Limit czasu",
"agentTimeoutTip": "Całkowity limit czasu sesji agenta, 0 = bez limitu",
"agentConfirmTimeout": "Limit czasu potwierdzenia",
- "agentConfirmTimeoutTip": "Automatyczne odrzucenie po przekroczeniu czasu",
+ "agentConfirmTimeoutTip": "Automatyczne odrzucenie po przekroczeniu czasu, 0 = oczekiwanie bez limitu",
"agentMaxRetries": "Maks. liczba ponowień",
"agentMaxRetriesTip": "Maks. liczba ponownych prób API przy błędzie",
"agentMaxToolCallRounds": "Maks. liczba rund wywołań narzędzi",
diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.json
index 4334175dd9..f5d1446b9d 100644
--- a/app/appearance/langs/pt-BR.json
+++ b/app/appearance/langs/pt-BR.json
@@ -688,7 +688,7 @@
"agentTimeout": "Tempo limite",
"agentTimeoutTip": "Tempo limite total da sessão do agente, 0 = sem limite",
"agentConfirmTimeout": "Tempo limite de confirmação",
- "agentConfirmTimeoutTip": "Rejeição automática após expirar o tempo",
+ "agentConfirmTimeoutTip": "Rejeição automática após expirar o tempo, 0 = aguardar sem limite",
"agentMaxRetries": "Tentativas máximas",
"agentMaxRetriesTip": "Tentativas máximas da API em caso de falha",
"agentMaxToolCallRounds": "Máx. rodadas de chamadas de ferramentas",
diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.json
index b3e6e39a2f..e04230c4f2 100644
--- a/app/appearance/langs/ru.json
+++ b/app/appearance/langs/ru.json
@@ -688,7 +688,7 @@
"agentTimeout": "Тайм-аут",
"agentTimeoutTip": "Общий тайм-аут сессии агента, 0 = без ограничения",
"agentConfirmTimeout": "Тайм-аут подтверждения",
- "agentConfirmTimeoutTip": "Автоматический отказ при истечении времени",
+ "agentConfirmTimeoutTip": "Автоматический отказ при истечении времени, 0 = ожидание без ограничения",
"agentMaxRetries": "Макс. повторов",
"agentMaxRetriesTip": "Макс. повторных попыток API при сбое",
"agentMaxToolCallRounds": "Макс. раундов вызова инструментов",
diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.json
index 722b80519b..53ef2ac05f 100644
--- a/app/appearance/langs/sk.json
+++ b/app/appearance/langs/sk.json
@@ -688,7 +688,7 @@
"agentTimeout": "Časový limit",
"agentTimeoutTip": "Celkový časový limit relácie agenta, 0 = bez limitu",
"agentConfirmTimeout": "Časový limit potvrdenia",
- "agentConfirmTimeoutTip": "Automatické odmietnutie po uplynutí času",
+ "agentConfirmTimeoutTip": "Automatické odmietnutie po uplynutí času, 0 = čakanie bez obmedzenia",
"agentMaxRetries": "Max. počet opakovaní",
"agentMaxRetriesTip": "Max. počet opakovaných pokusov API pri chybe",
"agentMaxToolCallRounds": "Max. počet kôl volania nástrojov",
diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.json
index c0da13556b..7e8252aa27 100644
--- a/app/appearance/langs/th.json
+++ b/app/appearance/langs/th.json
@@ -688,7 +688,7 @@
"agentTimeout": "หมดเวลา",
"agentTimeoutTip": "หมดเวลารวมของเซสชันเอเจนต์, 0 = ไม่จำกัด",
"agentConfirmTimeout": "หมดเวลายืนยัน",
- "agentConfirmTimeoutTip": "ปฏิเสธอัตโนมัติเมื่อหมดเวลา",
+ "agentConfirmTimeoutTip": "ปฏิเสธอัตโนมัติเมื่อหมดเวลา, 0 = รอไม่จำกัด",
"agentMaxRetries": "จำนวนครั้งสูงสุด",
"agentMaxRetriesTip": "จำนวนครั้งสูงสุดในการลอง API ใหม่เมื่อล้มเหลว",
"agentMaxToolCallRounds": "รอบการเรียกเครื่องมือสูงสุด",
diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.json
index 2d53a5e8b6..34fd987936 100644
--- a/app/appearance/langs/tr.json
+++ b/app/appearance/langs/tr.json
@@ -688,7 +688,7 @@
"agentTimeout": "Zaman aşımı",
"agentTimeoutTip": "Agent oturumu toplam zaman aşımı, 0 = sınırsız",
"agentConfirmTimeout": "Onay zaman aşımı",
- "agentConfirmTimeoutTip": "Zaman aşımından sonra otomatik reddet",
+ "agentConfirmTimeoutTip": "Zaman aşımından sonra otomatik reddet, 0 = sınırsız bekle",
"agentMaxRetries": "Maks. yeniden deneme",
"agentMaxRetriesTip": "Hata durumunda maks. API yeniden deneme sayısı",
"agentMaxToolCallRounds": "Maks. araç çağrısı turu",
diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.json
index 59ab59e8a6..c628a85ccb 100644
--- a/app/appearance/langs/uk.json
+++ b/app/appearance/langs/uk.json
@@ -688,7 +688,7 @@
"agentTimeout": "Таймаут",
"agentTimeoutTip": "Загальний таймаут сесії агента, 0 = без обмежень",
"agentConfirmTimeout": "Таймаут підтвердження",
- "agentConfirmTimeoutTip": "Автоматична відмова після спливу часу",
+ "agentConfirmTimeoutTip": "Автоматична відмова після спливу часу, 0 = очікування без обмежень",
"agentMaxRetries": "Макс. повторів",
"agentMaxRetriesTip": "Макс. повторних спроб API при збої",
"agentMaxToolCallRounds": "Макс. раундів виклику інструментів",
diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.json
index 487eb32972..678c0b2a74 100644
--- a/app/appearance/langs/zh-CN.json
+++ b/app/appearance/langs/zh-CN.json
@@ -688,7 +688,7 @@
"agentTimeout": "超时时间",
"agentTimeoutTip": "智能体会话总超时时间,0 表示不限制",
"agentConfirmTimeout": "确认超时时间",
- "agentConfirmTimeoutTip": "操作确认超时后自动拒绝",
+ "agentConfirmTimeoutTip": "操作确认超时后自动拒绝,0 表示一直等待",
"agentMaxRetries": "最大重试次数",
"agentMaxRetriesTip": "API 请求失败时的最大重试次数",
"agentMaxToolCallRounds": "最大工具调用轮数",
diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.json
index fa2b92c571..e26c48bc7d 100644
--- a/app/appearance/langs/zh-TW.json
+++ b/app/appearance/langs/zh-TW.json
@@ -688,7 +688,7 @@
"agentTimeout": "逾時時間",
"agentTimeoutTip": "智能體會話總超時時間,0 表示不限制",
"agentConfirmTimeout": "確認超時時間",
- "agentConfirmTimeoutTip": "操作確認超時後自動拒絕",
+ "agentConfirmTimeoutTip": "操作確認超時後自動拒絕,0 表示一直等待",
"agentMaxRetries": "最大重試次數",
"agentMaxRetriesTip": "API 請求失敗時的最大重試次數",
"agentMaxToolCallRounds": "最大工具調用輪數",
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.go
index f5c84c7366..0926b103c8 100644
--- a/kernel/agent/agent.go
+++ b/kernel/agent/agent.go
@@ -1279,7 +1279,7 @@ func AgentChat(ctx context.Context, client *openai.Client, protocol, model, imag
return
}
return
- case <-time.After(confirmTimeout):
+ case <-optionalAgentDeadline(confirmTimeout):
if acceptedResult, accepted := finishConfirmWait(confirmID, ch2); accepted {
result = acceptedResult
break
@@ -1417,7 +1417,8 @@ func AgentChat(ctx context.Context, client *openai.Client, protocol, model, imag
} else if tc.Function.Name == "question" {
resultStr = handleQuestion(ctx, args, roundID, ch, 5*time.Minute)
} else if registration.isBrowser() {
- executed := handleBrowserCapability(ctx, tc, registration, args, ch, confirmTimeout)
+ executed := handleBrowserCapability(ctx, tc, registration, args, ch,
+ resolveBrowserCapabilityTimeout(confirmTimeout))
resultStr = executed.Text
isErr = executed.IsError
executionUnknown = executed.ExecutionUnknown
@@ -1817,6 +1818,20 @@ func finishConfirmWait(confirmID string, ch chan confirmResult) (confirmResult,
}
}
+func optionalAgentDeadline(timeout time.Duration) <-chan time.Time {
+ if timeout <= 0 {
+ return nil
+ }
+ return time.After(timeout)
+}
+
+func resolveBrowserCapabilityTimeout(confirmTimeout time.Duration) time.Duration {
+ if confirmTimeout <= 0 {
+ return 120 * time.Second
+ }
+ return confirmTimeout
+}
+
// handleBrowserCapability 通过 SSE 把前端能力调用发送到浏览器,并等待浏览器回传结果。
func handleBrowserCapability(ctx context.Context, tc openai.ToolCall, registration *capabilityRegistration,
args map[string]any, ch chan<- AgentEvent, timeout time.Duration) executedToolResult {
diff --git a/kernel/agent/tools_test.go b/kernel/agent/tools_test.go
index 9d54f431c7..68e533895a 100644
--- a/kernel/agent/tools_test.go
+++ b/kernel/agent/tools_test.go
@@ -416,6 +416,18 @@ func TestConfirmSessionAcceptsResponseOnce(t *testing.T) {
}
}
+func TestAgentConfirmationDeadlineZeroHasNoLimit(t *testing.T) {
+ if deadline := optionalAgentDeadline(0); deadline != nil {
+ t.Fatal("zero confirmation timeout created a deadline")
+ }
+ if deadline := optionalAgentDeadline(time.Second); deadline == nil {
+ t.Fatal("positive confirmation timeout did not create a deadline")
+ }
+ if timeout := resolveBrowserCapabilityTimeout(0); timeout != 120*time.Second {
+ t.Fatalf("zero confirmation timeout disabled the browser capability timeout: %v", timeout)
+ }
+}
+
func TestQuestionAndBrowserCapabilityResultsAreAcceptedOnce(t *testing.T) {
const questionID = "test-question"
questionCh := make(chan QuestionAnswer, 1)
diff --git a/kernel/api/agent.go b/kernel/api/agent.go
index cb182ae806..14a82195dd 100644
--- a/kernel/api/agent.go
+++ b/kernel/api/agent.go
@@ -95,10 +95,7 @@ func agentChat(c *gin.Context) {
}
client := util.NewOpenAIClientWithModel(selectedProvider.APIKey, selectedProvider.BaseURL, selectedModel.Name)
- confirmTimeout := time.Duration(model.Conf.AI.Agent.ConfirmTimeout) * time.Second
- if confirmTimeout <= 0 {
- confirmTimeout = 120 * time.Second
- }
+ confirmTimeout := resolveAgentConfirmTimeout(model.Conf.AI.Agent.ConfirmTimeout)
maxRetries := model.Conf.AI.Agent.MaxRetries
if maxRetries < 0 {
maxRetries = 0
@@ -208,6 +205,13 @@ func newAgentSessionDeadline(timeoutSeconds int) (*time.Timer, <-chan time.Time)
return timer, timer.C
}
+func resolveAgentConfirmTimeout(timeoutSeconds int) time.Duration {
+ if timeoutSeconds < 0 {
+ return 120 * time.Second
+ }
+ return time.Duration(timeoutSeconds) * time.Second
+}
+
func recordRunningEvent(sessionID string, running *runningSession, event agent.AgentEvent) {
sessionsMu.Lock()
if runningSessions[sessionID] != running {
diff --git a/kernel/api/agent_timeout_test.go b/kernel/api/agent_timeout_test.go
index de2293b8a8..42f2453621 100644
--- a/kernel/api/agent_timeout_test.go
+++ b/kernel/api/agent_timeout_test.go
@@ -8,7 +8,10 @@
package api
-import "testing"
+import (
+ "testing"
+ "time"
+)
func TestNewAgentSessionDeadlineZeroHasNoLimit(t *testing.T) {
timer, deadline := newAgentSessionDeadline(0)
@@ -19,3 +22,15 @@ func TestNewAgentSessionDeadlineZeroHasNoLimit(t *testing.T) {
t.Fatalf("zero timeout created a deadline: timer=%v, deadline=%v", timer, deadline)
}
}
+
+func TestResolveAgentConfirmTimeout(t *testing.T) {
+ if timeout := resolveAgentConfirmTimeout(0); timeout != 0 {
+ t.Fatalf("zero confirmation timeout was changed: %v", timeout)
+ }
+ if timeout := resolveAgentConfirmTimeout(30); timeout != 30*time.Second {
+ t.Fatalf("positive confirmation timeout was not preserved: %v", timeout)
+ }
+ if timeout := resolveAgentConfirmTimeout(-1); timeout != 120*time.Second {
+ t.Fatalf("negative confirmation timeout did not use the default: %v", timeout)
+ }
+}