(
workspaceId: string,
enabled: boolean,
persist = true
)
| 7484 | } |
| 7485 | |
| 7486 | async setAutoRetryEnabled( |
| 7487 | workspaceId: string, |
| 7488 | enabled: boolean, |
| 7489 | persist = true |
| 7490 | ): Promise<Result<{ previousEnabled: boolean; enabled: boolean }>> { |
| 7491 | try { |
| 7492 | const session = this.getOrCreateSession(workspaceId); |
| 7493 | const state = await session.setAutoRetryEnabled(enabled, { persist }); |
| 7494 | return Ok(state); |
| 7495 | } catch (error) { |
| 7496 | const errorMessage = error instanceof Error ? error.message : String(error); |
| 7497 | log.error("Unexpected error in setAutoRetryEnabled handler:", error); |
| 7498 | return Err(`Failed to set auto-retry enabled state: ${errorMessage}`); |
| 7499 | } |
| 7500 | } |
| 7501 | |
| 7502 | async getStartupAutoRetryModel(workspaceId: string): Promise<Result<string | null>> { |
| 7503 | try { |
nothing calls this directly
no test coverage detected