MCPcopy
hub / github.com/coder/mux / setAutoRetryEnabled

Method setAutoRetryEnabled

src/node/services/workspaceService.ts:7486–7500  ·  view source on GitHub ↗
(
    workspaceId: string,
    enabled: boolean,
    persist = true
  )

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

getOrCreateSessionMethod · 0.95
OkFunction · 0.90
ErrFunction · 0.90

Tested by

no test coverage detected