Guide long-running Agent work through inspection, edits and verification
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 09:11:24 +08:00
1 parent d04777247b
commit 2c176a9869
3 files changed
+45 -6

No files matched your search

@@ -423,6 +423,7 @@ class AgentWorkerIntegrationTest {
var first = captured.getAllValues().getFirst().path("messages");
assertEquals(2, first.size());
assertEquals("system", first.get(0).path("role").asText());
assertTrue(first.get(0).path("content").asText().contains("make one focused edit"));
assertTrue(first.get(1).path("content").asText().startsWith(prompt));
assertTrue(first.get(1).path("content").asText().contains("index.html"));
assertTrue(first.get(1).path("content").asText().contains("npm run build"));
@@ -454,6 +455,7 @@ class AgentWorkerIntegrationTest {
var checkpoint = tasks.agentHistory(id);
assertTrue(checkpoint.through() > 0);
assertTrue(checkpoint.summary().contains("npm run build"));
assertTrue(checkpoint.summary().contains("exit code 0"));
assertTrue(checkpoint.summary().contains("7200"));
assertEquals(
2, checkpoint.messages().size(), "Only the system prompt and new model turn are active");