Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Swarm agents: Claude Code's own feedback popups are dismissed without sending anything

bitcoinbuilder009c1516290a
diff --git a/cli/src/engines/claude/feedbackDismiss.spec.ts b/cli/src/engines/claude/feedbackDismiss.spec.ts
new file mode 100644
index 000000000..901a4d68b
--- /dev/null
+++ b/cli/src/engines/claude/feedbackDismiss.spec.ts
@@ -0,0 +1,56 @@
+import { describe, expect, it } from 'vitest'
+import { feedbackDismissKeys } from './screen.js'
+
+// Nova's pane in the Swarm autonomous-harness, 2026-10-29 (Claude Code 2.1): the drafted bug report covered its prompt and
+// every message to it came back undelivered.
+const DRAFT = [
+ '✻ Baked for 4m 54s · done 4:43 PM',
+ '╭──────────────────────────────────────────────────────────────────────────────╮',
+ '│ ✻ Bug report drafted: Lead switched Codex model via /model in a worker term… │',
+ '│ │ - What happened: As Swarm Lead, I typed /model into a Codex Builder\'s │',
+ '│ │ terminal on a Harness Team account and picked GPT-6-Astra, then GPT-5.5, │',
+ '│ │ to get past… │',
+ '│ 1 to review · 2 to send · 0 to dismiss │',
+ '╰──────────────────────────────────────────────────────────────────────────────╯',
+ '────────────────────────────────────────────────────────────────────────────────',
+ '❯ ',
+].join('\n')
+const TURN_OFF = [
+ 'Turn off Claude-drafted feedback? 0 to turn off · Esc to keep',
+ '────────────────────────────────────────────────────────────────────────────────',
+ '❯ ',
+ '────────────────────────────────────────────────────────────────────────────────',
+ ' ⏵⏵ bypass permissions on (shift+tab to cycle) · gh auth login for PR status',
+].join('\n')
+const SURVEY = [
+ '● How is Claude doing this session? (optional)',
+ ' 1: Bad 2: Fine 3: Good 0: Dismiss',
+ '────────────────────────────────────────────────────────────────────────────────',
+ '❯ ',
+].join('\n')
+
+describe('dismissing Claude Code\'s feedback popups for a Swarm agent', () => {
+ it('dismisses a drafted bug report with 0, which sends nothing', () => {
+ expect(feedbackDismissKeys(DRAFT)).toEqual(['0'])
+ })
+
+ it('keeps the person\'s feedback setting with Esc, never 0 (which turns it off)', () => {
+ expect(feedbackDismissKeys(TURN_OFF)).toEqual(['Escape'])
+ })
+
+ it('dismisses the session survey with 0, giving no rating', () => {
+ expect(feedbackDismissKeys(SURVEY)).toEqual(['0'])
+ })
+
+ it.each([
+ ['an idle prompt', '────\n❯ \n────'],
+ ['a draft whose footer reads otherwise', DRAFT.replace('0 to dismiss', '0 to send')],
+ ['a draft without its footer', DRAFT.replace(/│ 1 to review.*\n/, '')],
+ ['a turn-off question that reads otherwise', TURN_OFF.replace('Esc to keep', 'Esc to turn off')],
+ ['a survey without Dismiss', SURVEY.replace('0: Dismiss', '0: Good')],
+ ['two popups at once', `${DRAFT}\n${SURVEY}`],
+ ['the draft twice', `${DRAFT}\n${DRAFT}`],
+ ])('sends nothing for %s', (_name, capture) => {
+ expect(feedbackDismissKeys(capture)).toBeNull()
+ })
+})
diff --git a/cli/src/engines/claude/screen.ts b/cli/src/engines/claude/screen.ts
index 34e05a550..5602bfe6f 100644
--- a/cli/src/engines/claude/screen.ts
+++ b/cli/src/engines/claude/screen.ts
@@ -56,3 +56,23 @@ function claudeRewindMenuOpen(capture: string): boolean {
&& !lines.slice(index + 1).some((next) => /[─━]{8,}/u.test(next)))
}
+
+/**
+ * The key that closes one of Claude Code's own feedback popups without sending anything, or null unless the capture shows
+ * exactly one of them. Only for the Swarm's agents (superTabs/terminal.ts), whom nobody watches: a "Bug report drafted"
+ * popup about the Lead's own slip covered its prompt, and every message to it came back undelivered (`prompt_hidden`,
+ * Nova in the Swarm autonomous-harness, 2026-10-29). As measured there (Claude Code 2.1, 2026-10-29):
+ * - "Bug report drafted: …" with "1 to review · 2 to send · 0 to dismiss": `0` dismisses the draft; nothing is sent.
+ * - Then "Turn off Claude-drafted feedback? 0 to turn off · Esc to keep": Esc, so the person's setting stays as it was.
+ * - "How is Claude doing this session?" with "0: Dismiss": `0`, no rating given.
+ * A popup that reads otherwise, or two at once, gets nothing and stays the Lead's to see.
+ */
+export function feedbackDismissKeys(capture: string): string[] | null {
+ const lines = stripAnsi(capture).replace(/\u00a0/g, ' ').split('\n').map(line => line.replace(/^[\s│|]+|[\s│|]+$/g, ''))
+ const count = (pattern: RegExp) => lines.filter(line => pattern.test(line)).length
+ const draft = count(/^✻?\s*Bug report drafted:/) === 1 && count(/^1 to review · 2 to send · 0 to dismiss$/) === 1
+ const turnOff = count(/^Turn off Claude-drafted feedback\? 0 to turn off · Esc to keep$/) === 1
+ const survey = count(/How is Claude doing this session\?/) === 1 && count(/^1: Bad\s+2: Fine\s+3: Good\s+0: Dismiss$/) === 1
+ if (Number(draft) + Number(turnOff) + Number(survey) !== 1) return null
+ return turnOff ? ['Escape'] : ['0']
+}
diff --git a/cli/src/superTabs/terminal.spec.ts b/cli/src/superTabs/terminal.spec.ts
index f94a2da17..f5ec7d601 100644
--- a/cli/src/superTabs/terminal.spec.ts
+++ b/cli/src/superTabs/terminal.spec.ts
@@ -311,6 +311,23 @@ describe('dismissing Codex\'s update screen for a Swarm agent', () => {
})
})
+// Nova, the Lead of the Swarm autonomous-harness (2026-10-29): Claude Code's drafted bug report covered its prompt, and every
+// message to it came back undelivered until someone pressed a key in its terminal.
+describe('dismissing Claude Code\'s feedback popups for a Swarm agent', () => {
+ const DRAFT = '│ ✻ Bug report drafted: Lead switched Codex model │\n│ 1 to review · 2 to send · 0 to dismiss │\n────\n❯ '
+ const TURN_OFF = 'Turn off Claude-drafted feedback? 0 to turn off · Esc to keep\n────\n❯ '
+ const dismissed = (t: ReturnType<typeof setup>) => vi.mocked(t.core.superTabs!.inputIfScreen).mock.calls
+
+ it('dismisses the draft with 0, then keeps the setting with Esc, through the if-screen door, and raises no alert', async () => {
+ const t = setup({ screen: () => ({ ok: true, text: DRAFT, hold: 'prompt_hidden' }) })
+ await t.host.tick([row()])
+ t.showing(() => ({ ok: true, text: TURN_OFF, hold: 'prompt_hidden' })); t.wait(15_000); await t.host.tick([row()])
+ expect(dismissed(t)).toEqual([['h1', ['0'], DRAFT], ['h1', ['Escape'], TURN_OFF]])
+ expect(t.core.superTabs!.input).not.toHaveBeenCalled()
+ expect(t.alerts()).toEqual([])
+ })
+})
+
describe('progress for the machine report', () => {
const showing = (text: string) => (): SuperTabScreen => ({ ok: true, text, hold: null })
diff --git a/cli/src/superTabs/terminal.ts b/cli/src/superTabs/terminal.ts
index 8c45cef9c..31e3b34e7 100644
--- a/cli/src/superTabs/terminal.ts
+++ b/cli/src/superTabs/terminal.ts
@@ -10,6 +10,7 @@
import { createHash } from 'node:crypto'
import type { CoreApi, SuperTabScreen } from '../core/api.js'
import { updateDismissKeys } from '../engines/codex/screen.js'
+import { feedbackDismissKeys } from '../engines/claude/screen.js'
import type { MessageHold } from '../engines/facets/screen.js'
import { backend } from './host.js'
import { identifier, object } from './wire.js'
@@ -267,11 +268,12 @@ export class TerminalHost {
* After [SKIP_TRIES] the 3-minute alert takes over. Returns the tries made for this screen, none once it is gone. The held
* task goes on by itself: the mailbox types it again once the prompt is gone. */
private async skipUpdate(agent: Own, read: Extract<SuperTabScreen, { ok: true }>, tries: number): Promise<number> {
- const keys = read.hold === 'update_prompt_open' ? updateDismissKeys(read.text) : null
+ // Codex's update screen, or one of Claude Code's own feedback popups (engines/claude/screen.ts feedbackDismissKeys).
+ const keys = read.hold === 'update_prompt_open' ? updateDismissKeys(read.text) : feedbackDismissKeys(read.text)
if (!keys) return 0
if (tries >= SKIP_TRIES) return tries
const dismissed = await this.core.superTabs!.inputIfScreen(agent.harnessId, keys, read.text).catch(error => ({ ok: false as const, error: String(error) }))
- if (!dismissed.ok) this.log(`could not dismiss Codex's update screen for ${agent.agentId}: ${dismissed.error}`)
+ if (!dismissed.ok) this.log(`could not dismiss a screen for ${agent.agentId}: ${dismissed.error}`)
return tries + 1
}