From ab3bd3ca7a3dfef735a4d25e1cb51c3a7c1cb9cc Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Tue, 17 Mar 2026 12:10:32 -0700 Subject: [PATCH 1/2] fix(backend): log failedReason when connection sync job fails The error message from a failed connection sync job was being stored in the DB but never surfaced in the logs, making it impossible to diagnose failures without querying the database directly. Co-Authored-By: Claude Sonnet 4.6 --- packages/backend/src/connectionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/connectionManager.ts b/packages/backend/src/connectionManager.ts index ad332ea7f..7a5351645 100644 --- a/packages/backend/src/connectionManager.ts +++ b/packages/backend/src/connectionManager.ts @@ -378,7 +378,7 @@ export class ConnectionManager { this.promClient.activeConnectionSyncJobs.dec({ connection: connection.name }); this.promClient.connectionSyncJobFailTotal.inc({ connection: connection.name }); - jobLogger.error(`Failed job ${job.id} for connection ${connection.name} (id: ${connection.id}). Failing job.`); + jobLogger.error(`Failed job ${job.id} for connection ${connection.name} (id: ${connection.id}). Reason: ${job.failedReason}`); const config = connection.config as unknown as ConnectionConfig; captureEvent('backend_connection_sync_job_failed', { From 5c03e83aae27cc96b60dbd02e1b4eaa1466a2431 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Tue, 17 Mar 2026 12:11:06 -0700 Subject: [PATCH 2/2] chore: update CHANGELOG for #1012 Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5988562a1..8ba720ebf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - `filterByFilepaths` in the MCP `search_code` tool now accepts regular expressions matched against the full file path, instead of treating values as escaped literals. [#1008](https://github.com/sourcebot-dev/sourcebot/pull/1008) +### Fixed +- Connection sync job failures now log the actual error reason instead of a generic message. [#1012](https://github.com/sourcebot-dev/sourcebot/pull/1012) + ## [4.15.7] - 2026-03-16 ### Added