refactor: remove waitForSession functionality from providers and related services

This commit is contained in:
Haileyesus
2026-04-06 23:14:19 +03:00
parent 7cd429697b
commit db9ab26c3c
4 changed files with 8 additions and 53 deletions

View File

@@ -64,19 +64,6 @@ export abstract class AbstractProvider implements IProvider {
return [...this.sessions.values()].map((session) => this.toSnapshot(session));
}
/**
* Waits for a running session to complete and returns the final snapshot.
*/
async waitForSession(sessionId: string): Promise<ProviderSessionSnapshot | null> {
const session = this.sessions.get(sessionId);
if (!session) {
return null;
}
await session.completion;
return this.toSnapshot(session);
}
/**
* Requests a graceful session stop.
*/

View File

@@ -89,7 +89,6 @@ export interface IProvider {
getSession(sessionId: string): ProviderSessionSnapshot | null;
listSessions(): ProviderSessionSnapshot[];
waitForSession(sessionId: string): Promise<ProviderSessionSnapshot | null>;
}
/**