mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6077] [Issue]: Illustrator settings (image sizes, style profiles, generation toggles, video durations) live in global storage, survive package uninstall, and have no reset #3370
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#3370
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 @lperna on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6077
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Every setting the Illustrator exposes in Settings → Generations is stored in Engine-global storage, not in the Illustrator's agent configuration (
agent_configsrow for typeillustrator). The whole Generations tab is hidden unless the Illustrator package is installed (packages/client/src/components/panels/SettingsPanel.tsx,GenerationsSettings), yet nothing in it is owned by the agent. Uninstalling the Illustrator — which the confirm dialog and docs describe as removing the agent's configuration — leaves all of it untouched, so a reinstall does not start from defaults, and most of the fields have no per-field way back to their default.This was first noticed for the image canvas sizes, but the problem is the storage model: all of an agent's settings should be isolated to that agent's own configuration, created when the agent is installed and removed when it is uninstalled.
Expected behavior
docs/media/scene-backgrounds.mdanddocs/development/optional-agent-packages.mdstate that these settings are agent configuration and are removed on uninstall, and name anything Illustrator-visible that is intentionally kept app-wide.Actual behavior
Inventory of what the Illustrator-gated Generations tab exposes and where each value is persisted today:
app_settingsrowui(clientui.store.ts→pickSyncedSettings()→PUT /api/app-settings/ui), beside sidebar width and tracker panel sideapp_settingsrowui(same blob)app_settingsrowui(same blob)app_settingsrowvideo-generationprompt_overridestableuiblob (packages/server/src/services/image/image-generation-settings.ts,loadImageGenerationUserSettings) and video durations from thevideo-generationrow; the client reads them fromui.store.ts(GameSurface.tsx,AvatarGenerationModal.tsx).packages/server/src/routes/capability-packages.routes.ts,DELETE /:id) removes the package files, theinstalled.jsonentry, chat-metadata references, and theagent_configsrow. It never touchesapp_settingsorprompt_overrides. There is noDELETE /api/app-settings/:key, and theuiblob is written as a whole-object replace from the client's full projection, so nothing can even unset a key.packages/shared/src/schemas/capability-package.schema.ts) is.strict()with no settings field. Per-agentdefaultSettingsfrom the package'sagents.jsondo flow intoagent_configs.settings, which is the right place, but none of the Generations-tab settings are routed there.scene-backgrounds.mdand 896×1152 inselfies.md.Steps to reproduce
Environment
1a299369a), Illustrator package 1.0.4pnpm build+pnpm start)Logs, screenshots, or video
storage/tables/app_settings/ui.jsonafter step 3 (excerpt):storage/tables/app_settings/video-generation.jsonstill holds the changed duration. Noagent_configsdirectory exists;capability-packages/installed.jsonshows the Illustrator active.Additional context
Related: #913 established the current image size defaults. #3831 reported the same "no way back to default" problem for the per-chat Illustrator overrides in
chatMeta; this issue is the agent-level equivalent, which additionally survives package uninstall.Workaround: retype the defaults, or stop the server and delete the keys from
ui.json/video-generation.json(the client re-fills missing keys with defaults).Proposed fix: move the Generations-tab settings into the Illustrator's
agent_configs.settings(the server already deletes that row on uninstall), re-point the server loaders and the Settings panel at the agent config, add per-field Reset to default, migrate existing values once on upgrade, and document the uninstall scope.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@lperna commented on GitHub (Sep 12, 2026):
Taking this one (Lloyd Perna, with Claude Code). Branch:
fix/6077-illustrator-agent-settingsoffstaging. Scope: move every Illustrator-owned Generations setting (image sizes, style profiles, generation toggles, video durations) into the Illustrator agent config so uninstall removes them, add per-field Reset, migrate existing values once, and document uninstall scope. Prompt overrides are Engine-wide templates and stay where they are.