Verify the declared Node entry before completing Agent tasks
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (pull_request) Canceled after 0s

This commit is contained in:
WebUp Cloud committed 2026-11-08 23:20:47 +08:00
1 parent da93d4fa1c
commit 6d55806b4f
6 files changed
+113 -9

No files matched your search

@@ -465,8 +465,22 @@ public class TaskService {
}
@Transactional
public void requireSource(UUID id, String lease) {
public void requireSource(UUID id, String lease, String missingStart) {
locked(id, lease);
if (!missingStart.isEmpty()) {
message(
id,
Map.of(
"role",
"user",
"content",
"The workspace is missing the Node startup file declared in package.json: "
+ missingStart
+ ". Use the tools to create the entry point or correct the start script to match"
+ " the project, then verify that the app can start before finishing."));
event(id, "SOURCE_REQUIRED", "缺少 package.json 指定的启动文件 " + missingStart + ",已要求 AI 补齐");
return;
}
message(
id,
Map.of(