Merge pull request '优化 Agent 的检查、修改与验证流程' (#11) from codex/agent-workflow-guidance into main
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (push) Canceled after 0s
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/11
This commit was merged in pull request #11.
This commit is contained in:
commit
ded95f554f
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");
|
||||
|
||||
Reference in new issue
Block a user