MCPcopy Create free account
hub / github.com/vercel/examples / considerRun

Function considerRun

python/vibe-coding-ide/frontend/src/lib/persistence.ts:156–164  ·  view source on GitHub ↗
(r: Run | undefined)

Source from the content-addressed store, hash-verified

154): string | undefined {
155 let latest: number = 0
156 const considerRun = (r: Run | undefined) => {
157 if (!r) return
158 for (const a of r.actions || []) {
159 if (a.kind === 'user_message' && a.timestamp) {
160 const t = Date.parse(a.timestamp)
161 if (!Number.isNaN(t) && t > latest) latest = t
162 }
163 }
164 }
165 // Prefer provided order to iterate runs deterministically
166 for (const id of order) considerRun(runs[id])
167 // In case some runs are missing from order, also scan remaining runs

Callers 1

computeLastHumanAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected