pi-extended-teams 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/extensions/index.ts
CHANGED
|
@@ -852,7 +852,7 @@ function createExecutionRuntime(pi: ExtensionAPI, host?: ReturnType<typeof creat
|
|
|
852
852
|
if (result.status === "occupied" && result.tombstone.phase === "persistence_closed"
|
|
853
853
|
&& runningAgents.some(agent => agent.name === quarantinedName && agent.runId === result.tombstone.runId)) {
|
|
854
854
|
const entryIndex = entries.findIndex(entry => entry.name === quarantinedName);
|
|
855
|
-
|
|
855
|
+
entries[entryIndex].statusNote = "Finishing cleanup";
|
|
856
856
|
continue;
|
|
857
857
|
}
|
|
858
858
|
const persistedMember = activityMembers.find(member => member.name === quarantinedName);
|
|
@@ -9,6 +9,7 @@ export interface TeamActivityStatusEntry {
|
|
|
9
9
|
status?: string;
|
|
10
10
|
detail?: string;
|
|
11
11
|
displayText?: string;
|
|
12
|
+
statusNote?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type TeamActivityStatusCounts = Record<string, number>;
|
|
@@ -399,9 +400,13 @@ export function teamActivityStatusWidget(
|
|
|
399
400
|
transitionHint = candidate;
|
|
400
401
|
}
|
|
401
402
|
}
|
|
402
|
-
const
|
|
403
|
+
const note = entry.statusNote ? ` · ${entry.statusNote}` : "";
|
|
404
|
+
const progressWidth = note ? Math.max(0, width - visibleWidth(note)) : width;
|
|
405
|
+
const animated = animateEntry(entry, branch, now, progressWidth, transitionHint, index, hasCachedTransitionEntry);
|
|
403
406
|
animationActive ||= animated.active;
|
|
404
|
-
lines.push(
|
|
407
|
+
lines.push(note
|
|
408
|
+
? truncateToWidth(`${animated.text.trimEnd()}${theme.fg("dim", note)}`, width, "…", true)
|
|
409
|
+
: animated.text);
|
|
405
410
|
}
|
|
406
411
|
if (rosterChanged) {
|
|
407
412
|
const activeKeys = new Set<string>();
|