Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(chat-harness-subagent): correct test to verify subagent response

Steven Enamakel4806bff95d66
diff --git a/app/test/playwright/specs/chat-harness-subagent.spec.ts b/app/test/playwright/specs/chat-harness-subagent.spec.ts
index e6f0b548d8..4e6c497f19 100644
--- a/app/test/playwright/specs/chat-harness-subagent.spec.ts
+++ b/app/test/playwright/specs/chat-harness-subagent.spec.ts
@@ -377,6 +377,13 @@ test.describe('Chat Harness - Subagent', () => {
limit: 500,
});
expect(JSON.stringify(derived)).toContain(PARENT_THINKING);
+ // The parent's reasoning rehydrates into the static reasoning panel,
+ // settled to a "Thought…" label (never the old hard-coded "Reasoning").
+ const reasoningPanel = page.getByTestId('reasoning-panel').first();
+ await expect(reasoningPanel).toBeVisible({ timeout: 20_000 });
+ await expect(reasoningPanel.locator('[data-slot="reasoning-panel-resting-label"]')).toHaveText(
+ /^Thought( for \d|( briefly)?$)/
+ );
const restoredMessage = page
.getByTestId('agent-message')
.filter({ has: page.getByTestId('assistant-ui-subagent-call') })