Refine render junctions guidance
Agent CI/CD / docker-image (push) Successful in 11s
Agent CI/CD / deploy-fallback-log (push) Has been skipped

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-20 17:43:40 +08:00
parent 725935e270
commit f24e8109a0
3 changed files with 12 additions and 29 deletions
-9
View File
@@ -20,8 +20,6 @@ import {
type SupportedModel,
} from "./chatStream.js";
const persistentRenderRefPattern = /^res-[a-z0-9-]+$/i;
const payloadSchema = z.object({
message: z.string().min(1).max(10000),
session_id: z.string().max(128).optional(),
@@ -69,13 +67,6 @@ export const buildChatRouter = (
return;
}
if (!persistentRenderRefPattern.test(renderRef)) {
res.status(400).json({
message: "render_ref must be a persistent ref like res-..., not a file path",
});
return;
}
const result = await resultReferenceStore.getFullAuthorized(renderRef, {
actorKey: toActorKey(userId),
clientSessionId,