fix(FN-2581): align done timer duration with task lifecycle timestamps

- Update TaskCard done-duration calculations to use createdAt as the start baseline for completed tasks
- Refactor TaskCard timer tests to assert against TaskStore-backed timestamps and avoid brittle elapsed-time assumptions
- Cover done-state timer behavior with expanded test scenarios for start/end timestamp combinations
- Remove unused provider code in pi-claude-cli to satisfy lint and keep the full test/build gates green
This commit is contained in:
Fusion
2026-04-26 00:26:48 -07:00
committed by gsxdsm
parent 89c599abf6
commit cddf7bbd64
3 changed files with 70 additions and 33 deletions

View File

@@ -135,7 +135,6 @@ export function streamViaCli(
newSessionId: !resumeSessionId ? options?.sessionId : undefined,
});
const getStderr = captureStderr(proc);
const spawnTime = Date.now();
// Register in global process registry for teardown cleanup
registerProcess(proc);