From cd34ecc8f296c5b402b19896cf529e751ac5f2fe Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Wed, 4 Mar 2026 05:05:37 +0900 Subject: [PATCH] chore: fix golines formatting for CI --- pkg/agent/loop_thread_test.go | 9 ++++++++- pkg/config/config.go | 12 ++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/pkg/agent/loop_thread_test.go b/pkg/agent/loop_thread_test.go index 2e96fdb40..909f9770d 100644 --- a/pkg/agent/loop_thread_test.go +++ b/pkg/agent/loop_thread_test.go @@ -25,7 +25,14 @@ func TestWithTelegramThread(t *testing.T) { t.Run(tc.name, func(t *testing.T) { got := al.withTelegramThread(tc.channel, tc.chatID, tc.threadID) if got != tc.want { - t.Fatalf("withTelegramThread(%q, %q, %d) = %q, want %q", tc.channel, tc.chatID, tc.threadID, got, tc.want) + t.Fatalf( + "withTelegramThread(%q, %q, %d) = %q, want %q", + tc.channel, + tc.chatID, + tc.threadID, + got, + tc.want, + ) } }) } diff --git a/pkg/config/config.go b/pkg/config/config.go index 3dea1d069..1bd08ac35 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -240,17 +240,17 @@ type WhatsAppConfig struct { } type TelegramConfig struct { - Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_TELEGRAM_ENABLED"` - Token string `json:"token" env:"PICOCLAW_CHANNELS_TELEGRAM_TOKEN"` - Proxy string `json:"proxy" env:"PICOCLAW_CHANNELS_TELEGRAM_PROXY"` - WebAppURL string `json:"web_app_url" env:"PICOCLAW_CHANNELS_TELEGRAM_WEB_APP_URL"` - AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_TELEGRAM_ALLOW_FROM"` + Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_TELEGRAM_ENABLED"` + Token string `json:"token" env:"PICOCLAW_CHANNELS_TELEGRAM_TOKEN"` + Proxy string `json:"proxy" env:"PICOCLAW_CHANNELS_TELEGRAM_PROXY"` + WebAppURL string `json:"web_app_url" env:"PICOCLAW_CHANNELS_TELEGRAM_WEB_APP_URL"` + AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_TELEGRAM_ALLOW_FROM"` GroupTrigger GroupTriggerConfig `json:"group_trigger,omitempty"` Typing TypingConfig `json:"typing,omitempty"` Placeholder PlaceholderConfig `json:"placeholder,omitempty"` SubagentThreadID int `json:"subagent_thread_id,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_SUBAGENT_THREAD_ID"` HeartbeatThreadID int `json:"heartbeat_thread_id,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_HEARTBEAT_THREAD_ID"` - ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_TELEGRAM_REASONING_CHANNEL_ID"` + ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_TELEGRAM_REASONING_CHANNEL_ID"` } type FeishuConfig struct {