[PR #3709] [MERGED] fix: report Agent catalog API errors accurately #6061

Closed
opened 2026-10-23 04:06:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3709
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/catalog-error-feedback


📝 Commits (2)

  • 71c3be4 Report Agent catalog API errors accurately
  • aa3a00e Merge branch 'staging' into agent/catalog-error-feedback

📊 Changes

2 files changed (+41 additions, -4 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+28 -0)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+13 -4)

📄 Description

Linked issue

Related to #3706 and #3707.

Also reported in Pasta-Devs/Marinara-Agents#60.

Why this change

  • Staging already supports the agentDetail contribution contract, so it does not need the v2.3 schema backport.
  • Its Agent Library still diagnoses every catalog API failure as a lost server internet connection, even when Marinara Engine returned a concrete HTTP validation or server error.

What changed

  • Show the catalog API's actual HTTP status and error message.
  • Replace the offline-specific icon with a general warning icon.
  • Preserve the reassurance that installed agents remain usable offline.
  • Add desktop and mobile browser coverage for normal and HTTP 400 catalog states.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence:

  • pnpm check — passed.
  • pnpm exec playwright test e2e/core-flows.e2e.ts --grep "downloadable agent catalog is usable|agent catalog reports API failures" — 4 passed across desktop and mobile Chromium.
  • git diff --check — passed.

Manual verification notes

  • No human manual browser verification was performed. Automated Playwright covered desktop and mobile normal/error catalog paths.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or release metadata changes are expected.

UI evidence (if applicable)

  • Automated assertions verify Marinara Engine returned HTTP 400: Validation Error. is shown and the old internet-connection diagnosis is absent.

Summary by CodeRabbit

  • Bug Fixes
    • Improved agent catalog error messages to show relevant HTTP status and error details.
    • Added an offline-availability notice without incorrectly suggesting that users check their server’s internet connection.
    • Updated the error display with clearer messaging and visual warning indicators.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3709 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/catalog-error-feedback` --- ### 📝 Commits (2) - [`71c3be4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/71c3be4dbd664283e1fda7b0a281dc4714d0a9c3) Report Agent catalog API errors accurately - [`aa3a00e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa3a00e0ed2cf8638f99e675dbafebbbc6862089) Merge branch 'staging' into agent/catalog-error-feedback ### 📊 Changes **2 files changed** (+41 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+28 -0) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+13 -4) </details> ### 📄 Description ## Linked issue Related to #3706 and #3707. Also reported in Pasta-Devs/Marinara-Agents#60. ## Why this change - Staging already supports the `agentDetail` contribution contract, so it does not need the v2.3 schema backport. - Its Agent Library still diagnoses every catalog API failure as a lost server internet connection, even when Marinara Engine returned a concrete HTTP validation or server error. ## What changed - Show the catalog API's actual HTTP status and error message. - Replace the offline-specific icon with a general warning icon. - Preserve the reassurance that installed agents remain usable offline. - Add desktop and mobile browser coverage for normal and HTTP 400 catalog states. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence: - `pnpm check` — passed. - `pnpm exec playwright test e2e/core-flows.e2e.ts --grep "downloadable agent catalog is usable|agent catalog reports API failures"` — 4 passed across desktop and mobile Chromium. - `git diff --check` — passed. ### Manual verification notes - No human manual browser verification was performed. Automated Playwright covered desktop and mobile normal/error catalog paths. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or release metadata changes are expected. ## UI evidence (if applicable) - Automated assertions verify `Marinara Engine returned HTTP 400: Validation Error.` is shown and the old internet-connection diagnosis is absent. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved agent catalog error messages to show relevant HTTP status and error details. * Added an offline-availability notice without incorrectly suggesting that users check their server’s internet connection. * Updated the error display with clearer messaging and visual warning indicators. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6061
No description provided.