mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1922] [Issue]: remote SillyTavern bulk import drops progress events #941
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#941
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?
Originally created by @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1922
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Remote SillyTavern bulk import runs to completion through
/api/invoke, but it does not preserve the legacy per-item progress stream. The UI falls back to a single finaldoneevent while the import is running.Expected behavior
Remote-runtime bulk import should preserve progress parity with embedded/legacy import, or the UI should explicitly present it as a non-streaming remote operation.
Expected remote behavior:
Actual behavior
Static inspection on current
origin/refactorshows:src/shared/api/import-api.tschecksremoteRuntimeTarget()insidestBulkRunEvents.import_st_bulk_run, yields one{ type: "done" }event, and returns.import_st_bulk_run_eventsis intentionally listed as non-remote insrc-tauri/src/http_dispatch.rs./api/invokedoes not expose an event/SSE route for them.Legacy
/api/import/st-bulk/runreturned an SSE stream and emitted progress events while import work was running.Steps to reproduce
Impact area
Environment
origin/refactorat0afe673Logs, screenshots, or video
No runtime screenshot attached. Static evidence:
src/shared/api/import-api.ts: remotestBulkRunEventsyields only finaldonedata.src-tauri/src/http_dispatch.rs:import_st_bulk_run_eventsis documented as non-remote.src-tauri/src/commands/storage/imports/bulk_imports.rs: bulk import emitsprogressanddoneevents when an event sink exists.packages/server/src/routes/import.routes.ts:/api/import/st-bulk/runusedtext/event-streamand sent progress events.Regression notes
This is legacy-better UX for remote/headless imports. The data import path still exists; the gap is progress/event delivery while work is in flight.
Additional context
Suggested fix: add a dedicated remote SSE route for ST bulk import progress, or teach
/api/invoketo expose command event streams safely. Keep the non-streaming final-result fallback only as a deliberate fallback with clear UI copy.Related tracker: #1904 target 3, remote runtime parity.
Template check
@SpicyMarinara commented on GitHub (Jun 2, 2026):
Fixed on refactor in
a4ba3c90: remote SillyTavern bulk import now uses a dedicated privileged SSE route at /api/import/st-bulk/run, and the shared import API consumes streamed progress/done/error events instead of yielding only a final done result. Verification passed: typecheck, architecture, docs, build, cargo check, diff check.