Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/hooks/delegate-task-retry/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function createDelegateTaskRetryHook(_ctx: PluginInput) {
output: { title: string; output: string; metadata: unknown }
) => {
if (input.tool.toLowerCase() !== "task") return
if (typeof output.output !== "string") return

const errorInfo = detectDelegateTaskError(output.output)
if (errorInfo) {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/edit-error-recovery/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function createEditErrorRecoveryHook(_ctx: PluginInput) {
output: { title: string; output: string; metadata: unknown }
) => {
if (input.tool.toLowerCase() !== "edit") return
if (typeof output.output !== "string") return

const outputLower = output.output.toLowerCase()
const hasEditError = EDIT_ERROR_PATTERNS.some((pattern) =>
Expand Down