[PR #1084] [MERGED] Fix JannyAI Bot Browser definitions #4913

Closed
opened 2026-10-22 04:11:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1084
Author: @cha1latte
Created: 5/21/2026
Status: ✅ Merged
Merged: 5/21/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-1066-janny-definitions


📝 Commits (1)

  • 8520955 Fix JannyAI Bot Browser definitions

📊 Changes

2 files changed (+79 additions, -70 deletions)

View changed files

📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+48 -39)
📝 packages/server/src/routes/bot-browser-janny.routes.ts (+31 -31)

📄 Description

Linked issue

Closes #1066

Why this change

  • JannyAI Bot Browser imports could fall back to search-result metadata only when the main site/corsproxy/server scrape path did not return a full character payload, so imported cards and locally rebuilt PNGs omitted definitions such as first message and example dialogs.

What changed

  • Try JannyAI's public api.jannyai.com character page mirror before the existing main-site/corsproxy/server detail fallbacks.
  • Share the Janny detail-to-card mapping inside the client fetch path so all successful detail strategies preserve the same definition fields.
  • Make "Download as PNG" fetch missing detail data before rebuilding the local PNG card.

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

Manual verification notes

  • Codex repro before fix: node scratch/issue-1066-janny-detail-repro.mjs current returned hasDefinition: false and only creatorNotes.
  • Codex verification after fix: node scratch/issue-1066-janny-detail-repro.mjs fixed returned hasDefinition: true with firstMessage and exampleDialogs from api.jannyai.com.
  • Codex edge case: node scratch/issue-1066-janny-detail-repro.mjs offline preserved the metadata-only creator-notes fallback when every detail fetch path failed.
  • Codex baseline: pnpm check passed locally.
  • Bunny review: pass on the current diff before opening this PR.

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 needed for this scoped provider fallback fix.

UI evidence (if applicable)

N/A - non-visual import/data mapping fix. Local proof report: scratch/issue-1066-proof.html.


🔄 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/1084 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/21/2026 **Status:** ✅ Merged **Merged:** 5/21/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1066-janny-definitions` --- ### 📝 Commits (1) - [`8520955`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8520955bf2866334487b8800cc4b922c3f61709c) Fix JannyAI Bot Browser definitions ### 📊 Changes **2 files changed** (+79 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+48 -39) 📝 `packages/server/src/routes/bot-browser-janny.routes.ts` (+31 -31) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1066 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - JannyAI Bot Browser imports could fall back to search-result metadata only when the main site/corsproxy/server scrape path did not return a full character payload, so imported cards and locally rebuilt PNGs omitted definitions such as first message and example dialogs. ## What changed <!-- List the key changes in this PR --> - Try JannyAI's public `api.jannyai.com` character page mirror before the existing main-site/corsproxy/server detail fallbacks. - Share the Janny detail-to-card mapping inside the client fetch path so all successful detail strategies preserve the same definition fields. - Make "Download as PNG" fetch missing detail data before rebuilding the local PNG card. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex repro before fix: `node scratch/issue-1066-janny-detail-repro.mjs current` returned `hasDefinition: false` and only `creatorNotes`. - Codex verification after fix: `node scratch/issue-1066-janny-detail-repro.mjs fixed` returned `hasDefinition: true` with `firstMessage` and `exampleDialogs` from `api.jannyai.com`. - Codex edge case: `node scratch/issue-1066-janny-detail-repro.mjs offline` preserved the metadata-only creator-notes fallback when every detail fetch path failed. - Codex baseline: `pnpm check` passed locally. - Bunny review: pass on the current diff before opening this PR. ## 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 needed for this scoped provider fallback fix. ## UI evidence (if applicable) N/A - non-visual import/data mapping fix. Local proof report: `scratch/issue-1066-proof.html`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:40 +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#4913
No description provided.