mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1555] [Issue]: Agents regex sidebar toggle misreads enabled state #798
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#798
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 @Promansis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1555
Originally assigned to: @Romuromylus on GitHub.
Summary
The Agents right-hand panel can show regex scripts as disabled and make the enable/disable pill feel broken even when the script is enabled. Source inspection shows
AgentsPanelderives the displayed state withscript.enabled === "true", while create/update paths can store booleans.Parent smoke test: #1485
Expected behavior
Regex scripts should show their saved enabled state consistently in the Agents sidebar, and clicking the sidebar toggle should reliably switch between enabled and disabled.
Actual behavior
The sidebar toggle can appear broken or out of sync. In particular, rows with boolean
enabled: trueare treated as disabled by the sidebar check because the component only treats the string"true"as enabled.Steps to reproduce
enabledvalue is booleantrue.Impact area
Environment
Logs, screenshots, or video
Manual report: "in Agents editor: Regex can't be enabled/disabled from main sidebar - the toggle pill appears broken"
Source evidence inspected:
src/features/catalog/agents/components/AgentsPanel.tsxreadsconst enabled = script.enabled === "true"and mutates with{ enabled: !enabled }.src/features/catalog/agents/hooks/use-regex-scripts.tstypesenabledasstring, but storage/create/import paths pass booleans.Regression notes
Unknown.
Additional context
Checked upstream issues and PRs for regex/agent editor overlap. Related closed issue #965 covered "Prompt Only" toggling, not the main enabled toggle.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (May 29, 2026):
Resolved by #1600, merged into
refactor.