From c04c9e6cf28f75c59b5ba13096aa3fd2d193f097 Mon Sep 17 00:00:00 2001 From: laily Date: Tue, 2 Jun 2026 14:27:56 +0800 Subject: [PATCH] test: enable inbox explicitly in inbox hook tests After inbox defaults to disabled, inbox upload tests must opt in. Co-authored-by: Cursor --- internal/hook/hook_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/hook/hook_test.go b/internal/hook/hook_test.go index 40c2bad..70315f6 100644 --- a/internal/hook/hook_test.go +++ b/internal/hook/hook_test.go @@ -64,6 +64,7 @@ func TestCursorHookUploadsInboxRecord(t *testing.T) { ) cfg := config.Default() + cfg.Inbox.Enabled = true err := RunCursor(bytes.NewReader([]byte(`{"workspace_roots":["/tmp/proj"]}`)), cfg, "stop", &bytes.Buffer{}) if err != nil { t.Fatal(err) @@ -87,6 +88,7 @@ func TestCursorHookFallbacksWhenInboxUploadFails(t *testing.T) { ) cfg := config.Default() + cfg.Inbox.Enabled = true err := RunCursor(bytes.NewReader([]byte(`{"workspace_roots":["/tmp/proj"]}`)), cfg, "stop", &bytes.Buffer{}) if err != nil { t.Fatal(err) @@ -130,6 +132,7 @@ func TestClaudeHookUploadsInboxRecord(t *testing.T) { ) cfg := config.Default() + cfg.Inbox.Enabled = true var out bytes.Buffer if err := RunClaude(strings.NewReader(`{"stop_hook_active":false}`), cfg, "stop", &out); err != nil { t.Fatal(err)