MCPcopy Index your code
hub / github.com/TanStack/ai / renameRun

Method renameRun

packages/ai-client/src/devtools.ts:1505–1515  ·  view source on GitHub ↗
(previousRunId: string, nextRunId: string)

Source from the content-addressed store, hash-verified

1503 }
1504
1505 protected renameRun(previousRunId: string, nextRunId: string): void {
1506 if (previousRunId === nextRunId) return
1507
1508 const existing = this.devtoolsRuns.find((run) => run.id === previousRunId)
1509 if (!existing) return
1510
1511 const renamed = { ...existing, id: nextRunId, updatedAt: Date.now() }
1512 this.devtoolsRuns = this.devtoolsRuns
1513 .filter((run) => run.id !== nextRunId)
1514 .map((run) => (run.id === previousRunId ? renamed : run))
1515 }
1516
1517 protected getProgress(): AIDevtoolsGenerationProgress | null {
1518 return this.getCoreState().progress

Callers 1

ensureRunStartedMethod · 0.95

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected