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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user