MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / useRunStateAt

Function useRunStateAt

frontend/src/features/trace/api/trace-core.ts:172–180  ·  view source on GitHub ↗
(runId: string | undefined, sha: string | undefined)

Source from the content-addressed store, hash-verified

170
171/** Fetch the run state as of a specific commit SHA. */
172export function useRunStateAt(runId: string | undefined, sha: string | undefined) {
173 return useQuery<RunDetail>({
174 queryKey: traceKeys.runAt(runId ?? '', sha ?? ''),
175 queryFn: () => apiClient.get(`/api/runs/${runId}?at=${encodeURIComponent(sha!)}`),
176 enabled: !!runId && !!sha,
177 // (runId, sha) addresses an immutable git blob; never goes stale.
178 staleTime: Infinity,
179 })
180}
181
182/** One reply entry on a run's append-only stream. */
183export interface RunReply {

Callers 1

RunHistoryModalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…