@ethlete/agent-rules 0.1.0-next.53 → 0.1.0-next.54
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/CHANGELOG.md +6 -0
- package/content/mods/plugins/codex-runs/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/codex-runs/hooks/agent-runs.ts +2 -2
- package/content/mods/plugins/codex-runs/hooks/register.tsx +1 -1
- package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/status-line/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/usage-line/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -263,8 +263,8 @@ export function durationOf(run: { startedAt: number; endedAt: number | null }, n
|
|
|
263
263
|
return minutes ? `${minutes}m${String(seconds % 60).padStart(2, '0')}s` : `${seconds}s`;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
export function statusOf(runs: AgentRun[], now: number) {
|
|
267
|
-
const running = runs.filter((run) => run.state === 'running');
|
|
266
|
+
export function statusOf(runs: AgentRun[], session: string, now: number) {
|
|
267
|
+
const running = runs.filter((run) => run.state === 'running' && run.session === session);
|
|
268
268
|
if (running.length === 0) return undefined;
|
|
269
269
|
const oldest = Math.min(...running.map((run) => run.startedAt));
|
|
270
270
|
return `Codex: ${running.length} running, ${Math.max(0, Math.floor((now - oldest) / 60_000))}m`;
|
|
@@ -99,7 +99,7 @@ async function refreshAgentRuns($: EngineInterface, sessionId: string, now: numb
|
|
|
99
99
|
await update($, toolRuns, () => paired.claimed);
|
|
100
100
|
await update($, waitingCalls, () => open);
|
|
101
101
|
}
|
|
102
|
-
setStatus($, statusOf(next, now));
|
|
102
|
+
setStatus($, statusOf(next, sessionId, now));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
async function refresh($: EngineInterface) {
|