MCPcopy Index your code
hub / github.com/cursor/cookbook / formatRunStatus

Function formatRunStatus

sdk/coding-agent-cli/src/tui/App.tsx:997–1008  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

995}
996
997function formatRunStatus(status: string) {
998 switch (status) {
999 case "ERROR":
1000 return "error"
1001 case "CANCELLED":
1002 return "cancelled"
1003 case "EXPIRED":
1004 return "expired"
1005 default:
1006 return status.toLowerCase()
1007 }
1008}
1009
1010function getErrorMessage(error: unknown) {
1011 return error instanceof Error ? error.message : String(error)

Callers 1

applyAgentEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected