mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1497] [Issue]: Roleplay agent panels use raw invokeTauri calls #748
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#748
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 (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1497
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Roleplay agent-side panels still import
invokeTauridirectly for agent memory/cadence commands instead of going through focused shared API wrappers. This violates the refactor architecture rule for feature code and leaves these Roleplay agent controls outside the typed shared API/remote-runtime contract.Expected behavior
Roleplay feature code should call focused wrappers under
src/shared/apifor privileged/runtime commands. Commands that are remote-capable should remain explicit in the shared API wrapper, remote runtime allowlist, and Rust HTTP dispatch path.Actual behavior
src/features/modes/roleplay/components/ContextInjectionPanel.tsxandsrc/features/modes/roleplay/components/SecretPlotPanel.tsximportinvokeTauridirectly and call agent commands from the feature component layer:agent_cadence_statusagent_memory_getagent_memory_patchThis makes the Roleplay agent UI a boundary exception instead of using a reusable typed wrapper.
Steps to reproduce
rg -n "invokeTauri" src/features/modes/roleplay.invokeTauriimports/calls inContextInjectionPanel.tsxandSecretPlotPanel.tsx.AGENTS.md/ architecture guard guidance that new or touched feature code should use focused shared API wrappers rather than rawinvokeTauri.Impact area
Environment
4ea23560Logs, screenshots, or video
Relevant source-audit output:
Regression notes
Not confirmed as a runtime regression. Found during the Roleplay mode audit as an architecture/wiring issue.
Additional context
Found while supporting #1486 (
Smoke test: Roleplay Mode). A focused fix should introduce a typed shared API wrapper for these agent memory/cadence calls and update the Roleplay panels to use it.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 29, 2026):
Resolved on refactor in
a706b274. Roleplay agent panels now use shared agentApi wrappers for cadence and memory calls instead of raw invokeTauri imports.