Skip to content

editor_cache/ and sloppak_cache/ state isn't declared for backup/diagnostics #9

Description

@carochacs

Problem

routes.py persists working state to editor_cache/ (line ~112) and sloppak_cache/ (line ~127) under context["config_dir"]. Neither location is declared in plugin.json under settings.server_files or diagnostics.server_files.

Per core slopsmith's CLAUDE.md:

settings.server_files is the opt-in for the unified Settings export/import flow... Plugins that omit this field have no server-side files exported.

Since this plugin has no settings block in its manifest at all, any editor-side cache/state living under config_dir is silently excluded from user-triggered Settings backups, and there's no diagnostics entry either, so none of it shows up in an Export Diagnostics bundle if something goes wrong.

Ask

Evaluate what in editor_cache//sloppak_cache/ is actually worth persisting across a backup/restore (vs. being purely regenerable cache — in which case explicitly not declaring it is correct and this issue can be closed as not-needed). If any of it is user-meaningful state (e.g. in-progress edits, not just derived cache), add the appropriate relpaths under settings.server_files in plugin.json, following the relpath/no-../trailing-slash-for-directory rules documented in core's CLAUDE.md.


Migrated from Maestro-Ltd/slopsmith-plugin-editor#22.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions