From b0cac027021d6d6a9c269c9884654b77360d7e87 Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Wed, 3 Jun 2026 05:09:09 +0000 Subject: [PATCH 1/2] chore(dead-code): remove unused QueueDepth function QueueDepth was added for Phase 2/3 busy-return response visibility but was never wired to a caller. The inline depth query in EnqueueA2A serves today's enqueue response, making this function dead code. Co-Authored-By: Claude Opus 4.7 --- workspace-server/internal/handlers/a2a_queue.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/workspace-server/internal/handlers/a2a_queue.go b/workspace-server/internal/handlers/a2a_queue.go index c2c3841bd..e6c9dab9f 100644 --- a/workspace-server/internal/handlers/a2a_queue.go +++ b/workspace-server/internal/handlers/a2a_queue.go @@ -272,20 +272,6 @@ func MarkQueueItemFailed(ctx context.Context, id, errMsg string) { } } -// QueueDepth returns the number of currently-queued (not dispatched/completed) -// items for a workspace. Used by the busy-return response body so callers -// can see how many ahead of them. -func QueueDepth(ctx context.Context, workspaceID string) int { - var n int - if err := db.DB.QueryRowContext(ctx, - `SELECT COUNT(*) FROM a2a_queue WHERE workspace_id = $1 AND status = 'queued'`, - workspaceID, - ).Scan(&n); err != nil { - log.Printf("A2AQueue: QueueDepth query failed for workspace %s: %v", workspaceID, err) - } - return n -} - // DropStaleQueueItems marks queued items older than maxAge as 'dropped' with a // system-generated reason so PM agents stop processing stale post-incident noise. // Called with a workspaceID to scope cleanup to one workspace, or empty to sweep -- 2.52.0 From 130f48ed6900bcb696e279303fce9f4ba7132c4f Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Tue, 9 Jun 2026 11:41:21 +0000 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20retrigger=20CI=20=E2=80=94=20Local?= =?UTF-8?q?=20Provision=20E2E=20stub=20failed=20on=20provisioning=20timeou?= =?UTF-8?q?t=20(infra=20flake=20on=20main,=20unrelated=20to=20dead-code=20?= =?UTF-8?q?removal)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0