test(coding-agent): implemented guest reconciliation and expanded testing for collaboration

- Introduced guest snapshot reconciliation to maintain host state consistency during session switching.
- Improved yield tool reliability by implementing incremental schema validation and strict parameter enforcement.
- Fixed a calculation edge case in the status line to prevent negative time values during activity tracking.
- Expanded the test suite with new validation for session interruption, collab state synchronization, and process error handling.
This commit is contained in:
can1357
2026-06-28 09:52:44 +02:00
parent 1190aade82
commit 51a2a0342f
10 changed files with 335 additions and 7 deletions
@@ -408,7 +408,7 @@ export class StatusLineComponent implements Component {
markActivityEnd(): void {
const meter = this.#meter();
if (meter.activeStartedAt === null) return;
meter.activeMs += Date.now() - meter.activeStartedAt;
meter.activeMs += Math.max(0, Date.now() - meter.activeStartedAt);
meter.activeStartedAt = null;
}
@@ -420,7 +420,7 @@ export class StatusLineComponent implements Component {
getActiveMs(): number {
const meter = this.#meter();
if (meter.activeStartedAt === null) return meter.activeMs;
return meter.activeMs + Date.now() - meter.activeStartedAt;
return meter.activeMs + Math.max(0, Date.now() - meter.activeStartedAt);
}
/**