MCPcopy Index your code
hub / github.com/coder/coder / isScriptFailed

Function isScriptFailed

site/src/modules/resources/AgentRow.tsx:136–137  ·  view source on GitHub ↗
(script: WorkspaceAgentScript | undefined)

Source from the content-addressed store, hash-verified

134// with the per-tab error indicator so the auto-selected tab matches the visual
135// warning badge.
136const isScriptFailed = (script: WorkspaceAgentScript | undefined): boolean =>
137 Boolean(script?.exit_code || (script?.status && script.status !== "ok"));
138
139export const AgentRow: FC<AgentRowProps> = ({
140 agent,

Callers 1

AgentRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected