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

Function useRunCommits

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

Source from the content-addressed store, hash-verified

30
31/** Every commit that touched `runs/<id>/`, newest first. */
32export function useRunCommits(runId: string | undefined) {
33 return useQuery<CommitInfo[]>({
34 queryKey: traceKeys.commits(runId ?? ''),
35 queryFn: () => apiClient.get(`/api/runs/${runId}/commits`),
36 enabled: !!runId,
37 // Commits are append-only; the list only grows. SSE `run_updated` events
38 // invalidate this cache, so 60s is a safe upper bound for window/focus refetches.
39 staleTime: 60_000,
40 })
41}
42
43export interface StepFile {
44 name: string

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…