( ctx context.Context, taskID string, actor taskpkg.ActorContext, cause error, )
| 3040 | } |
| 3041 | |
| 3042 | func (n *daemonNativeTools) rollbackPromotedThreadTask( |
| 3043 | ctx context.Context, |
| 3044 | taskID string, |
| 3045 | actor taskpkg.ActorContext, |
| 3046 | cause error, |
| 3047 | ) error { |
| 3048 | if err := n.deps.Tasks.DeleteTask(ctx, taskID, actor); err != nil { |
| 3049 | return errors.Join(cause, fmt.Errorf("rollback promoted network task %q: %w", taskID, err)) |
| 3050 | } |
| 3051 | return cause |
| 3052 | } |
| 3053 | |
| 3054 | type nativeThreadPromotionSource struct { |
| 3055 | workspaceID string |
no test coverage detected