mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-17 03:20:40 +00:00
fix(codex): preserve transcript sync across mode switches
This commit is contained in:
@@ -108,6 +108,13 @@ export abstract class BaseSessionScanner<TEvent> {
|
||||
this.intervalId = setInterval(() => this.sync.invalidate(), this.options.intervalMs);
|
||||
}
|
||||
|
||||
public async flush(): Promise<void> {
|
||||
if (this.stopped) {
|
||||
return;
|
||||
}
|
||||
await this.sync.invalidateAndAwait();
|
||||
}
|
||||
|
||||
public async cleanup(): Promise<void> {
|
||||
this.stopped = true;
|
||||
if (this.intervalId) {
|
||||
|
||||
Reference in New Issue
Block a user