(state: { readonly metadata?: unknown })
| 256 | } |
| 257 | |
| 258 | export function shellOutputSnapshot(state: { readonly metadata?: unknown }) { |
| 259 | if (!state.metadata || typeof state.metadata !== "object") return undefined |
| 260 | return stringValue((state.metadata as Record<string, unknown>).output) |
| 261 | } |
| 262 | |
| 263 | // For shell tools, surface the actual command as the title so it stays visible |
| 264 | // before output lands; non-shell tools keep their model-provided title. |
no test coverage detected