paperclipai/paperclip · error
Only managed_subfolder spaces are supported until dynamic…
Error message
Only managed_subfolder spaces are supported until dynamic local folder bindings are available.
What it means
Error "Only managed_subfolder spaces are supported until dynamic local folder bindings are available." thrown in paperclipai/paperclip.
Solutions
- Use a managed_subfolder space; dynamic local folder bindings are not yet supported.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1418 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@5716fe907e (2026-08-18).
Data as JSON: /api/errors/681116b71ec4a995.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1417
FROM ${spaceTable(ctx)}
WHERE company_id = $1 AND wiki_id = $2 AND status <> 'archived'
ORDER BY CASE WHEN slug = 'default' THEN 0 ELSE 1 END, display_name, slug`,
[input.companyId, wikiId],
);
const spaces = rows.length > 0 ? rows.map(wikiSpaceFromRow) : [fallbackDefaultSpace({ companyId: input.companyId, wikiId })];
return { spaces };
}
export async function createSpace(ctx: PluginContext, input: CreateSpaceInput): Promise<{ status: "created"; space: WikiSpace }> {
const wikiId = normalizeWikiId(input.wikiId);
const displayName = stringField(input.displayName) ?? stringField(input.slug) ?? "New space";
const slug = normalizeSpaceSlug(input.slug ?? displayName);
if (slug === DEFAULT_SPACE_SLUG) {
return { status: "created", space: await ensureDefaultSpace(ctx, { companyId: input.companyId, wikiId }) };
}
const folderMode = input.folderMode ?? "managed_subfolder";
if (folderMode !== "managed_subfolder") {
throw new Error("Only managed_subfolder spaces are supported until dynamic local folder bindings are available.");
}
const accessScope = input.accessScope ?? "shared";
const id = randomUUID();
const pathPrefix = `spaces/${slug}`;
await ctx.db.execute(
`INSERT INTO ${spaceTable(ctx)}
(id, company_id, wiki_id, slug, display_name, space_type, folder_mode, root_folder_key, path_prefix, access_scope, settings, status)
VALUES ($1, $2, $3, $4, $5, 'local_folder', $6, $7, $8, $9, $10::jsonb, 'active')`,
[
id,
input.companyId,
wikiId,
slug,
displayName,
folderMode,
WIKI_ROOT_FOLDER_KEY,
pathPrefix,
accessScope,View on GitHub (pinned to 5716fe907e)