fix(panel,video): dead dialog triggers behind tooltips; dotted composition ids render

HelpTip nested inside a Dialog/AlertDialog trigger puts the trigger's
click handler on the Tooltip root, which renders no DOM — the agents
Spawn item and the KB Reindex-All / Delete-index confirms were dead.
Tooltips now wrap the triggers. The video renderer accepts interior
single dots in composition ids (release-0.25.0) with '..' still
unrepresentable, and propose_video refuses an unrenderable id at
authoring time.
This commit is contained in:
Renn F
2026-07-16 15:47:08 +02:00
parent 225abcf511
commit 0843bbaaaa
5 changed files with 57 additions and 17 deletions
+5 -2
View File
@@ -24,7 +24,10 @@ const PORT = Number(process.env.PORT ?? 3001);
// safe path segment so a ".." / "/" / absolute-path value can't escape the
// composition dir (path traversal). The orchestrator only ever sends a real
// composition id, but this is the trust boundary — validate here.
const COMPOSITION_ID_RE = /^[A-Za-z0-9_-]+$/;
// Letters/digits/_/- plus interior single dots (e.g. release-0.25.0).
// No leading dot and no adjacent dots, so '.'/'..' path segments and
// hidden-file names remain unrepresentable — this stays the trust boundary.
const COMPOSITION_ID_RE = /^[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*$/;
// motion/ source (no node_modules, no build output) is a few hundred KB in
// practice; this cap is generous headroom, not a tuned budget.
@@ -74,7 +77,7 @@ app.post("/render", renderLimiter, upload.single("source"), async (req, res) =>
) {
res.status(400).json({
error:
"'composition_id' must be a non-empty string of letters, digits, '_' or '-'",
"'composition_id' must be letters, digits, '_' or '-', with optional interior dots",
});
return;
}