mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-30 08:15:31 +08:00
refactor: remove waitForSession functionality from providers and related services
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -89,7 +89,6 @@ export interface IProvider {
|
||||
|
||||
getSession(sessionId: string): ProviderSessionSnapshot | null;
|
||||
listSessions(): ProviderSessionSnapshot[];
|
||||
waitForSession(sessionId: string): Promise<ProviderSessionSnapshot | null>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user