From fb7dbd7c29b30eea26b97cd3b21dbbd9484c4d61 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Tue, 7 Jul 2026 02:40:55 -0700 Subject: [PATCH] test(queue): stop asserting configuration has no dispatch handler #3983 wired a real maybeProcessConfigurationCommand handler for "@gittensory configuration", so this test's premise (a verb with no handler bails cleanly out of the Q&A answer-card path) no longer holds for that example. Switches to "pause", a still-genuinely-unwired action-command in the same catalog. --- test/unit/queue.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/unit/queue.test.ts b/test/unit/queue.test.ts index c6ea2e1cc6..c2eb83af65 100644 --- a/test/unit/queue.test.ts +++ b/test/unit/queue.test.ts @@ -22797,13 +22797,15 @@ describe("queue processors", () => { installation: { id: 123, account: { login: "JSONbored", id: 1, type: "User" } }, repository: { name: "gittensory", full_name: "JSONbored/gittensory", private: false, owner: { login: "JSONbored" } }, issue: { number: 93, title: "Not yet wired", state: "open", user: { login: "contributor" }, pull_request: {} }, - comment: { id: 900, body: "@gittensory configuration", author_association: "OWNER", user: { login: "maintainer", type: "User" } }, + comment: { id: 900, body: "@gittensory pause", author_association: "OWNER", user: { login: "maintainer", type: "User" } }, sender: { login: "maintainer", type: "User" }, }, }); - // No handler claims a bare "configuration" comment yet (its dispatch lands in a follow-up bounty), so the Q&A - // answer-card path must bail rather than post a stray "help" card or any other Q&A comment. + // "pause" is a recognized action-command (GITTENSORY_ACTION_COMMAND_CATALOG) but has no maybeProcess*Command + // dispatch handler wired yet, unlike gate-override/resolve/configuration/plan -- its dispatch lands in a + // follow-up bounty, so the Q&A answer-card path must bail rather than post a stray "help" card or any other + // Q&A comment. expect(calls.comments).toBe(0); const feedback = await env.DB.prepare("select id from audit_events where event_type = ?").bind("github_app.agent_command_feedback_prompted").first<{ id: string }>(); expect(feedback ?? null).toBeNull();