refactor(core,cli): fix missed enum usages in SubagentProgressDisplay and tests

This commit is contained in:
Adam Weidman
2026-05-12 14:45:11 -04:00
parent 9c026f3408
commit 405b02e4b0
2 changed files with 18 additions and 13 deletions
@@ -825,7 +825,9 @@ describe('RemoteAgentInvocation', () => {
abortSignal: new AbortController().signal,
});
expect(result.returnDisplay).toMatchObject({ state: 'error' });
expect(result.returnDisplay).toMatchObject({
state: SubagentState.ERROR,
});
// Should contain both the partial output and the error message
expect(result.returnDisplay).toMatchObject({
result: expect.stringContaining('Partial response'),