feat: map codex thread collaboration progress
This commit is contained in:
@@ -1437,6 +1437,31 @@ public final class BossUi {
|
||||
}
|
||||
}
|
||||
|
||||
JSONObject threadCollaboration = progress == null ? null : progress.optJSONObject("threadCollaboration");
|
||||
if (threadCollaboration != null) {
|
||||
String tool = threadCollaboration.optString("tool", "").trim();
|
||||
String status = threadCollaboration.optString("status", "").trim();
|
||||
String target = threadCollaboration.optString("target", "").trim();
|
||||
String agentStatus = threadCollaboration.optString("agentStatus", "").trim();
|
||||
if (!TextUtils.isEmpty(tool) || !TextUtils.isEmpty(status) ||
|
||||
!TextUtils.isEmpty(target) || !TextUtils.isEmpty(agentStatus)) {
|
||||
card.addView(divider(context));
|
||||
card.addView(sectionTitle(context, "线程协作"));
|
||||
if (!TextUtils.isEmpty(tool) || !TextUtils.isEmpty(status)) {
|
||||
String label = !TextUtils.isEmpty(tool) && !TextUtils.isEmpty(status)
|
||||
? "工具 " + tool + " · " + status
|
||||
: !TextUtils.isEmpty(tool) ? "工具 " + tool : "状态 " + status;
|
||||
card.addView(detailRow(context, "◇", label, "", false));
|
||||
}
|
||||
if (!TextUtils.isEmpty(target)) {
|
||||
card.addView(detailRow(context, "", "目标 " + target, "", false, true));
|
||||
}
|
||||
if (!TextUtils.isEmpty(agentStatus)) {
|
||||
card.addView(detailRow(context, "", "智能体 " + agentStatus, "", false, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
JSONObject accountStatus = progress == null ? null : progress.optJSONObject("accountStatus");
|
||||
JSONObject modelVerification = progress == null ? null : progress.optJSONObject("modelVerification");
|
||||
JSONArray verifications = modelVerification == null ? null : modelVerification.optJSONArray("verifications");
|
||||
|
||||
Reference in New Issue
Block a user