MCPcopy
hub / github.com/coder/mux / readParentFailureMessages

Function readParentFailureMessages

src/node/services/taskService.test.ts:16152–16158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16150 "The model refused to continue (finishReason: content-filter): anthropic:claude-fable-5.";
16151
16152 const readParentFailureMessages = async () => {
16153 const history = await collectFullHistory(historyService, parentId);
16154 return history
16155 .filter((message) => message.role === "user")
16156 .map((message) => JSON.stringify(message))
16157 .filter((serialized) => serialized.includes("<mux_subagent_failure>"));
16158 };
16159
16160 // First background child refuses while a sibling is still active: the
16161 // parent is NOT woken yet (the last settlement owns the wake-up), but the

Callers 1

Calls 1

collectFullHistoryFunction · 0.70

Tested by

no test coverage detected