feat: surface codex image generation progress
This commit is contained in:
@@ -1621,6 +1621,8 @@ public final class BossUi {
|
||||
label = "搜索 " + name;
|
||||
} else if ("image_view".equals(kind)) {
|
||||
label = "图片 " + name;
|
||||
} else if ("image_generation".equals(kind)) {
|
||||
label = "图像生成 " + name;
|
||||
} else if ("review".equals(kind)) {
|
||||
label = "Review " + name;
|
||||
} else if ("command".equals(kind)) {
|
||||
|
||||
@@ -1260,6 +1260,12 @@ public class ProjectDetailActivityUiTest {
|
||||
.put("status", "running")
|
||||
.put("detail", "Codex App Server ThreadItem")
|
||||
.put("url", "https://example.com/private?token=sk-secret-should-not-render"))
|
||||
.put(new JSONObject()
|
||||
.put("kind", "image_generation")
|
||||
.put("name", "imageGeneration")
|
||||
.put("status", "completed")
|
||||
.put("detail", "generated-secret-image.png")
|
||||
.put("result", "data:image/png;base64,sk-secret-should-not-render"))
|
||||
.put(new JSONObject()
|
||||
.put("kind", "command")
|
||||
.put("name", "commandExecution")
|
||||
@@ -1277,6 +1283,8 @@ public class ProjectDetailActivityUiTest {
|
||||
assertTrue(viewTreeContainsText(messageView, "MCP github/pull_request/list · failed"));
|
||||
assertTrue(viewTreeContainsText(messageView, "搜索 openPage · running"));
|
||||
assertTrue(viewTreeContainsText(messageView, "Codex App Server ThreadItem"));
|
||||
assertTrue(viewTreeContainsText(messageView, "图像生成 imageGeneration · completed"));
|
||||
assertTrue(viewTreeContainsText(messageView, "generated-secret-image.png"));
|
||||
assertTrue(viewTreeContainsText(messageView, "命令 commandExecution · completed"));
|
||||
assertTrue(viewTreeContainsText(messageView, "exit 0 · 2345ms"));
|
||||
assertFalse(viewTreeContainsText(messageView, "sk-secret-should-not-render"));
|
||||
|
||||
Reference in New Issue
Block a user