You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when run in a folder, check if config discovery shadows a global space config relevant to that path. eg a foo/bar/baz space in global config but running doctor in foo/bar discovers a config in foo/.sctx.json -> global space ends up hidden under certain circumstances.
Design note from #192 (sctx spaces no longer audits spaces):
sctx spaces and the Claude Code session-start check now cover the config only. The per-space checks that used to run there (path exists, schema set, resolves and parses) were removed, so they are candidates for doctor.
Doctor should delegate rather than re-implement: a schema is checked by the schema loader, the config by the config loader, and a space's path by the plugin that reads it. A path is not always a local file (a plugin may read a URL), so core cannot judge it alone. That needs a way for a plugin to vouch for a path, which is a plugin-surface change and its own decision.
Doctor's value beyond what the owners already report is the specialist cross-cutting checks, such as the discovery-shadowing check listed above.
Existing code and fix text for the removed checks (E_SPACE_PATH_MISSING, E_SCHEMA_*, E_NO_SPACES) stay in src/config/health.ts for doctor to reuse.
sctx spaces add still requires the path to exist (src/config/write.ts), the same file-path assumption.
Activity
mindsocket commentedon Oct 27, 2026
Design note from #192 (
sctx spacesno longer audits spaces):sctx spacesand the Claude Code session-start check now cover the config only. The per-space checks that used to run there (path exists, schema set, resolves and parses) were removed, so they are candidates fordoctor.pathby the plugin that reads it. Apathis not always a local file (a plugin may read a URL), so core cannot judge it alone. That needs a way for a plugin to vouch for a path, which is a plugin-surface change and its own decision.E_SPACE_PATH_MISSING,E_SCHEMA_*,E_NO_SPACES) stay insrc/config/health.tsfor doctor to reuse.sctx spaces addstill requires the path to exist (src/config/write.ts), the same file-path assumption.