mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1791] [Issue]: Agents parity regressions after refactor #873
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#873
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 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1791
Originally assigned to: @Xelvanis on GitHub.
Summary
Static legacy parity audit found multiple agents feature regressions in the refactor branch. The biggest gaps are disabled agent state being lost, Knowledge Retrieval/Router active-lorebook source control being removed from the editor, and script custom tools being executable through the TypeScript runtime despite legacy having an explicit script-execution safety gate.
Expected behavior
Agents parity should preserve legacy user-visible controls and safety semantics:
useChatActiveLorebooks.Actual behavior
The refactor appears to lose or weaken those behaviors:
AgentEditorsavesenabled: trueunconditionally, andAgentsPaneldiscards theenabledvalue instead of exposing a toggle/status.useChatActiveLorebooks === false, but the editor no longer loads/saves that setting for Knowledge Retrieval/Router sources.custom_tool_executerejects script tools in Rust, but the TypeScript generation runtime executes script custom tools withnew Functionand no equivalent capability/env gate.agent_runsimports may lose joinedagentType/agentNamemetadata, while the custom-run UI filters out runs withoutagentType.agent_cadence_statususes weaker defaults and filtering than the runtime/legacy successful-run path, so status can drift after failures or missing config.Steps to reproduce
enabled: falseshould be preserved, then save through the refactor editor path.settings.sources.useChatActiveLorebooks: false, then save through the refactor editor path.custom_tool_executecommand and the legacy env-gated script path.agent_runsrows and confirm whether custom-agent run history/status remains visible when rows lack denormalizedagentType/agentName.agent_cadence_statusoutput after failed and successful runs against runtime gating and legacygetLastSuccessfulRunByTypebehavior.Impact area
Environment
origin/refactorLogs, screenshots, or video
No screenshots or runtime logs. Static evidence from code inspection:
src/features/catalog/agents/components/AgentEditor.tsxsavesenabled: trueunconditionally.src/features/catalog/agents/components/AgentsPanel.tsxdiscardsenabledand has no enable/disable toggle.localAgentEnabled, saved it, and exposed status/toggles.src/engine/generation/agent-runner.tsstill honorsuseChatActiveLorebooks === false.src/features/catalog/agents/components/AgentEditor.tsxloads/saves source lorebook IDs but notuseChatActiveLorebooks.CUSTOM_TOOL_SCRIPT_ENABLEDwas false, and legacy executor refused script execution when disabled.scriptExecutionEnabled: truewhilecustom_tool_executerejects script tools.new Functionwithout the legacy env/capability gate.agent_runsdirectly toagent-runs.agentConfigId; legacy storage joined config data to exposeagentType/agentName.agentType, so raw imported rows may disappear.agent_cadence_statususes a default interval and filters error state differently from the runtime and legacy successful-run storage query.Regression notes
This is a legacy parity regression cluster for the agents feature. Legacy behavior preserved agent enable/disable state, exposed Knowledge Retrieval/Router active-lorebook source control, gated script custom tools through
CUSTOM_TOOL_SCRIPT_ENABLED, and joined custom agent run rows with config metadata for display/status.Additional context
Recommended repair order:
useChatActiveLorebookseditor state/UI/persistence for Knowledge Retrieval and Router agents.agent_runs; denormalizeagentType/agentNameduring import if needed.agent_cadence_statuswith runtime/legacy successful-run filtering and built-in interval defaults.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Xelvanis commented on GitHub (Jun 1, 2026):
Progress update: PR #1803 is open for this issue: https://github.com/Pasta-Devs/Marinara-Engine/pull/1803
Implemented and pushed:
refactorbranch were resolved and the branch was updated.Validation completed:
pnpm checkpasses locally.Remaining work: maintainer review and merge of PR #1803.
@Xelvanis commented on GitHub (Jun 1, 2026):
Progress update: PR #1813 has merged for this issue: https://github.com/Pasta-Devs/Marinara-Engine/pull/1813
Implemented and merged in this slice:
new Function.custom_tool_capabilitiesnow reportsscriptExecutionEnabled: false.Validation completed:
pnpm checkpasses locally.cargo test --manifest-path src-tauri/Cargo.toml custom_tools --libpasses locally.Issue #1791 status after current merged slices:
refactor.Remaining work:
agent_runsimport/display metadata parity: imported custom-agent runs may still needagentType/agentNamenormalization so run history/status remains visible.agent_cadence_statusparity: align status behavior with runtime/legacy successful-run semantics after failures or missing config.@Xelvanis commented on GitHub (Jun 1, 2026):
Progress update: PR #1818 has merged for this issue: https://github.com/Pasta-Devs/Marinara-Engine/pull/1818
Implemented and merged in this slice:
agent_runsrows now normalize legacy snake_case fields into the camelCase fields the refactor UI reads.agentType/agentNamemetadata so run history and cadence status stay visible after legacy import.created_atonly promotes when it is a valid non-empty RFC3339 timestamp, and valid legacy timestamps are canonicalized to UTC.typeas agent type, and avoid merging idless rows by JSON-string dedupe.Validation completed:
cargo test --manifest-path src-tauri/Cargo.toml legacy_agent_runs_import_with_config_metadata --libpasses locally.cargo test --manifest-path src-tauri/Cargo.toml app_state_startup_normalizes_legacy_agent_run_rows --libpasses locally.cargo test --manifest-path src-tauri/Cargo.toml cadence_status --libpasses locally.pnpm typecheckpasses locally.cargo check --manifest-path src-tauri/Cargo.tomlpasses locally.pnpm check:architecturepasses locally.pnpm checkpasses locally.Issue #1791 status after merged slices:
refactor.agent_runsimport/display metadata was covered by merged PR #1818.agent_cadence_statusparity was covered by merged PR #1818.Remaining work: no known open items from the current issue checklist. This issue looks ready to close if maintainers agree.