mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1837] [MERGED] Fix bot browser import parity #5307
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1837
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1805-bot-browser-parity📝 Commits (2)
0362cffFix bot browser import parityb4af441Refresh PR checks📊 Changes
8 files changed (+259 additions, -37 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/normalization.rs(+4 -5)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+37 -0)➕
src/features/shell/bot-browser/api/bot-browser-api.test.ts(+53 -0)📝
src/features/shell/bot-browser/api/bot-browser-api.ts(+43 -0)📝
src/features/shell/bot-browser/components/BotBrowserView.tsx(+23 -32)➕
src/features/shell/bot-browser/lib/character-detail-merge.test.ts(+40 -0)➕
src/features/shell/bot-browser/lib/character-detail-merge.ts(+55 -0)📝
src/features/shell/bot-browser/types/provider-responses.ts(+4 -0)📄 Description
Linked issue
Closes #1805.
Why this change
Bot Browser imports were passing
_botBrowserSource, but the ST character import normalization did not persist it intodata.extensions.botBrowserSource, so imported browser cards could disappear from the Browser panel's imported list. The refactor path also dropped Chub detail enrichment fields when importing downloaded PNG cards, and JannyAI search could stop at the backend Cloudflare mitigation error without trying the legacy browser-side route.What changed
_botBrowserSourceinto imported character extensions while preserving existing provider extension metadata.system_prompt,post_history_instructions,character_version, embedded lorebook data, and provider extensions.Validation
pnpm exec vitest run src/features/shell/bot-browser/api/bot-browser-api.test.ts src/features/shell/bot-browser/lib/character-detail-merge.test.ts src/features/shell/bot-browser/components/BotBrowserView.test.tsxcargo test --manifest-path src-tauri\Cargo.toml import_st_character_preserves_bot_browser_source_markerpnpm checkFeature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
No docs or release notes changed. This restores refactor parity for existing Bot Browser import/provider behavior.
UI evidence (if applicable)
Not applicable: this is import/provider data-path behavior covered by targeted unit tests and the PR gate.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.