forked from molecule-ai/molecule-core
Issue #159: successful delegation responses were rendered as error banners because extractResponseText() only handled the A2A result format (body.result.parts[].text) but delegation.go stores response_body as {text: "...", delegation_id: "..."}. The error status was set when the HTTP transport failed even though the actual agent response was received. Fixes: 1. extractResponseText: check body.text before the result path so delegation response_body.text is extracted correctly 2. extractResponseText: also check body.response_preview (WS event shape from DELEGATION_COMPLETE handler) 3. GroupedCommsView: render NormalMessage when status=error but responseText is populated (delegation succeeded, transport failed) instead of burying the content in an error banner Tests: 8 new cases (4 extractResponseText + 2 extractRequestText regression + 2 render tests). 189 tests pass across 10 files. Closes #159. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| components.json | ||
| Dockerfile | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.staging.config.ts | ||
| postcss.config.js | ||
| tsconfig.json | ||
| vitest.config.ts | ||