fix(dashboard): start node lights up when thread-start exists
Previously __start__ only lit when role records existed. Now it lights up as soon as a thread-start record is present (i.e. the trigger prompt).
This commit is contained in:
@@ -39,7 +39,8 @@ function computeNodeStates(records: readonly ThreadRecord[]): Map<string, NodeSt
|
||||
states.set(role, !hasResult && isLast ? "active" : "completed");
|
||||
}
|
||||
|
||||
if (roleRecords.length > 0) {
|
||||
const hasStart = records.some((r) => r.type === "thread-start");
|
||||
if (hasStart) {
|
||||
states.set("__start__", "completed");
|
||||
}
|
||||
if (hasResult) {
|
||||
|
||||
Reference in New Issue
Block a user